From 682d48cd092007bea29bcfb37c8c8caea6ee72cb Mon Sep 17 00:00:00 2001 From: Pascal Bart Date: Sat, 1 Sep 2001 10:40:54 +0000 Subject: [PATCH] * src/reader.c (copy_guard): Use muscle to specify the `#line' filename. --- ChangeLog | 5 +++++ src/reader.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a67af992..e4f2f94f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-09-01 Pascal Bart + + * src/reader.c (copy_guard): Use muscle to specify the `#line' + filename. + 2001-09-01 Marc Autret * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set diff --git a/src/reader.c b/src/reader.c index feaa3b67..49e5158e 100644 --- a/src/reader.c +++ b/src/reader.c @@ -1201,7 +1201,8 @@ copy_guard (symbol_list *rule, int stack_offset) obstack_fgrow1 (&guard_obstack, "\ncase %d:\n", nrules); if (!no_lines_flag) obstack_fgrow2 (&guard_obstack, "#line %d %s\n", - lineno, quotearg_style (c_quoting_style, infile)); + lineno, quotearg_style (c_quoting_style, + macro_find ("filename"))); obstack_1grow (&guard_obstack, '{'); count = 0; -- 2.47.2