mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
maint: style changes.
* src/reduce.c (reduce_grammar_tables): Define variables with their initial value.
This commit is contained in:
@@ -285,13 +285,12 @@ reduce_grammar_tables (void)
|
|||||||
static void
|
static void
|
||||||
nonterminals_reduce (void)
|
nonterminals_reduce (void)
|
||||||
{
|
{
|
||||||
symbol_number i, n;
|
|
||||||
|
|
||||||
/* Map the nonterminals to their new index: useful first, useless
|
/* Map the nonterminals to their new index: useful first, useless
|
||||||
afterwards. Kept for later report. */
|
afterwards. Kept for later report. */
|
||||||
|
|
||||||
symbol_number *nontermmap = xnmalloc (nvars, sizeof *nontermmap);
|
symbol_number *nontermmap = xnmalloc (nvars, sizeof *nontermmap);
|
||||||
n = ntokens;
|
symbol_number n = ntokens;
|
||||||
|
symbol_number i;
|
||||||
for (i = ntokens; i < nsyms; i++)
|
for (i = ntokens; i < nsyms; i++)
|
||||||
if (bitset_test (V, i))
|
if (bitset_test (V, i))
|
||||||
nontermmap[i - ntokens] = n++;
|
nontermmap[i - ntokens] = n++;
|
||||||
|
|||||||
Reference in New Issue
Block a user