mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-21 02:03:03 +00:00
* data/bison.simple (yydestructor): Rename as...
(yydestruct): this.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2002-06-20 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
|
* data/bison.simple (yydestructor): Rename as...
|
||||||
|
(yydestruct): this.
|
||||||
|
|
||||||
2002-06-20 Akim Demaille <akim@epita.fr>
|
2002-06-20 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
* src/symtab.h, src/symtab.c (symbol_type_set)
|
* src/symtab.h, src/symtab.c (symbol_type_set)
|
||||||
|
|||||||
@@ -675,8 +675,8 @@ int yyparse (void);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined (__STDC__) || defined (__cplusplus)
|
#if defined (__STDC__) || defined (__cplusplus)
|
||||||
static void yydestructor (int yytype,
|
static void yydestruct (int yytype,
|
||||||
YYSTYPE yyvalue[]b4_location_if([, YYLTYPE yylocation]));
|
YYSTYPE yyvalue[]b4_location_if([, YYLTYPE yylocation]));
|
||||||
# if YYDEBUG
|
# if YYDEBUG
|
||||||
static void yysymprint (FILE* out, int yytype,
|
static void yysymprint (FILE* out, int yytype,
|
||||||
YYSTYPE yyvalue[]b4_location_if([, YYLTYPE yylocation]));
|
YYSTYPE yyvalue[]b4_location_if([, YYLTYPE yylocation]));
|
||||||
@@ -1115,7 +1115,7 @@ yyerrlab1:
|
|||||||
yystos[*yyssp],
|
yystos[*yyssp],
|
||||||
*yyvsp]b4_location_if([, *yylsp])[));
|
*yyvsp]b4_location_if([, *yylsp])[));
|
||||||
YYDPRINTF ((stderr, "\n"));
|
YYDPRINTF ((stderr, "\n"));
|
||||||
yydestructor (yystos[*yyssp], *yyvsp]b4_location_if([, *yylsp])[);
|
yydestruct (yystos[*yyssp], *yyvsp]b4_location_if([, *yylsp])[);
|
||||||
YYPOPSTACK;
|
YYPOPSTACK;
|
||||||
}
|
}
|
||||||
YYABORT;
|
YYABORT;
|
||||||
@@ -1123,7 +1123,7 @@ yyerrlab1:
|
|||||||
|
|
||||||
YYDPRINTF ((stderr, "Discarding token %d (%s).\n",
|
YYDPRINTF ((stderr, "Discarding token %d (%s).\n",
|
||||||
yychar, yytname[yychar1]));
|
yychar, yytname[yychar1]));
|
||||||
yydestructor (yychar1, yylval]b4_location_if([, yylloc])[);
|
yydestruct (yychar1, yylval]b4_location_if([, yylloc])[);
|
||||||
yychar = YYEMPTY;
|
yychar = YYEMPTY;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1155,7 +1155,7 @@ yyerrlab1:
|
|||||||
yystos[*yyssp], *yyvsp]b4_location_if([, *yylsp])[));
|
yystos[*yyssp], *yyvsp]b4_location_if([, *yylsp])[));
|
||||||
YYDPRINTF ((stderr, "\n"));
|
YYDPRINTF ((stderr, "\n"));
|
||||||
|
|
||||||
yydestructor (yystos[yystate], *yyvsp]b4_location_if([, *yylsp])[);
|
yydestruct (yystos[yystate], *yyvsp]b4_location_if([, *yylsp])[);
|
||||||
yyvsp--;
|
yyvsp--;
|
||||||
yystate = *--yyssp;
|
yystate = *--yyssp;
|
||||||
]b4_location_if([ yylsp--;])[
|
]b4_location_if([ yylsp--;])[
|
||||||
@@ -1237,8 +1237,8 @@ m4_popdef([b4_dollar_dollar])])
|
|||||||
|
|
||||||
m4_divert_pop([KILL])dnl# End of M4 code.
|
m4_divert_pop([KILL])dnl# End of M4 code.
|
||||||
static void
|
static void
|
||||||
yydestructor (int yytype,
|
yydestruct (int yytype,
|
||||||
YYSTYPE yyvalue[]b4_location_if([, YYLTYPE yylocation]))
|
YYSTYPE yyvalue[]b4_location_if([, YYLTYPE yylocation]))
|
||||||
{
|
{
|
||||||
switch (yytype)
|
switch (yytype)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user