mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-17 00:03:03 +00:00
style: various fixes
* src/gram.c: Use consistent variable names. Prefix prefix unary operators. (grammar_dump): Use rule_rhs_length instead of duplicating it. * src/reduce.c: Avoid useless variables.
This commit is contained in:
@@ -250,10 +250,7 @@ reduce_grammar_tables (void)
|
||||
|
||||
/* Adjust NRITEMS. */
|
||||
for (rule_number r = nrules; r < nrules + nuseless_productions; ++r)
|
||||
{
|
||||
int length = rule_rhs_length (&rules[r]);
|
||||
nritems -= length + 1;
|
||||
}
|
||||
nritems -= rule_rhs_length (&rules[r]) + 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user