diff options
author | John Millaway <john43@users.sourceforge.net> | 2002-12-19 03:17:27 +0000 |
---|---|---|
committer | John Millaway <john43@users.sourceforge.net> | 2002-12-19 03:17:27 +0000 |
commit | 9e4cd3b659ebc333b1ad45a3ed696a42356728bd (patch) | |
tree | fc31f881ecbd6dfefa5b953cd704dc2316ada9bd | |
parent | fd1d6538b368cbea75a1c625e2928a843dadf511 (diff) |
Fixed bug where YY_G(0) sometimes occurs (created by my previous commit.)
-rw-r--r-- | gen.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 (); |