diff options
author | Will Estes <wlestes@users.sourceforge.net> | 2001-05-21 19:50:45 +0000 |
---|---|---|
committer | Will Estes <wlestes@users.sourceforge.net> | 2001-05-21 19:50:45 +0000 |
commit | 34c2f978de8ba9c19f360ea7a60ef9bba4a1c2b1 (patch) | |
tree | 2fc08e39dae67e611085687c86361ce8fbfaf68a /gen.c | |
parent | 8b4ca2f3214e6a7ee4ae4a7607a2238e1d99609d (diff) |
complete john millaway's reentrant patch
Diffstat (limited to 'gen.c')
-rw-r--r-- | gen.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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( "}" ); |