/[bison]/bison/src/closure.c
ViewVC logotype

Diff of /bison/src/closure.c

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

revision 1.14 by akim, Thu Oct 4 14:55:20 2001 UTC revision 1.15 by akim, Mon Nov 19 10:19:20 2001 UTC
# Line 130  set_firsts (void) Line 130  set_firsts (void)
130        sp = derives[i];        sp = derives[i];
131        while (*sp >= 0)        while (*sp >= 0)
132          {          {
133            symbol = ritem[rrhs[*sp++]];            symbol = ritem[rule_table[*sp++].rhs];
134            if (ISVAR (symbol))            if (ISVAR (symbol))
135              {              {
136                symbol -= ntokens;                symbol -= ntokens;
# Line 287  closure (short *core, int n) Line 287  closure (short *core, int n)
287              {              {
288                if (word & (1 << b))                if (word & (1 << b))
289                  {                  {
290                    itemno = rrhs[ruleno];                    itemno = rule_table[ruleno].rhs;
291                    while (csp < csend && *csp < itemno)                    while (csp < csend && *csp < itemno)
292                      *itemsetend++ = *csp++;                      *itemsetend++ = *csp++;
293                    *itemsetend++ = itemno;                    *itemsetend++ = itemno;

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

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