mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-12 13:53:03 +00:00
* data/c.m4 (b4_token_enums): New.
(b4_token_defines): Rename as... (b4_token_enums_defines): this. (b4_token_defines): New, output only the #defines. * data/yacc.c, data/glr.c: Adjust. * data/lalr1.cc: Use b4_token_enums instead of b4_token_enums_defines. * data/c.m4 (b4_yydestruct_generate, b4_yysymprint_generate): Define as default values.
This commit is contained in:
@@ -164,7 +164,7 @@ m4_if(b4_prefix[], [yy], [],
|
||||
#define yynerrs b4_prefix[]nerrs
|
||||
b4_location_if([#define yylloc b4_prefix[]lloc])])[
|
||||
|
||||
]b4_token_defines(b4_tokens)[
|
||||
]b4_token_enums_defines(b4_tokens)[
|
||||
|
||||
/* Copy the first part of user declarations. */
|
||||
]b4_pre_prologue[
|
||||
@@ -1410,7 +1410,7 @@ b4_copyright([Skeleton parser for Yacc-like parsing with Bison],
|
||||
This special exception was added by the Free Software Foundation
|
||||
in version 1.24 of Bison. */
|
||||
|
||||
b4_token_defines(b4_tokens)
|
||||
b4_token_enums_defines(b4_tokens)
|
||||
|
||||
#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
|
||||
m4_ifdef([b4_stype],
|
||||
|
||||
Reference in New Issue
Block a user