]> git.saurik.com Git - bison.git/blobdiff - src/reduce.c
* tests/actions.at (Actions after errors): New test case.
[bison.git] / src / reduce.c
index 3b19cc12291537852e7924f9011a46d20b5aab37..699f45a4b34901953e77b084d5d15d504953b2f6 100644 (file)
@@ -389,7 +389,7 @@ reduce_print (void)
                               nuseless_productions),
             nuseless_productions);
 
-  fprintf (stderr, "%s: %s: ", infile, _("warning"));
+  fprintf (stderr, "%s: %s: ", grammar_file, _("warning"));
 
   if (nuseless_nonterminals > 0)
     fprintf (stderr, ngettext ("%d useless nonterminal",
@@ -449,7 +449,7 @@ reduce_grammar (void)
 
       fprintf (stderr, "reduced %s defines %d terminals, %d nonterminals\
 , and %d productions.\n",
-              infile, ntokens, nvars, nrules);
+              grammar_file, ntokens, nvars, nrules);
     }
 }