mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-14 06:43:03 +00:00
* src/reader.c (copy_definition): Re-use CPP-outed code which
replace precedent remove. * src/bison.simple: Remove #line before %%prologue because %%input-line is wrong at this time.
This commit is contained in:
@@ -959,6 +959,8 @@ output_parser (const char *skel_filename, struct obstack *oout)
|
||||
obstack_sgrow (oout, muscle_value);
|
||||
else if (!strcmp (muscle_key, "line"))
|
||||
obstack_fgrow1 (oout, "%d", line + 1);
|
||||
/* How can lineno be correct after having finished reading
|
||||
input file ? --Marc. */
|
||||
else if (!strcmp (muscle_key, "input-line"))
|
||||
obstack_fgrow1 (oout, "%d", lineno);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user