]> git.saurik.com Git - bison.git/commitdiff
* src/reader.c (copy_guard): Use muscle to specify the `#line'
authorPascal Bart <pascal.bart@epita.fr>
Sat, 1 Sep 2001 10:40:54 +0000 (10:40 +0000)
committerPascal Bart <pascal.bart@epita.fr>
Sat, 1 Sep 2001 10:40:54 +0000 (10:40 +0000)
filename.

ChangeLog
src/reader.c

index a67af992da275f8179340538a9ff2d8d9b30cd02..e4f2f94f072d8216abfdd7f939cd6f0030d146d8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-09-01  Pascal Bart  <pascal.bart@epita.fr>
+
+       * src/reader.c (copy_guard): Use muscle to specify the `#line' 
+       filename.
+
 2001-09-01  Marc Autret  <autret_m@epita.fr>
 
        * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
index feaa3b67439c96310f03e81b6ff14a6e6dbebe9c..49e5158e1e030ae34aa82dcef0676eb88151f040 100644 (file)
@@ -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;