/[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.43 by akim, Mon Mar 4 12:05:30 2002 UTC revision 1.44 by akim, Mon Mar 4 13:56:41 2002 UTC
# Line 103  useless_nonterminals (void) Line 103  useless_nonterminals (void)
103       set of all productions which have a RHS all in N.  */       set of all productions which have a RHS all in N.  */
104    
105    Np = bitset_create (nvars, BITSET_FIXED);    Np = bitset_create (nvars, BITSET_FIXED);
   bitset_zero (Np);  
106    
107    
108    /* The set being computed is a set of nonterminals which can derive    /* The set being computed is a set of nonterminals which can derive
# Line 175  inaccessable_symbols (void) Line 174  inaccessable_symbols (void)
174       user can know.  */       user can know.  */
175    
176    Vp = bitset_create (nsyms, BITSET_FIXED);    Vp = bitset_create (nsyms, BITSET_FIXED);
   bitset_zero (Vp);  
177    Pp = bitset_create (nrules + 1, BITSET_FIXED);    Pp = bitset_create (nrules + 1, BITSET_FIXED);
   bitset_zero (Pp);  
178    
179    /* If the start symbol isn't useful, then nothing will be useful. */    /* If the start symbol isn't useful, then nothing will be useful. */
180    if (bitset_test (N, start_symbol - ntokens))    if (bitset_test (N, start_symbol - ntokens))
# Line 495  reduce_grammar (void) Line 492  reduce_grammar (void)
492    /* Allocate the global sets used to compute the reduced grammar */    /* Allocate the global sets used to compute the reduced grammar */
493    
494    N = bitset_create (nvars, BITSET_FIXED);    N = bitset_create (nvars, BITSET_FIXED);
   bitset_zero (N);  
495    P =  bitset_create (nrules + 1, BITSET_FIXED);    P =  bitset_create (nrules + 1, BITSET_FIXED);
   bitset_zero (P);  
496    V = bitset_create (nsyms, BITSET_FIXED);    V = bitset_create (nsyms, BITSET_FIXED);
   bitset_zero (V);  
497    V1 = bitset_create (nsyms, BITSET_FIXED);    V1 = bitset_create (nsyms, BITSET_FIXED);
   bitset_zero (V1);  
498    
499    useless_nonterminals ();    useless_nonterminals ();
500    inaccessable_symbols ();    inaccessable_symbols ();

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

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