From: John Millaway Date: Tue, 17 Dec 2002 23:53:06 +0000 (+0000) Subject: Fixed bug submitted by Bojan Smojver where the use of X-Git-Tag: flex-2-5-26~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fd1d6538b368cbea75a1c625e2928a843dadf511;p=flex Fixed bug submitted by Bojan Smojver where the use of yylineno, reentrant, and yymore together caused a compile-time error. --- diff --git a/gen.c b/gen.c index 796bbfc..398f76e 100644 --- a/gen.c +++ b/gen.c @@ -1985,7 +1985,7 @@ void make_tables () indent_puts ("{"); indent_puts ("int yyl;"); do_indent (); - out_str ("for ( yyl = %s; yyl < yyleng; ++yyl )\n", + out_str ("for ( yyl = YY_G(%s); yyl < yyleng; ++yyl )\n", yymore_used ? (yytext_is_array ? "yy_prev_more_offset" : "yy_more_len") : "0"); indent_up ();