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

Diff of /bison/src/reduce.c

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

revision 1.42 by akim, Mon Mar 4 12:01:44 2002 UTC revision 1.43 by akim, Mon Mar 4 12:05:30 2002 UTC
# Line 126  useless_nonterminals (void) Line 126  useless_nonterminals (void)
126      {      {
127        bitset_copy (Np, N);        bitset_copy (Np, N);
128        for (i = 1; i <= nrules; i++)        for (i = 1; i <= nrules; i++)
129          {          if (!bitset_test (P, i)
130            if (!bitset_test (P, i))              && useful_production (i, N))
131              {            {
132                if (useful_production (i, N))              bitset_set (Np, rules[i].lhs - ntokens);
133                  {              bitset_set (P, i);
134                    bitset_set (Np, rules[i].lhs - ntokens);            }
                   bitset_set (P, i);  
                 }  
             }  
         }  
135        if (bitset_equal_p (N, Np))        if (bitset_equal_p (N, Np))
136          break;          break;
137        Ns = Np;        Ns = Np;

Legend:
Removed from v.1.42  
changed lines
  Added in v.1.43

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