/[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.18 by eggert, Thu Dec 13 02:21:12 2001 UTC revision 1.39.2.19 by eggert, Mon Dec 17 18:45:59 2001 UTC
# Line 316  output_gram (void) Line 316  output_gram (void)
316       yyprhs and yyrhs are needed only for yydebug. */       yyprhs and yyrhs are needed only for yydebug. */
317    /* With the no_parser option, all tables are generated */    /* With the no_parser option, all tables are generated */
318    if (!semantic_parser && !no_parser_flag)    if (!semantic_parser && !no_parser_flag)
319      obstack_sgrow (&table_obstack, "\n#if YYDEBUG != 0\n");      obstack_sgrow (&table_obstack, "\n#if YYDEBUG\n");
320    
321    {    {
322      int i;      int i;
# Line 372  output_rule_data (void) Line 372  output_rule_data (void)
372    short *short_tab = NULL;    short *short_tab = NULL;
373    
374    obstack_sgrow (&table_obstack, "\n\    obstack_sgrow (&table_obstack, "\n\
375  #if YYDEBUG != 0\n");  #if YYDEBUG\n");
376    
377    {    {
378      short *values = XCALLOC (short, nrules + 1);      short *values = XCALLOC (short, nrules + 1);
# Line 400  output_rule_data (void) Line 400  output_rule_data (void)
400    /* Output the table of symbol names.  */    /* Output the table of symbol names.  */
401    if (!token_table_flag && !no_parser_flag)    if (!token_table_flag && !no_parser_flag)
402      obstack_sgrow (&table_obstack,      obstack_sgrow (&table_obstack,
403                           "\n#if YYDEBUG != 0 || defined YYERROR_VERBOSE\n\n");                           "\n#if (YYDEBUG) || defined YYERROR_VERBOSE\n\n");
404    obstack_sgrow (&table_obstack, "\    obstack_sgrow (&table_obstack, "\
405  /* YYTNAME[TOKEN_NUM] -- String name of the token TOKEN_NUM. */\n");  /* YYTNAME[TOKEN_NUM] -- String name of the token TOKEN_NUM. */\n");
406    obstack_sgrow (&table_obstack,    obstack_sgrow (&table_obstack,
# Line 1268  output (void) Line 1268  output (void)
1268        obstack_grow (&table_obstack, obstack_finish (&attrs_obstack), size);        obstack_grow (&table_obstack, obstack_finish (&attrs_obstack), size);
1269      }      }
1270    reader_output_yylsp (&table_obstack);    reader_output_yylsp (&table_obstack);
1271    if (debug_flag)    obstack_fgrow1 (&table_obstack, "\
     obstack_sgrow (&table_obstack, "\  
1272  #ifndef YYDEBUG\n\  #ifndef YYDEBUG\n\
1273  # define YYDEBUG 1\n\  # define YYDEBUG %d\n\
1274  #endif\n\  #endif\n\
1275  \n");  \n", debug_flag);
1276    
1277    if (semantic_parser)    if (semantic_parser)
1278      obstack_fgrow1 (&table_obstack, "#include %s\n",      obstack_fgrow1 (&table_obstack, "#include %s\n",

Legend:
Removed from v.1.39.2.18  
changed lines
  Added in v.1.39.2.19

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