View | Details | Raw Unified | Return to bug 28364
Collapse All | Expand All

(-)flex.skl (-3 / +3 lines)
Lines 104-110 Link Here
104
104
105
typedef struct yy_buffer_state *YY_BUFFER_STATE;
105
typedef struct yy_buffer_state *YY_BUFFER_STATE;
106
106
107
extern int yyleng;
107
extern size_t yyleng;
108
%-
108
%-
109
extern FILE *yyin, *yyout;
109
extern FILE *yyin, *yyout;
110
%*
110
%*
Lines 228-234 Link Here
228
static int yy_n_chars;		/* number of characters read into yy_ch_buf */
228
static int yy_n_chars;		/* number of characters read into yy_ch_buf */
229
229
230
230
231
int yyleng;
231
size_t yyleng;
232
232
233
/* Points to current character in buffer. */
233
/* Points to current character in buffer. */
234
static char *yy_c_buf_p = (char *) 0;
234
static char *yy_c_buf_p = (char *) 0;
Lines 788-794 Link Here
788
788
789
	else
789
	else
790
		{
790
		{
791
		int num_to_read =
791
		size_t num_to_read =
792
			yy_current_buffer->yy_buf_size - number_to_move - 1;
792
			yy_current_buffer->yy_buf_size - number_to_move - 1;
793
793
794
		while ( num_to_read <= 0 )
794
		while ( num_to_read <= 0 )
(-)gen.c (-3 / +4 lines)
Lines 1070-1080 Link Here
1070
	if ( yymore_used && ! yytext_is_array )
1070
	if ( yymore_used && ! yytext_is_array )
1071
		{
1071
		{
1072
		indent_puts( "yytext_ptr -= yy_more_len; \\" );
1072
		indent_puts( "yytext_ptr -= yy_more_len; \\" );
1073
		indent_puts( "yyleng = (int) (yy_cp - yytext_ptr); \\" );
1073
		indent_puts( "yyleng = (size_t) (yy_cp - yytext_ptr); \\" );
1074
		}
1074
		}
1075
1075
1076
	else
1076
	else
1077
		indent_puts( "yyleng = (int) (yy_cp - yy_bp); \\" );
1077
		indent_puts( "yyleng = (size_t) (yy_cp - yy_bp); \\" );
1078
1078
1079
	/* Now also deal with copying yytext_ptr to yytext if needed. */
1079
	/* Now also deal with copying yytext_ptr to yytext if needed. */
1080
	skelout();
1080
	skelout();
Lines 1341-1347 Link Here
1341
			outn(
1341
			outn(
1342
			"\tif ( yy_current_buffer->yy_is_interactive ) \\" );
1342
			"\tif ( yy_current_buffer->yy_is_interactive ) \\" );
1343
			outn( "\t\t{ \\" );
1343
			outn( "\t\t{ \\" );
1344
			outn( "\t\tint c = '*', n; \\" );
1344
			outn( "\t\tint c = '*'; \\");
1345
			outn( "\t\tsize_t n; \\" );
1345
			outn( "\t\tfor ( n = 0; n < max_size && \\" );
1346
			outn( "\t\tfor ( n = 0; n < max_size && \\" );
1346
	outn( "\t\t\t     (c = getc( yyin )) != EOF && c != '\\n'; ++n ) \\" );
1347
	outn( "\t\t\t     (c = getc( yyin )) != EOF && c != '\\n'; ++n ) \\" );
1347
			outn( "\t\t\tbuf[n] = (char) c; \\" );
1348
			outn( "\t\t\tbuf[n] = (char) c; \\" );

Return to bug 28364