mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-15 07:13:02 +00:00
* src/main.c (main): Free `infile'.
* src/scan-gram.l (handle_syncline): New. Recognize `#line'. * src/output.c (user_actions_output, symbol_destructors_output) (symbol_printers_output): Use the location's file name, not infile. * src/reader.c (prologue_augment, epilogue_set): Likewise.
This commit is contained in:
@@ -74,7 +74,7 @@ prologue_augment (const char *prologue, location_t location)
|
||||
obstack_fgrow2 (oout, muscle_find ("linef"),
|
||||
location.first_line,
|
||||
quotearg_style (c_quoting_style,
|
||||
muscle_find ("filename")));
|
||||
location.file));
|
||||
}
|
||||
obstack_sgrow (oout, prologue);
|
||||
}
|
||||
@@ -94,7 +94,7 @@ epilogue_set (const char *epilogue, location_t location)
|
||||
obstack_fgrow2 (&muscle_obstack, muscle_find ("linef"),
|
||||
location.first_line,
|
||||
quotearg_style (c_quoting_style,
|
||||
muscle_find ("filename")));
|
||||
location.file));
|
||||
}
|
||||
obstack_sgrow (&muscle_obstack, epilogue);
|
||||
obstack_1grow (&muscle_obstack, 0);
|
||||
|
||||
Reference in New Issue
Block a user