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

Diff of /bison/src/state.c

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

revision 1.21 by akim, Mon Jul 29 17:31:46 2002 UTC revision 1.22 by akim, Thu Aug 1 18:13:29 2002 UTC
# Line 223  state_rule_lookaheads_print (state_t *st Line 223  state_rule_lookaheads_print (state_t *st
223    /* Count the number of lookaheads corresponding to this rule.  */    /* Count the number of lookaheads corresponding to this rule.  */
224    for (j = 0; j < state->nlookaheads; ++j)    for (j = 0; j < state->nlookaheads; ++j)
225      BITSET_FOR_EACH (biter, state->lookaheads[j], k, 0)      BITSET_FOR_EACH (biter, state->lookaheads[j], k, 0)
226        if (state->lookaheads_rule[j]->number == rule->number)        if (state->lookaheads_rule[j] == rule)
227          nlookaheads++;          nlookaheads++;
228    
229    /* Print them if there are.  */    /* Print them if there are.  */
# Line 232  state_rule_lookaheads_print (state_t *st Line 232  state_rule_lookaheads_print (state_t *st
232        fprintf (out, "  [");        fprintf (out, "  [");
233        for (j = 0; j < state->nlookaheads; ++j)        for (j = 0; j < state->nlookaheads; ++j)
234          BITSET_FOR_EACH (biter, state->lookaheads[j], k, 0)          BITSET_FOR_EACH (biter, state->lookaheads[j], k, 0)
235            if (state->lookaheads_rule[j]->number == rule->number)            if (state->lookaheads_rule[j] == rule)
236              fprintf (out, "%s%s",              fprintf (out, "%s%s",
237                       symbols[k]->tag,                       symbols[k]->tag,
238                       --nlookaheads ? ", " : "");                       --nlookaheads ? ", " : "");

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

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