mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-14 06:43:03 +00:00
* data/yacc.c (b4_int_type): Use yytype_uint8, etc., so that the
user can override the types. (short): #undef, to work around a bug in Pike 7.0. (yytype_uint8, yytype_int8, yytype_uint16, yytype_int16): New types. (union yyalloc.yyss): Use yytype_int16 rather than short. All uses changed. (yysigned_char): Remove. * src/parse-gram.y (YYTYPE_UINT8, YYTYPE_INT8, YYTYPE_UINT16): (YYTYPE_INT16): New macros, to test the new facility in yacc.c. * tests/regression.at (Web2c Actions): Adjust to above changes.
This commit is contained in:
@@ -57,6 +57,19 @@ static uniqstr current_type = 0;
|
||||
static symbol *current_lhs;
|
||||
static location current_lhs_location;
|
||||
static int current_prec = 0;
|
||||
|
||||
#ifdef UINT_FAST8_MAX
|
||||
# define YYTYPE_UINT8 uint_fast8_t
|
||||
#endif
|
||||
#ifdef INT_FAST8_MAX
|
||||
# define YYTYPE_INT8 int_fast8_t
|
||||
#endif
|
||||
#ifdef UINT_FAST16_MAX
|
||||
# define YYTYPE_UINT16 uint_fast16_t
|
||||
#endif
|
||||
#ifdef INT_FAST16_MAX
|
||||
# define YYTYPE_INT16 int_fast16_t
|
||||
#endif
|
||||
%}
|
||||
|
||||
%debug
|
||||
|
||||
Reference in New Issue
Block a user