mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
style: rename internal "stype" as "union_members" for clarity
"stype" is quite unclear, and it also collides with the former %define variable that had the same name (replaced by api.value.type). * src/parse-gram.y (stype): Rename as... (union_members): this. * data/bison.m4: Adjust. (b4_user_stype): Rename as... (b4_user_union_members): this. * data/c++.m4, data/c.m4: Adjust. * src/parse-gram.c: regen.
This commit is contained in:
@@ -2349,7 +2349,7 @@ yyreduce:
|
||||
#line 439 "src/parse-gram.y" /* yacc.c:1669 */
|
||||
{
|
||||
union_seen = true;
|
||||
muscle_code_grow ("stype", (yyvsp[0].chars), (yylsp[0]));
|
||||
muscle_code_grow ("union_members", (yyvsp[0].chars), (yylsp[0]));
|
||||
code_scanner_last_string_free ();
|
||||
}
|
||||
#line 2356 "src/parse-gram.c" /* yacc.c:1669 */
|
||||
|
||||
@@ -438,7 +438,7 @@ grammar_declaration:
|
||||
"%union" union_name braceless
|
||||
{
|
||||
union_seen = true;
|
||||
muscle_code_grow ("stype", $3, @3);
|
||||
muscle_code_grow ("union_members", $3, @3);
|
||||
code_scanner_last_string_free ();
|
||||
}
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user