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

Diff of /bison/src/tables.c

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

revision 1.9 by akim, Sun Oct 20 11:18:14 2002 UTC revision 1.10 by eggert, Tue Oct 22 04:46:28 2002 UTC
# Line 418  token_actions (void) Line 418  token_actions (void)
418    /* Find the rules which are reduced.  */    /* Find the rules which are reduced.  */
419    if (!glr_parser)    if (!glr_parser)
420      for (r = 0; r < nrules; ++r)      for (r = 0; r < nrules; ++r)
421        rules[r].useful = FALSE;        rules[r].useful = false;
422    
423    for (i = 0; i < nstates; ++i)    for (i = 0; i < nstates; ++i)
424      {      {
# Line 433  token_actions (void) Line 433  token_actions (void)
433          {          {
434            for (j = 0; j < ntokens; ++j)            for (j = 0; j < ntokens; ++j)
435              if (actrow[j] < 0 && actrow[j] != ACTION_MIN)              if (actrow[j] < 0 && actrow[j] != ACTION_MIN)
436                rules[item_number_as_rule_number (actrow[j])].useful = TRUE;                rules[item_number_as_rule_number (actrow[j])].useful = true;
437            if (yydefact[i])            if (yydefact[i])
438              rules[yydefact[i] - 1].useful = TRUE;              rules[yydefact[i] - 1].useful = true;
439          }          }
440      }      }
441    

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

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