summaryrefslogtreecommitdiff
path: root/gen.c
diff options
context:
space:
mode:
authorWill Estes <wlestes@users.sourceforge.net>2001-05-27 19:22:16 +0000
committerWill Estes <wlestes@users.sourceforge.net>2001-05-27 19:22:16 +0000
commit19ec94f1f7a0b774ba768e85d1a656e482df51b1 (patch)
tree4339e2e94cbb11ab8317f1a3a23cd98d898f2df7 /gen.c
parent4b6e15d8ec820c4c2ac7e54e86e6c2d11de16099 (diff)
commit john millaway's YY_G wrapper corrections
Diffstat (limited to 'gen.c')
-rw-r--r--gen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gen.c b/gen.c
index ef51baa..5f91224 100644
--- a/gen.c
+++ b/gen.c
@@ -1093,7 +1093,7 @@ void make_tables()
if ( yymore_used )
{
indent_puts(
-"yy_flex_strncpy( &YY_G(yytext)[YY_G(yy_more_offset)], YY_G(yytext_ptr), YY_G(yyleng) + 1 ); \\" );
+"yy_flex_strncpy( &YY_G(yytext)[YY_G(yy_more_offset)], YY_G(yytext_ptr), YY_G(yyleng) + 1 YY_CALL_LAST_ARG); \\" );
indent_puts( "YY_G(yyleng) += YY_G(yy_more_offset); \\" );
indent_puts(
"YY_G(yy_prev_more_offset) = YY_G(yy_more_offset); \\" );
@@ -1102,7 +1102,7 @@ void make_tables()
else
{
indent_puts(
- "yy_flex_strncpy( YY_G(yytext), YY_G(yytext_ptr), YY_G(yyleng) + 1 ); \\" );
+ "yy_flex_strncpy( YY_G(yytext), YY_G(yytext_ptr), YY_G(yyleng) + 1 YY_CALL_LAST_ARG); \\" );
}
}
@@ -1282,7 +1282,7 @@ void make_tables()
if ( yytext_is_array )
{
indent_puts(
- "#define yymore() (YY_G(yy_more_offset) = yy_flex_strlen( YY_G(yytext) ))" );
+ "#define yymore() (YY_G(yy_more_offset) = yy_flex_strlen( YY_G(yytext) YY_CALL_LAST_ARG))" );
indent_puts( "#define YY_NEED_STRLEN" );
indent_puts( "#define YY_MORE_ADJ 0" );
indent_puts( "#define YY_RESTORE_YY_MORE_OFFSET \\" );