mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 04:13:03 +00:00
* src/output.c (GENERATE_OUTPUT_TABLE): Replace with...
(GENERATE_MUSCLE_INSERT_TABLE): this. (output_int_table, output_unsigned_int_table, output_short_table) (output_token_number_table, output_item_number_table): Replace with... (muscle_insert_int_table, muscle_insert_unsigned_int_table) (muscle_insert_short_table, muscle_insert_token_number_table) (muscle_insert_item_number_table): these. Adjust all callers. (prepare_tokens): Don't free `translations', since... * src/reader.h, src/reader.c (grammar_free): do it. Move to... * src/gram.h, src/gram.c (grammar_free): here. * data/bison.simple, data/bison.c++: b4_token_number_max is now b4_translate_max.
This commit is contained in:
@@ -202,8 +202,8 @@ namespace yy
|
||||
template < >
|
||||
struct Traits< b4_name >
|
||||
{
|
||||
typedef b4_uint_type(b4_token_number_max) TokenNumberType;
|
||||
typedef b4_sint_type(b4_rhs_max) RhsNumberType;
|
||||
typedef b4_uint_type(b4_translate_max) TokenNumberType;
|
||||
typedef b4_sint_type(b4_rhs_max) RhsNumberType;
|
||||
typedef int StateType;
|
||||
typedef yystype SemanticType;
|
||||
typedef b4_ltype LocationType;
|
||||
|
||||
@@ -334,7 +334,7 @@ b4_token_defines(b4_tokens)
|
||||
#define YYUNDEFTOK b4_undef_token_number
|
||||
#define YYMAXUTOK b4_user_token_number_max
|
||||
|
||||
typedef b4_uint_type(b4_token_number_max) yy_token_number_type;
|
||||
typedef b4_uint_type(b4_translate_max) yy_token_number_type;
|
||||
#define YYTRANSLATE(X) \
|
||||
((unsigned)(X) <= YYMAXUTOK ? yytranslate[[X]] : YYUNDEFTOK)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user