summaryrefslogtreecommitdiff
path: root/gen.c
diff options
context:
space:
mode:
authormillaway <millaway>2002-12-17 23:53:06 +0000
committermillaway <millaway>2002-12-17 23:53:06 +0000
commit59c9f375495c434de342b040ebb93f2676b813fc (patch)
treecfeb78d4a08212264e90dc477b433e9994cdba05 /gen.c
parent2e25313ba94d8cf3d3678e9026fb146114b7aa1c (diff)
downloadflex-59c9f375495c434de342b040ebb93f2676b813fc.tar.gz
Fixed bug submitted by Bojan Smojver <bojan@rexursive.com> where the use of
yylineno, reentrant, and yymore together caused a compile-time error.
Diffstat (limited to 'gen.c')
-rw-r--r--gen.c2
1 files changed, 1 insertions, 1 deletions
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 ();