mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-23 19:23:02 +00:00
style: rename grammar_start_symbols_set as grammar_start_symbols_add
* src/reader.h, src/reader.c (grammar_start_symbols_set): Rename as... (grammar_start_symbols_add): this. Adjust dependencies.
This commit is contained in:
@@ -2189,7 +2189,7 @@ yyreduce:
|
|||||||
|
|
||||||
case 34: /* grammar_declaration: "%start" symbols.1 */
|
case 34: /* grammar_declaration: "%start" symbols.1 */
|
||||||
{
|
{
|
||||||
grammar_start_symbols_set ((yyvsp[0].yykind_90));
|
grammar_start_symbols_add ((yyvsp[0].yykind_90));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
@@ -382,7 +382,7 @@ grammar_declaration:
|
|||||||
symbol_declaration
|
symbol_declaration
|
||||||
| "%start" symbols.1
|
| "%start" symbols.1
|
||||||
{
|
{
|
||||||
grammar_start_symbols_set ($2);
|
grammar_start_symbols_add ($2);
|
||||||
}
|
}
|
||||||
| code_props_type "{...}" generic_symlist
|
| code_props_type "{...}" generic_symlist
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -51,12 +51,9 @@ bool union_seen = false;
|
|||||||
/* Should rules have a default precedence? */
|
/* Should rules have a default precedence? */
|
||||||
bool default_prec = true;
|
bool default_prec = true;
|
||||||
|
|
||||||
/*-----------------------.
|
|
||||||
| Set the start symbol. |
|
|
||||||
`-----------------------*/
|
|
||||||
|
|
||||||
void
|
void
|
||||||
grammar_start_symbols_set (symbol_list *syms)
|
grammar_start_symbols_add (symbol_list *syms)
|
||||||
{
|
{
|
||||||
start_symbols = symbol_list_append (start_symbols, syms);
|
start_symbols = symbol_list_append (start_symbols, syms);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ extern symbol_list *start_symbols;
|
|||||||
foo. */
|
foo. */
|
||||||
symbol *switching_token (const symbol *start);
|
symbol *switching_token (const symbol *start);
|
||||||
|
|
||||||
void grammar_start_symbols_set (symbol_list *syms);
|
void grammar_start_symbols_add (symbol_list *syms);
|
||||||
|
|
||||||
void grammar_current_rule_begin (symbol *lhs, location loc,
|
void grammar_current_rule_begin (symbol *lhs, location loc,
|
||||||
named_ref *lhs_named_ref);
|
named_ref *lhs_named_ref);
|
||||||
|
|||||||
Reference in New Issue
Block a user