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

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

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

revision 1.6 by akim, Wed Jun 12 15:14:59 2002 UTC revision 1.7 by akim, Sat Jun 15 18:21:11 2002 UTC
# Line 31  Line 31 
31  #include "reader.h"  #include "reader.h"
32    
33  /* Each time we match a string, move the end cursor to its end. */  /* Each time we match a string, move the end cursor to its end. */
34    #define YY_USER_INIT                            \
35    do {                                            \
36      LOCATION_RESET (*yylloc);                     \
37       /* This is only to avoid GCC warnings. */    \
38      if (yycontrol) {;};                           \
39    } while (0)
40    
41  #define YY_USER_ACTION  LOCATION_COLUMNS (*yylloc, yyleng)  #define YY_USER_ACTION  LOCATION_COLUMNS (*yylloc, yyleng)
42  #define YY_LINES        LOCATION_LINES (*yylloc, yyleng); lineno += yyleng;  #define YY_LINES        LOCATION_LINES (*yylloc, yyleng); lineno += yyleng;
43  #define YY_STEP         LOCATION_STEP (*yylloc)  #define YY_STEP         LOCATION_STEP (*yylloc)
# Line 69  scanner_last_string_free (void) Line 76  scanner_last_string_free (void)
76  }  }
77    
78    
 /* This is only to avoid GCC warnings. */  
 #define YY_USER_INIT    if (yycontrol) {;};  
   
79    
80  static int braces_level = 0;  static int braces_level = 0;
81  static int percent_percent_count = 0;  static int percent_percent_count = 0;
# Line 96  blanks   [ \t\f]+ Line 100  blanks   [ \t\f]+
100       start of the next token.  */       start of the next token.  */
101  #define TR_POS 0  #define TR_POS 0
102  #if TR_POS  #if TR_POS
103    fprintf (stderr, "FOO1: ");    fprintf (stderr, "FOO1: %p: ", yylloc);
104    LOCATION_PRINT (stderr, *yylloc);    LOCATION_PRINT (stderr, *yylloc);
105    fprintf (stderr, "\n");    fprintf (stderr, "\n");
106  #endif  #endif

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

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