]> granicus.if.org Git - flex/commitdiff
Fixed bug submitted by Bojan Smojver <bojan@rexursive.com> where the use of
authorJohn Millaway <john43@users.sourceforge.net>
Tue, 17 Dec 2002 23:53:06 +0000 (23:53 +0000)
committerJohn Millaway <john43@users.sourceforge.net>
Tue, 17 Dec 2002 23:53:06 +0000 (23:53 +0000)
yylineno, reentrant, and yymore together caused a compile-time error.

gen.c

diff --git a/gen.c b/gen.c
index 796bbfce260b5836eca83061f85862b0bb465cff..398f76e3298d0ed99cea29a747cd645bc8889c28 100644 (file)
--- 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 ();