style: minor fixes

* NEWS, src/reduce.c, src/reduce.h: Use 'nonterminal'.
Fix comments.
This commit is contained in:
Akim Demaille
2019-02-03 14:41:29 +01:00
parent 03878edf77
commit 334cb8f222
3 changed files with 3 additions and 3 deletions

2
NEWS
View File

@@ -4,7 +4,7 @@ GNU Bison NEWS
** Bug fixes ** Bug fixes
Bison 3.3 failed to generate parsers for grammars with unused non terminal Bison 3.3 failed to generate parsers for grammars with unused nonterminal
symbols. symbols.
* Noteworthy changes in release 3.3.1 (2019-01-27) [stable] * Noteworthy changes in release 3.3.1 (2019-01-27) [stable]

View File

@@ -295,7 +295,7 @@ nonterminals_reduce (void)
free (symbols_sorted); free (symbols_sorted);
} }
/* Renumber non terminal numbers in the RHS of the rules. LHS are /* Update nonterminal numbers in the RHS of the rules. LHS are
pointers to the symbol structure, they don't need renumbering. */ pointers to the symbol structure, they don't need renumbering. */
{ {
for (rule_number r = 0; r < nrules; ++r) for (rule_number r = 0; r < nrules; ++r)

View File

@@ -33,7 +33,7 @@ bool reduce_nonterminal_useless_in_grammar (const sym_content *sym);
void reduce_free (void); void reduce_free (void);
/** Map initial nterm numbers to the new ones. Built by /** Map initial nterm numbers to the new ones. Built by
* reduce_grammar. Size nvars. */ * reduce_grammar. Size nvars + nuseless_nonterminals. */
extern symbol_number *nterm_map; extern symbol_number *nterm_map;
extern unsigned nuseless_nonterminals; extern unsigned nuseless_nonterminals;