From 34c2f978de8ba9c19f360ea7a60ef9bba4a1c2b1 Mon Sep 17 00:00:00 2001 From: Will Estes Date: Mon, 21 May 2001 19:50:45 +0000 Subject: complete john millaway's reentrant patch --- gen.c | 6 +++--- 1 file 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( "}" ); -- cgit v1.2.3