From 6f9344dadf40f1c55328b6d9953a726d156dfb90 Mon Sep 17 00:00:00 2001 From: Pascal Bart Date: Sat, 22 Sep 2001 21:30:53 +0000 Subject: [PATCH] * src/bison.simple: New `#line' directive. * src/output.c (output_parser): Support new dynamic muscle input_line. --- ChangeLog | 5 +++++ src/bison.simple | 1 + src/output.c | 2 ++ 3 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 801d76e8..8eae12c8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-09-22 Pascal Bart + + * src/bison.simple: New `#line' directive. + * src/output.c (output_parser): Support new dynamic muscle input_line. + 2001-09-22 Marc Autret * src/output.c (output_master_parser): New. diff --git a/src/bison.simple b/src/bison.simple index 2e44e86c..7830a51d 100644 --- a/src/bison.simple +++ b/src/bison.simple @@ -990,5 +990,6 @@ yyabortlab: return 1; } +#line %%input_line "%%filename" %%epilogue diff --git a/src/output.c b/src/output.c index bf1da13b..6706af61 100644 --- a/src/output.c +++ b/src/output.c @@ -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); -- 2.45.2