if (nuseless_nonterminals > 0)
{
- fprintf (foutput, _("Useless nonterminals:\n\n"));
+ fputs (_("Useless nonterminals:"), foutput);
+ fputs ("\n\n", foutput);
for (i = ntokens; i < nsyms; i++)
if (!BITISSET (V, i))
fprintf (foutput, " %s\n", tags[i]);
{
if (!b)
{
- fprintf (foutput, _("\n\nTerminals which are not used:\n\n"));
+ fputs ("\n\n", foutput);
+ fprintf (foutput, _("Terminals which are not used:"));
+ fputs ("\n\n", foutput);
b = TRUE;
}
fprintf (foutput, " %s\n", tags[i]);
if (nuseless_productions > 0)
{
- fprintf (foutput, _("\n\nUseless rules:\n\n"));
+ fputs ("\n\n", foutput);
+ fprintf (foutput, _("Useless rules:"));
+ fputs ("\n\n", foutput);
for (i = 1; i <= nrules; i++)
{
if (!BITISSET (P, i))
}
}
if (nuseless_nonterminals > 0 || nuseless_productions > 0 || b)
- fprintf (foutput, "\n\n");
+ fputs ("\n\n", foutput);
}
\f
#if 0 /* XXX currently unused. */
static void
print_notices (void)
{
- if (fixed_outfiles && nuseless_productions)
+ if (yacc_flag && nuseless_productions)
fprintf (stderr, _("%d rules never reduced\n"), nuseless_productions);
fprintf (stderr, _("%s contains "), infile);
reduced = (bool) (nuseless_nonterminals + nuseless_productions > 0);
- if (verboseflag)
+ if (verbose_flag)
print_results ();
if (reduced == FALSE)
reduce_grammar_tables ();
#if 0
- if (verboseflag)
+ if (verbose_flag)
{
fprintf (foutput, "REDUCED GRAMMAR\n\n");
dump_grammar ();
}
#endif
- if (statisticsflag)
+ if (statistics_flag)
fprintf (stderr, _("reduced %s defines %d terminal%s, %d nonterminal%s\
, and %d production%s.\n"),
infile,