diff options
author | Manoj Srivastava <srivasta@golden-gryphon.com> | 2014-04-09 00:15:48 -0700 |
---|---|---|
committer | Manoj Srivastava <srivasta@golden-gryphon.com> | 2014-04-09 00:15:48 -0700 |
commit | 26bb2525c89ecda0b0bc7b597ec8d1b792fc8662 (patch) | |
tree | b2ecc519218e259a4fb5e5f0a72b7e00bc3a2b43 /gen.c | |
parent | ada7779d8b7a39d01dd70d733883db2383e61a6e (diff) |
Imported Upstream version 2.5.39
Diffstat (limited to 'gen.c')
-rw-r--r-- | gen.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -874,7 +874,7 @@ void gen_next_state (worry_about_NULs) else strcpy (char_map, useecs ? - "yy_ec[YY_SC_TO_UI(*yy_cp)]" : + "yy_ec[YY_SC_TO_UI(*yy_cp)] " : "YY_SC_TO_UI(*yy_cp)"); if (worry_about_NULs && nultrans) { @@ -1890,7 +1890,7 @@ void make_tables () outn ("\tif ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \\"); outn ("\t\t{ \\"); outn ("\t\tint c = '*'; \\"); - outn ("\t\tint n; \\"); + outn ("\t\tsize_t n; \\"); outn ("\t\tfor ( n = 0; n < max_size && \\"); outn ("\t\t\t (c = getc( yyin )) != EOF && c != '\\n'; ++n ) \\"); outn ("\t\t\tbuf[n] = (char) c; \\"); @@ -1972,7 +1972,7 @@ void make_tables () ("if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] )"); indent_up (); indent_puts ("{"); - indent_puts ("int yyl;"); + indent_puts ("yy_size_t yyl;"); do_indent (); out_str ("for ( yyl = %s; yyl < yyleng; ++yyl )\n", yymore_used ? (yytext_is_array ? "YY_G(yy_prev_more_offset)" : |