mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-12 22:03:02 +00:00
* src/bison.simple: New `#line' directive.
* src/output.c (output_parser): Support new dynamic muscle input_line.
This commit is contained in:
@@ -990,5 +990,6 @@ yyabortlab:
|
||||
return 1;
|
||||
}
|
||||
|
||||
#line %%input_line "%%filename"
|
||||
%%epilogue
|
||||
|
||||
|
||||
@@ -991,6 +991,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);
|
||||
else if (!strcmp (muscle_key, "input_line"))
|
||||
obstack_fgrow1 (oout, "%d", lineno + 1);
|
||||
else if (!strcmp (muscle_key, "action"))
|
||||
{
|
||||
size_t size = obstack_object_size (&action_obstack);
|
||||
|
||||
Reference in New Issue
Block a user