From: Pascal Bart Date: Sat, 1 Sep 2001 10:40:54 +0000 (+0000) Subject: * src/reader.c (copy_guard): Use muscle to specify the `#line' X-Git-Tag: pre-merge-of-1-29-branch~26 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/682d48cd092007bea29bcfb37c8c8caea6ee72cb * src/reader.c (copy_guard): Use muscle to specify the `#line' filename. --- 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;