From c06746dce9294ecbcea2fe5971680a2eee46ed0a Mon Sep 17 00:00:00 2001 From: Yves Orton Date: Tue, 25 Oct 2022 19:29:25 +0200 Subject: perly.* - update perly files with more recent bison I want to modify perly with a comment. But that would leave us with output files that are out of date in comparison with the input files. My bison is later than the last used for perl, so running it without my patch makes large changes. Therefore I have separated the change into two pieces, the first just updates everything using my more modern bison, the second runs bison again with the change I actually made. This is the first of the pair, nothing changes here except that which bison changed. --- perly.tab | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'perly.tab') diff --git a/perly.tab b/perly.tab index d9892a766e..73c39d15f7 100644 --- a/perly.tab +++ b/perly.tab @@ -20,14 +20,15 @@ #define YYUNDEFTOK 2 #define YYMAXUTOK 369 + /* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM as returned by yylex, with out-of-bounds checking. */ #define YYTRANSLATE(YYX) \ - ((unsigned) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) + (0 <= (YYX) && (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) /* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM as returned by yylex. */ -static const yytype_uint8 yytranslate[] = +static const yytype_int8 yytranslate[] = { 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, @@ -70,7 +71,7 @@ static const yytype_uint8 yytranslate[] = #if YYDEBUG /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ -static const yytype_uint16 yyrline[] = +static const yytype_int16 yyrline[] = { 0, 153, 153, 152, 164, 163, 174, 173, 187, 186, 200, 199, 213, 212, 223, 222, 235, 243, 247, 254, @@ -157,7 +158,7 @@ static const char *const yytname[] = # ifdef YYPRINT /* YYTOKNUM[NUM] -- (External) token number corresponding to the (internal) symbol number NUM (which must be that of a token). */ -static const yytype_uint16 yytoknum[] = +static const yytype_int16 yytoknum[] = { 0, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, @@ -174,15 +175,15 @@ static const yytype_uint16 yytoknum[] = }; # endif -#define YYPACT_NINF -507 +#define YYPACT_NINF (-507) -#define yypact_value_is_default(Yystate) \ - (!!((Yystate) == (-507))) +#define yypact_value_is_default(Yyn) \ + ((Yyn) == YYPACT_NINF) -#define YYTABLE_NINF -303 +#define YYTABLE_NINF (-303) -#define yytable_value_is_error(Yytable_value) \ - (!!((Yytable_value) == (-303))) +#define yytable_value_is_error(Yyn) \ + ((Yyn) == YYTABLE_NINF) /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing STATE-NUM. */ @@ -255,7 +256,7 @@ static const yytype_int16 yypact[] = /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM. Performed when YYTABLE does not specify something else to do. Zero means the default is an error. */ -static const yytype_uint16 yydefact[] = +static const yytype_int16 yydefact[] = { 0, 2, 4, 6, 8, 10, 12, 14, 0, 19, 17, 0, 0, 0, 17, 129, 1, 17, 0, 17, @@ -1067,7 +1068,7 @@ static const yytype_uint8 yyr1[] = }; /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */ -static const yytype_uint8 yyr2[] = +static const yytype_int8 yyr2[] = { 0, 2, 0, 4, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 4, 0, 7, 0, -- cgit v1.2.1