mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-17 00:03:03 +00:00
Regen.
This commit is contained in:
@@ -1659,27 +1659,25 @@ yyerrlab:
|
|||||||
{
|
{
|
||||||
YYSIZE_T yysize = 0;
|
YYSIZE_T yysize = 0;
|
||||||
int yytype = YYTRANSLATE (yychar);
|
int yytype = YYTRANSLATE (yychar);
|
||||||
|
const char* yyprefix;
|
||||||
char *yymsg;
|
char *yymsg;
|
||||||
int yyx;
|
int yyx;
|
||||||
|
|
||||||
/* Start YYX at -YYN if negative to avoid negative indexes in
|
/* Start YYX at -YYN if negative to avoid negative indexes in
|
||||||
YYCHECK. */
|
YYCHECK. */
|
||||||
int yyxbase = yyn < 0 ? -yyn : 0;
|
int yyxbegin = yyn < 0 ? -yyn : 0;
|
||||||
|
|
||||||
/* Stay within bounds of both yycheck and yytname. */
|
/* Stay within bounds of both yycheck and yytname. */
|
||||||
int yychecklim = YYLAST - yyn;
|
int yychecklim = YYLAST - yyn;
|
||||||
int yynsyms = sizeof (yytname) / sizeof (yytname[0]);
|
int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
|
||||||
int yyxlim = yychecklim < yynsyms ? yychecklim : yynsyms;
|
|
||||||
int yycount = 0;
|
int yycount = 0;
|
||||||
|
|
||||||
for (yyx = yyxbase; yyx < yyxlim; yyx++)
|
yyprefix = ", expecting ";
|
||||||
|
for (yyx = yyxbegin; yyx < yyxend; ++yyx)
|
||||||
if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
|
if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
|
||||||
{
|
{
|
||||||
yysize += (! yycount
|
yysize += yystrlen (yyprefix) + yystrlen (yytname [yyx]);
|
||||||
? sizeof (", expecting ") - 1
|
yycount += 1;
|
||||||
: sizeof (" or ") - 1);
|
|
||||||
yysize += yystrlen (yytname[yyx]);
|
|
||||||
yycount++;
|
|
||||||
if (yycount == 5)
|
if (yycount == 5)
|
||||||
{
|
{
|
||||||
yysize = 0;
|
yysize = 0;
|
||||||
@@ -1696,14 +1694,13 @@ yyerrlab:
|
|||||||
|
|
||||||
if (yycount < 5)
|
if (yycount < 5)
|
||||||
{
|
{
|
||||||
yycount = 0;
|
yyprefix = ", expecting ";
|
||||||
for (yyx = yyxbase; yyx < yyxlim; yyx++)
|
for (yyx = yyxbegin; yyx < yyxend; ++yyx)
|
||||||
if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
|
if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
|
||||||
{
|
{
|
||||||
const char *yyq = ! yycount ? ", expecting " : " or ";
|
yyp = yystpcpy (yyp, yyprefix);
|
||||||
yyp = yystpcpy (yyp, yyq);
|
|
||||||
yyp = yystpcpy (yyp, yytname[yyx]);
|
yyp = yystpcpy (yyp, yytname[yyx]);
|
||||||
yycount++;
|
yyprefix = " or ";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
yyerror (yymsg);
|
yyerror (yymsg);
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ typedef union YYSTYPE {
|
|||||||
assoc assoc;
|
assoc assoc;
|
||||||
uniqstr uniqstr;
|
uniqstr uniqstr;
|
||||||
} YYSTYPE;
|
} YYSTYPE;
|
||||||
/* Line 1255 of yacc.c. */
|
/* Line 1252 of yacc.c. */
|
||||||
#line 138 "y.tab.h"
|
#line 138 "y.tab.h"
|
||||||
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
|
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
|
||||||
# define YYSTYPE_IS_DECLARED 1
|
# define YYSTYPE_IS_DECLARED 1
|
||||||
|
|||||||
Reference in New Issue
Block a user