/[bison]/bison/data/yacc.c
ViewVC logotype

Diff of /bison/data/yacc.c

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

revision 1.10 by akim, Fri Jul 26 06:25:35 2002 UTC revision 1.11 by akim, Tue Jul 30 11:56:44 2002 UTC
# Line 667  b4_c_function([yyreport_parse_error], Line 667  b4_c_function([yyreport_parse_error],
667           YYCHECK.  */           YYCHECK.  */
668        for (yyx = yyn < 0 ? -yyn : 0;        for (yyx = yyn < 0 ? -yyn : 0;
669             yyx < (int) (sizeof (yytname) / sizeof (char *)); yyx++)             yyx < (int) (sizeof (yytname) / sizeof (char *)); yyx++)
670          if (yycheck[yyx + yyn] == yyx)          if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
671            yysize += yystrlen (yytname[yyx]) + 15, yycount++;            yysize += yystrlen (yytname[yyx]) + 15, yycount++;
672        yysize += yystrlen ("parse error, unexpected ") + 1;        yysize += yystrlen ("parse error, unexpected ") + 1;
673        yysize += yystrlen (yytname[yytype]);        yysize += yystrlen (yytname[yytype]);
# Line 683  b4_c_function([yyreport_parse_error], Line 683  b4_c_function([yyreport_parse_error],
683                for (yyx = yyn < 0 ? -yyn : 0;                for (yyx = yyn < 0 ? -yyn : 0;
684                     yyx < (int) (sizeof (yytname) / sizeof (char *));                     yyx < (int) (sizeof (yytname) / sizeof (char *));
685                     yyx++)                     yyx++)
686                  if (yycheck[yyx + yyn] == yyx)                  if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
687                    {                    {
688                      const char *yyq = ! yycount ? ", expecting " : " or ";                      const char *yyq = ! yycount ? ", expecting " : " or ";
689                      yyp = yystpcpy (yyp, yyq);                      yyp = yystpcpy (yyp, yyq);

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

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