/[bison]/bison/src/output.c
ViewVC logotype

Diff of /bison/src/output.c

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

revision 1.39.2.1 by ra, Wed Aug 29 12:13:03 2001 UTC revision 1.39.2.2 by akim, Sat Sep 22 17:43:26 2001 UTC
# Line 295  output_token_translations (void) Line 295  output_token_translations (void)
295  \n\  \n\
296  /* YYTRANSLATE(YYLEX) -- Bison token number corresponding to YYLEX. */\n");  /* YYTRANSLATE(YYLEX) -- Bison token number corresponding to YYLEX. */\n");
297    
298    if (translations)    obstack_fgrow2 (&table_obstack,
     {  
       obstack_fgrow2 (&table_obstack,  
299        "#define YYTRANSLATE(x) ((unsigned)(x) <= %d ? yytranslate[x] : %d)\        "#define YYTRANSLATE(x) ((unsigned)(x) <= %d ? yytranslate[x] : %d)\
300  \n\  \n\
301  \n",  \n",
302                 max_user_token_number, nsyms);                    max_user_token_number, nsyms);
303    
304        output_short_or_char_table (&table_obstack,    output_short_or_char_table (&table_obstack,
305               "YYTRANSLATE[YYLEX] -- Bison token number corresponding to YYLEX",               "YYTRANSLATE[YYLEX] -- Bison token number corresponding to YYLEX",
306                      ntokens < 127 ? "char" : "short",                                ntokens < 127 ? "char" : "short",
307                      "yytranslate", token_translations,                                "yytranslate", token_translations,
308                      0, 1, max_user_token_number + 1);                                0, 1, max_user_token_number + 1);
     }  
   else  
     {  
       obstack_sgrow (&table_obstack,  
                            "\n#define YYTRANSLATE(x) (x)\n");  
     }  
309  }  }
310    
311    

Legend:
Removed from v.1.39.2.1  
changed lines
  Added in v.1.39.2.2

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