summaryrefslogtreecommitdiff
path: root/src/parse-gram.c
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2021-01-16 16:10:32 +0100
committerAkim Demaille <akim.demaille@gmail.com>2021-01-16 16:11:17 +0100
commit7e0b792d12ce557e9c07a1699d344922eefc3e68 (patch)
tree03f8690f2afae7a2288b1c08a24fd62f39245e36 /src/parse-gram.c
parentd7e8aaa271661b0b68c99fb76bbd6ec3a8939774 (diff)
downloadbison-7e0b792d12ce557e9c07a1699d344922eefc3e68.tar.gz
regen
Diffstat (limited to 'src/parse-gram.c')
-rw-r--r--src/parse-gram.c37
1 files changed, 18 insertions, 19 deletions
diff --git a/src/parse-gram.c b/src/parse-gram.c
index d92cde6c..38bb60fb 100644
--- a/src/parse-gram.c
+++ b/src/parse-gram.c
@@ -1,4 +1,4 @@
-/* A Bison parser, made by GNU Bison 3.7.4.169-6482. */
+/* A Bison parser, made by GNU Bison 3.7.4.273-d85e. */
/* Bison implementation for Yacc-like parsers in C
@@ -49,7 +49,7 @@
#define YYBISON 30704
/* Bison version string. */
-#define YYBISON_VERSION "3.7.4.169-6482"
+#define YYBISON_VERSION "3.7.4.273-d85e"
/* Skeleton name. */
#define YYSKELETON_NAME "yacc.c"
@@ -937,6 +937,7 @@ enum { YYENOMEM = -2 };
#define YYACCEPT goto yyacceptlab
#define YYABORT goto yyabortlab
#define YYERROR goto yyerrorlab
+#define YYNOMEM goto yyexhaustedlab
#define YYRECOVERING() (!!yyerrstatus)
@@ -1474,7 +1475,7 @@ do { \
switch (yy_lac (yyesa, &yyes, &yyes_capacity, yyssp, yytoken)) \
{ \
case YYENOMEM: \
- goto yyexhaustedlab; \
+ YYNOMEM; \
case 1: \
goto yyerrlab; \
} \
@@ -1879,7 +1880,7 @@ yysetstate:
if (yyss + yystacksize - 1 <= yyssp)
#if !defined yyoverflow && !defined YYSTACK_RELOCATE
- goto yyexhaustedlab;
+ YYNOMEM;
#else
{
/* Get the current used size of the three stacks, in elements. */
@@ -1910,7 +1911,7 @@ yysetstate:
# else /* defined YYSTACK_RELOCATE */
/* Extend the stack our own way. */
if (YYMAXDEPTH <= yystacksize)
- goto yyexhaustedlab;
+ YYNOMEM;
yystacksize *= 2;
if (YYMAXDEPTH < yystacksize)
yystacksize = YYMAXDEPTH;
@@ -1921,7 +1922,7 @@ yysetstate:
YY_CAST (union yyalloc *,
YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize))));
if (! yyptr)
- goto yyexhaustedlab;
+ YYNOMEM;
YYSTACK_RELOCATE (yyss_alloc, yyss);
YYSTACK_RELOCATE (yyvs_alloc, yyvs);
YYSTACK_RELOCATE (yyls_alloc, yyls);
@@ -2673,7 +2674,7 @@ yyerrlab:
if (yychar != GRAM_EMPTY)
YY_LAC_ESTABLISH;
if (yyreport_syntax_error (&yyctx) == 2)
- goto yyexhaustedlab;
+ YYNOMEM;
}
}
@@ -2778,7 +2779,7 @@ yyerrlab1:
`-------------------------------------*/
yyacceptlab:
yyresult = 0;
- goto yyreturn;
+ goto yyreturnlab;
/*-----------------------------------.
@@ -2786,24 +2787,22 @@ yyacceptlab:
`-----------------------------------*/
yyabortlab:
yyresult = 1;
- goto yyreturn;
+ goto yyreturnlab;
-#if 1
-/*-------------------------------------------------.
-| yyexhaustedlab -- memory exhaustion comes here. |
-`-------------------------------------------------*/
+/*-----------------------------------------------------------.
+| yyexhaustedlab -- YYNOMEM (memory exhaustion) comes here. |
+`-----------------------------------------------------------*/
yyexhaustedlab:
yyerror (&yylloc, YY_("memory exhausted"));
yyresult = 2;
- goto yyreturn;
-#endif
+ goto yyreturnlab;
-/*-------------------------------------------------------.
-| yyreturn -- parsing is finished, clean up and return. |
-`-------------------------------------------------------*/
-yyreturn:
+/*----------------------------------------------------------.
+| yyreturnlab -- parsing is finished, clean up and return. |
+`----------------------------------------------------------*/
+yyreturnlab:
if (yychar != GRAM_EMPTY)
{
/* Make sure we have latest lookahead translation. See comments at