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

Diff of /bison/src/output.c

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

revision 1.139 by akim, Sun Apr 7 17:40:56 2002 UTC revision 1.140 by akim, Sun Apr 7 17:41:44 2002 UTC
# Line 348  action_row (state_t *state) Line 348  action_row (state_t *state)
348            /* and record this rule as the rule to use if that            /* and record this rule as the rule to use if that
349               token follows.  */               token follows.  */
350            if (bitset_test (LA[state->lookaheadsp + i], j))            if (bitset_test (LA[state->lookaheadsp + i], j))
351              actrow[j] = -LAruleno[state->lookaheadsp + i];              actrow[j] = -LArule[state->lookaheadsp + i]->number;
352      }      }
353    
354    /* Now see which tokens are allowed for shifts in this state.  For    /* Now see which tokens are allowed for shifts in this state.  For
# Line 395  action_row (state_t *state) Line 395  action_row (state_t *state)
395            for (i = 0; i < state->nlookaheads; i++)            for (i = 0; i < state->nlookaheads; i++)
396              {              {
397                int count = 0;                int count = 0;
398                int rule = -LAruleno[state->lookaheadsp + i];                int rule = -LArule[state->lookaheadsp + i]->number;
399                int j;                int j;
400    
401                for (j = 0; j < ntokens; j++)                for (j = 0; j < ntokens; j++)
# Line 918  output_actions (void) Line 918  output_actions (void)
918    
919    token_actions ();    token_actions ();
920    bitsetv_free (LA);    bitsetv_free (LA);
921    XFREE (LAruleno);    free (LArule);
922    
923    goto_actions ();    goto_actions ();
924    XFREE (goto_map + ntokens);    XFREE (goto_map + ntokens);

Legend:
Removed from v.1.139  
changed lines
  Added in v.1.140

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