summaryrefslogtreecommitdiff
path: root/gen.c
diff options
context:
space:
mode:
authorWill Estes <wlestes@users.sourceforge.net>2001-05-21 19:50:45 +0000
committerWill Estes <wlestes@users.sourceforge.net>2001-05-21 19:50:45 +0000
commit34c2f978de8ba9c19f360ea7a60ef9bba4a1c2b1 (patch)
tree2fc08e39dae67e611085687c86361ce8fbfaf68a /gen.c
parent8b4ca2f3214e6a7ee4ae4a7607a2238e1d99609d (diff)
complete john millaway's reentrant patch
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 22632ee..ef51baa 100644
--- a/gen.c
+++ b/gen.c
@@ -1427,13 +1427,13 @@ void make_tables()
indent_puts( "{" );
indent_puts( "int yyl;" );
do_indent();
- out_str( "for ( yyl = %s; yyl < yyleng; ++yyl )\n",
+ out_str( "for ( yyl = %s; yyl < YY_G(yyleng); ++yyl )\n",
yymore_used ? (yytext_is_array ? "yy_prev_more_offset" :
"yy_more_len") : "0");
indent_up();
- indent_puts( "if ( yytext[yyl] == '\\n' )" );
+ indent_puts( "if ( YY_G(yytext)[yyl] == '\\n' )" );
indent_up();
- indent_puts( "++yylineno;" );
+ indent_puts( "++YY_G(yylineno);" );
indent_down();
indent_down();
indent_puts( "}" );