X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=kraut.dir%2Flex.yy.c;h=38190b2fd8747972de1e9652c4d37e96090e8f0e;hb=bf033f2dcf8ac67302fd5f750dc1d8716117b7c6;hp=038b6bbf0d7071500b57b6ef9440d0b5d7e9377b;hpb=7e3afbbacdd24f8c3fb87599eeda32b977fe6d6c;p=filters.git diff --git a/kraut.dir/lex.yy.c b/kraut.dir/lex.yy.c index 038b6bb..38190b2 100644 --- a/kraut.dir/lex.yy.c +++ b/kraut.dir/lex.yy.c @@ -9,7 +9,7 @@ #define YY_FLEX_MINOR_VERSION 5 #include - +#include /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */ #ifdef c_plusplus @@ -22,7 +22,9 @@ #ifdef __cplusplus #include +#ifndef _WIN32 #include +#endif /* Use prototypes in function declarations. */ #define YY_USE_PROTOS @@ -450,7 +452,7 @@ char *yytext; #line 11 "kraut.l" char buf[128]; -#line 454 "lex.yy.c" +#line 456 "lex.yy.c" /* Macros after this point can all be overridden by user definitions in * section 1. @@ -550,9 +552,20 @@ YY_MALLOC_DECL YY_FATAL_ERROR( "input in flex scanner failed" ); \ result = n; \ } \ - else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \ - && ferror( yyin ) ) \ - YY_FATAL_ERROR( "input in flex scanner failed" ); + else \ + { \ + errno=0; \ + while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \ + { \ + if( errno != EINTR) \ + { \ + YY_FATAL_ERROR( "input in flex scanner failed" ); \ + break; \ + } \ + errno=0; \ + clearerr(yyin); \ + } \ + } #endif /* No semi-colon after return; correct usage is to write "yyterminate();" - @@ -603,7 +616,7 @@ YY_DECL #line 15 "kraut.l" -#line 607 "lex.yy.c" +#line 620 "lex.yy.c" if ( yy_init ) { @@ -986,7 +999,7 @@ YY_RULE_SETUP #line 78 "kraut.l" ECHO; YY_BREAK -#line 990 "lex.yy.c" +#line 1003 "lex.yy.c" case YY_STATE_EOF(INITIAL): yyterminate(); @@ -1550,11 +1563,15 @@ YY_BUFFER_STATE b; } +#ifndef _WIN32 +#include +#else #ifndef YY_ALWAYS_INTERACTIVE #ifndef YY_NEVER_INTERACTIVE extern int isatty YY_PROTO(( int )); #endif #endif +#endif #ifdef YY_USE_PROTOS void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )