X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/c8f002c7d3407d5c91a5882466916160a72aa8c4..b25d88f6d2e2f4b59927aacecdc0a9e44a34b5d9:/src/reduce.c diff --git a/src/reduce.c b/src/reduce.c index 7bbd8954..699f45a4 100644 --- a/src/reduce.c +++ b/src/reduce.c @@ -71,8 +71,8 @@ useful_production (rule_number_t r, bitset N0) for (rhsp = rules[r].rhs; *rhsp >= 0; ++rhsp) if (ISVAR (*rhsp) && !bitset_test (N0, *rhsp - ntokens)) - return FALSE; - return TRUE; + return false; + return true; } @@ -353,14 +353,14 @@ reduce_output (FILE *out) } { - bool b = FALSE; + bool b = false; int i; for (i = 0; i < ntokens; i++) if (!bitset_test (V, i) && !bitset_test (V1, i)) { if (!b) fprintf (out, "%s\n\n", _("Terminals which are not used")); - b = TRUE; + b = true; fprintf (out, " %s\n", symbols[i]->tag); } if (b) @@ -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); } }