typedef struct yy_buffer_state *YY_BUFFER_STATE;
#ifndef YY_REENTRANT
-extern int yyleng;
+extern size_t yyleng;
#endif
%-
static int yy_n_chars; /* number of characters read into yy_ch_buf */
-int yyleng;
+size_t yyleng;
/* Points to current character in buffer. */
static char *yy_c_buf_p = (char *) 0;
else
{
- int num_to_read =
+ size_t num_to_read =
YY_G(yy_current_buffer)->yy_buf_size - number_to_move - 1;
while ( num_to_read <= 0 )
if ( yymore_used && ! yytext_is_array )
{
indent_puts( "YY_G(yytext_ptr) -= YY_G(yy_more_len); \\" );
- indent_puts( "YY_G(yyleng) = (int) (yy_cp - YY_G(yytext_ptr)); \\" );
+ indent_puts( "YY_G(yyleng) = (size_t) (yy_cp - YY_G(yytext_ptr)); \\" );
}
else
- indent_puts( "YY_G(yyleng) = (int) (yy_cp - yy_bp); \\" );
+ indent_puts( "YY_G(yyleng) = (size_t) (yy_cp - yy_bp); \\" );
/* Now also deal with copying yytext_ptr to yytext if needed. */
skelout();
outn(
"\tif ( YY_G(yy_current_buffer)->yy_is_interactive ) \\" );
outn( "\t\t{ \\" );
- outn( "\t\tint c = '*', n; \\" );
+ outn( "\t\tint c = '*'; \\");
+ outn( "\t\tsize_t n; \\" );
outn( "\t\tfor ( n = 0; n < max_size && \\" );
outn( "\t\t\t (c = getc( YY_G(yyin) )) != EOF && c != '\\n'; ++n ) \\" );
outn( "\t\t\tbuf[n] = (char) c; \\" );