/[bison]/bison/src/scan-gram.c
ViewVC logotype

Diff of /bison/src/scan-gram.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.38 by eggert, Sun Nov 3 08:53:56 2002 UTC revision 1.39 by akim, Sun Nov 3 12:14:47 2002 UTC
# Line 27  Line 27 
27  #define YY_FLEX_MINOR_VERSION 5  #define YY_FLEX_MINOR_VERSION 5
28    
29  #include <stdio.h>  #include <stdio.h>
30    #include <errno.h>
31    
32  /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */  /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
33  #ifdef c_plusplus  #ifdef c_plusplus
# Line 40  Line 40 
40  #ifdef __cplusplus  #ifdef __cplusplus
41    
42  #include <stdlib.h>  #include <stdlib.h>
43    #ifndef _WIN32
44  #include <unistd.h>  #include <unistd.h>
45    #else
46    #ifndef YY_ALWAYS_INTERACTIVE
47    #ifndef YY_NEVER_INTERACTIVE
48    extern int isatty YY_PROTO(( int ));
49    #endif
50    #endif
51    #endif
52    
53  /* Use prototypes in function declarations. */  /* Use prototypes in function declarations. */
54  #define YY_USE_PROTOS  #define YY_USE_PROTOS
# Line 929  static int convert_ucn_to_byte (char con Line 937  static int convert_ucn_to_byte (char con
937     NUL and newline, as this simplifies our implementation.  */     NUL and newline, as this simplifies our implementation.  */
938  /* Zero or more instances of backslash-newline.  Following GCC, allow  /* Zero or more instances of backslash-newline.  Following GCC, allow
939     white space between the backslash and the newline.  */     white space between the backslash and the newline.  */
940  #line 933 "scan-gram.c"  #line 941 "scan-gram.c"
941    
942  /* Macros after this point can all be overridden by user definitions in  /* Macros after this point can all be overridden by user definitions in
943   * section 1.   * section 1.
# Line 1029  YY_MALLOC_DECL Line 1037  YY_MALLOC_DECL
1037                          YY_FATAL_ERROR( "input in flex scanner failed" ); \                          YY_FATAL_ERROR( "input in flex scanner failed" ); \
1038                  result = n; \                  result = n; \
1039                  } \                  } \
1040          else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \          else \
1041                    && ferror( yyin ) ) \                  { \
1042                  YY_FATAL_ERROR( "input in flex scanner failed" );                  errno=0; \
1043                    while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
1044                            { \
1045                            if( errno != EINTR) \
1046                                    { \
1047                                    YY_FATAL_ERROR( "input in flex scanner failed" ); \
1048                                    break; \
1049                                    } \
1050                            errno=0; \
1051                            clearerr(yyin); \
1052                            } \
1053                    }
1054  #endif  #endif
1055    
1056  /* No semi-colon after return; correct usage is to write "yyterminate();" -  /* No semi-colon after return; correct usage is to write "yyterminate();" -
# Line 1092  YY_DECL Line 1111  YY_DECL
1111    /*----------------------------.    /*----------------------------.
1112    | Scanning Bison directives.  |    | Scanning Bison directives.  |
1113    `----------------------------*/    `----------------------------*/
1114  #line 1096 "scan-gram.c"  #line 1115 "scan-gram.c"
1115    
1116          if ( yy_init )          if ( yy_init )
1117                  {                  {
# Line 2010  YY_RULE_SETUP Line 2029  YY_RULE_SETUP
2029  #line 672 "scan-gram.l"  #line 672 "scan-gram.l"
2030  YY_FATAL_ERROR( "flex scanner jammed" );  YY_FATAL_ERROR( "flex scanner jammed" );
2031          YY_BREAK          YY_BREAK
2032  #line 2014 "scan-gram.c"  #line 2033 "scan-gram.c"
2033  case YY_STATE_EOF(INITIAL):  case YY_STATE_EOF(INITIAL):
2034          yyterminate();          yyterminate();
2035    
# Line 2574  YY_BUFFER_STATE b; Line 2593  YY_BUFFER_STATE b;
2593          }          }
2594    
2595    
2596    #ifndef _WIN32
2597    #include <unistd.h>
2598    #else
2599  #ifndef YY_ALWAYS_INTERACTIVE  #ifndef YY_ALWAYS_INTERACTIVE
2600  #ifndef YY_NEVER_INTERACTIVE  #ifndef YY_NEVER_INTERACTIVE
2601  extern int isatty YY_PROTO(( int ));  extern int isatty YY_PROTO(( int ));
2602  #endif  #endif
2603  #endif  #endif
2604    #endif
2605    
2606  #ifdef YY_USE_PROTOS  #ifdef YY_USE_PROTOS
2607  void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )  void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.39

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26