mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-10 12:53:03 +00:00
* src/output.c (prepare): Delete the `filename' muscule insertion.
* src/reader.c (copy_action): Use `filename' muscule with `#line'. (parse_union_decl): Likewise. * src/macrotab.c (macro_init): Initialize filename by infile.
This commit is contained in:
@@ -749,7 +749,8 @@ parse_union_decl (void)
|
||||
|
||||
if (!no_lines_flag)
|
||||
obstack_fgrow2 (&attrs_obstack, "\n#line %d %s\n",
|
||||
lineno, quotearg_style (c_quoting_style, infile));
|
||||
lineno, quotearg_style (c_quoting_style,
|
||||
macro_find("filename")));
|
||||
else
|
||||
obstack_1grow (&attrs_obstack, '\n');
|
||||
|
||||
@@ -1111,7 +1112,8 @@ copy_action (symbol_list *rule, int stack_offset)
|
||||
if (!no_lines_flag)
|
||||
{
|
||||
sprintf (buf, "#line %d %s\n",
|
||||
lineno, quotearg_style (c_quoting_style, infile));
|
||||
lineno, quotearg_style (c_quoting_style,
|
||||
macro_find ("filename")));
|
||||
obstack_grow (&action_obstack, buf, strlen (buf));
|
||||
}
|
||||
obstack_1grow (&action_obstack, '{');
|
||||
|
||||
Reference in New Issue
Block a user