summaryrefslogtreecommitdiff
path: root/gen.c
diff options
context:
space:
mode:
authorJohn Millaway <john43@users.sourceforge.net>2002-12-19 03:17:27 +0000
committerJohn Millaway <john43@users.sourceforge.net>2002-12-19 03:17:27 +0000
commit9e4cd3b659ebc333b1ad45a3ed696a42356728bd (patch)
treefc31f881ecbd6dfefa5b953cd704dc2316ada9bd /gen.c
parentfd1d6538b368cbea75a1c625e2928a843dadf511 (diff)
Fixed bug where YY_G(0) sometimes occurs (created by my previous commit.)
Diffstat (limited to 'gen.c')
-rw-r--r--gen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gen.c b/gen.c
index 398f76e..972d0d9 100644
--- a/gen.c
+++ b/gen.c
@@ -1985,9 +1985,9 @@ void make_tables ()
indent_puts ("{");
indent_puts ("int yyl;");
do_indent ();
- out_str ("for ( yyl = YY_G(%s); yyl < yyleng; ++yyl )\n",
- yymore_used ? (yytext_is_array ? "yy_prev_more_offset" :
- "yy_more_len") : "0");
+ out_str ("for ( yyl = %s; yyl < yyleng; ++yyl )\n",
+ yymore_used ? (yytext_is_array ? "YY_G(yy_prev_more_offset)" :
+ "(yy_more_len)") : "0");
indent_up ();
indent_puts ("if ( yytext[yyl] == '\\n' )");
indent_up ();