mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-16 15:53:03 +00:00
* src/symlist.h, src/symlist.c (symbol_list_length): New.
* src/scan-gram.l (handle_dollar, handle_at): Compute the rule_length only when needed. * src/output.c (actions_output, token_definitions_output): Output the full M4 block. * src/symtab.c: Don't access directly to the symbol tag, use symbol_tag_get. * src/parse-gram.y: Use symbol_list_free.
This commit is contained in:
@@ -51,6 +51,8 @@ symbol_list_t * symbol_list_prepend PARAMS ((symbol_list_t *list,
|
||||
/* Free the LIST, but not the symbols it contains. */
|
||||
void symbol_list_free PARAMS ((symbol_list_t *list));
|
||||
|
||||
/* Return its length. */
|
||||
unsigned int symbol_list_length PARAMS ((symbol_list_t *list));
|
||||
|
||||
/* Get the data type (alternative in the union) of the value for
|
||||
symbol N in rule RULE. */
|
||||
|
||||
Reference in New Issue
Block a user