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

Diff of /bison/src/reader.c

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

revision 1.87 by pascal, Thu Sep 20 18:32:20 2001 UTC revision 1.88 by marc, Fri Sep 21 16:25:19 2001 UTC
# Line 429  copy_definition (void) Line 429  copy_definition (void)
429    
430  #if 0  #if 0
431    if (!no_lines_flag)    if (!no_lines_flag)
432      obstack_fgrow2 (&attrs_obstack, "#line %d %s\n",      {
433                      lineno, quotearg_style (c_quoting_style, infile));        obstack_fgrow2 (&attrs_obstack, muscle_find ("linef"),
434                          lineno, quotearg_style (c_quoting_style,
435                                                  muscle_find("filename")));
436        }
437  #endif  #endif
438    
439    after_percent = 0;    after_percent = 0;
# Line 748  parse_union_decl (void) Line 751  parse_union_decl (void)
751    
752    typed = 1;    typed = 1;
753    
754    
755    if (!no_lines_flag)    if (!no_lines_flag)
756      obstack_fgrow2 (&attrs_obstack, "\n#line %d %s\n",      {
757                      lineno, quotearg_style (c_quoting_style,        obstack_fgrow2 (&attrs_obstack, muscle_find ("linef"),
758                                              muscle_find("filename")));                        lineno, quotearg_style (c_quoting_style,
759                                                  muscle_find("filename")));
760        }
761    else    else
762      obstack_1grow (&attrs_obstack, '\n');      obstack_1grow (&attrs_obstack, '\n');
763      
764    obstack_sgrow (&attrs_obstack, "typedef union");    obstack_sgrow (&attrs_obstack, "typedef union");
765    if (defines_flag)    if (defines_flag)
766      obstack_sgrow (&defines_obstack, "typedef union");      obstack_sgrow (&defines_obstack, "typedef union");
# Line 1107  copy_action (symbol_list *rule, int stac Line 1113  copy_action (symbol_list *rule, int stac
1113    if (semantic_parser)    if (semantic_parser)
1114      stack_offset = 0;      stack_offset = 0;
1115    
1116    sprintf (buf, "\ncase %d:\n", nrules);    obstack_fgrow1 (&action_obstack, "\ncase %d:\n", nrules);
   obstack_grow (&action_obstack, buf, strlen (buf));  
1117    
1118    if (!no_lines_flag)    if (!no_lines_flag)
1119      {      {
1120        sprintf (buf, "#line %d %s\n",        obstack_fgrow2 (&action_obstack, muscle_find ("linef"),
1121                 lineno, quotearg_style (c_quoting_style,                        lineno, quotearg_style (c_quoting_style,
1122                                         muscle_find ("filename")));                                                muscle_find ("filename")));
       obstack_grow (&action_obstack, buf, strlen (buf));  
1123      }      }
1124    obstack_1grow (&action_obstack, '{');    obstack_1grow (&action_obstack, '{');
1125    
# Line 1201  copy_guard (symbol_list *rule, int stack Line 1205  copy_guard (symbol_list *rule, int stack
1205    
1206    obstack_fgrow1 (&guard_obstack, "\ncase %d:\n", nrules);    obstack_fgrow1 (&guard_obstack, "\ncase %d:\n", nrules);
1207    if (!no_lines_flag)    if (!no_lines_flag)
1208      obstack_fgrow2 (&guard_obstack, "#line %d %s\n",      obstack_fgrow2 (&guard_obstack, muscle_find ("linef"),
1209                      lineno, quotearg_style (c_quoting_style,                      lineno, quotearg_style (c_quoting_style,
1210                                              muscle_find ("filename")));                                              muscle_find ("filename")));
1211    obstack_1grow (&guard_obstack, '{');    obstack_1grow (&guard_obstack, '{');

Legend:
Removed from v.1.87  
changed lines
  Added in v.1.88

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