* data/bison.simple (yydestructor): Rename as...

(yydestruct): this.
This commit is contained in:
Akim Demaille
2002-06-20 11:28:33 +00:00
parent 1a31ed21b1
commit 87542d29a5
2 changed files with 12 additions and 7 deletions

View File

@@ -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)

View File

@@ -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)
{ {