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

Diff of /bison/data/glr.c

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

revision 1.7 by akim, Thu Jul 25 17:32:34 2002 UTC revision 1.8 by akim, Tue Jul 30 11:56:44 2002 UTC
# Line 1512  yyreportParseError (yyGLRStack* yystack, Line 1512  yyreportParseError (yyGLRStack* yystack,
1512            yyprefix = ", expecting ";            yyprefix = ", expecting ";
1513            for (yyx = yyn < 0 ? -yyn : 0; yyx < yytname_size && yycount <= 5;            for (yyx = yyn < 0 ? -yyn : 0; yyx < yytname_size && yycount <= 5;
1514                 yyx += 1)                 yyx += 1)
1515              if (yycheck[yyx + yyn] == yyx)              if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
1516                yysize += strlen (yytokenName (yyx)) + strlen (yyprefix),                yysize += strlen (yytokenName (yyx)) + strlen (yyprefix),
1517                  yycount += 1, yyprefix = " or ";                  yycount += 1, yyprefix = " or ";
1518            yymsg = yyp = (char*) malloc (yysize);            yymsg = yyp = (char*) malloc (yysize);

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

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