/[bison]/bison/data/bison.simple
ViewVC logotype

Diff of /bison/data/bison.simple

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.45 by akim, Thu Jun 20 10:29:27 2002 UTC revision 1.46 by akim, Thu Jun 20 11:28:33 2002 UTC
# Line 675  int yyparse (void); Line 675  int yyparse (void);
675  #endif  #endif
676    
677  #if defined (__STDC__) || defined (__cplusplus)  #if defined (__STDC__) || defined (__cplusplus)
678  static void yydestructor (int yytype,  static void yydestruct (int yytype,
679                            YYSTYPE yyvalue[]b4_location_if([, YYLTYPE yylocation]));                          YYSTYPE yyvalue[]b4_location_if([, YYLTYPE yylocation]));
680  # if YYDEBUG  # if YYDEBUG
681  static void yysymprint (FILE* out, int yytype,  static void yysymprint (FILE* out, int yytype,
682                          YYSTYPE yyvalue[]b4_location_if([, YYLTYPE yylocation]));                          YYSTYPE yyvalue[]b4_location_if([, YYLTYPE yylocation]));
# Line 1115  yyerrlab1: Line 1115  yyerrlab1:
1115                              yystos[*yyssp],                              yystos[*yyssp],
1116                              *yyvsp]b4_location_if([, *yylsp])[));                              *yyvsp]b4_location_if([, *yylsp])[));
1117                YYDPRINTF ((stderr, "\n"));                YYDPRINTF ((stderr, "\n"));
1118                yydestructor (yystos[*yyssp], *yyvsp]b4_location_if([, *yylsp])[);                yydestruct (yystos[*yyssp], *yyvsp]b4_location_if([, *yylsp])[);
1119                YYPOPSTACK;                YYPOPSTACK;
1120              }              }
1121            YYABORT;            YYABORT;
# Line 1123  yyerrlab1: Line 1123  yyerrlab1:
1123    
1124        YYDPRINTF ((stderr, "Discarding token %d (%s).\n",        YYDPRINTF ((stderr, "Discarding token %d (%s).\n",
1125                    yychar, yytname[yychar1]));                    yychar, yytname[yychar1]));
1126        yydestructor (yychar1, yylval]b4_location_if([, yylloc])[);        yydestruct (yychar1, yylval]b4_location_if([, yylloc])[);
1127        yychar = YYEMPTY;        yychar = YYEMPTY;
1128      }      }
1129    
# Line 1155  yyerrlab1: Line 1155  yyerrlab1:
1155                      yystos[*yyssp], *yyvsp]b4_location_if([, *yylsp])[));                      yystos[*yyssp], *yyvsp]b4_location_if([, *yylsp])[));
1156        YYDPRINTF ((stderr, "\n"));        YYDPRINTF ((stderr, "\n"));
1157    
1158        yydestructor (yystos[yystate], *yyvsp]b4_location_if([, *yylsp])[);        yydestruct (yystos[yystate], *yyvsp]b4_location_if([, *yylsp])[);
1159        yyvsp--;        yyvsp--;
1160        yystate = *--yyssp;        yystate = *--yyssp;
1161  ]b4_location_if([      yylsp--;])[  ]b4_location_if([      yylsp--;])[
# Line 1237  m4_popdef([b4_dollar_dollar])]) Line 1237  m4_popdef([b4_dollar_dollar])])
1237    
1238  m4_divert_pop([KILL])dnl# End of M4 code.  m4_divert_pop([KILL])dnl# End of M4 code.
1239  static void  static void
1240  yydestructor (int yytype,  yydestruct (int yytype,
1241                YYSTYPE yyvalue[]b4_location_if([, YYLTYPE yylocation]))              YYSTYPE yyvalue[]b4_location_if([, YYLTYPE yylocation]))
1242  {  {
1243    switch (yytype)    switch (yytype)
1244      {      {

Legend:
Removed from v.1.45  
changed lines
  Added in v.1.46

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26