/[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.19 by akim, Wed Dec 20 17:21:14 2000 UTC revision 1.20 by akim, Thu Oct 4 14:55:21 2001 UTC
# Line 29  Line 29 
29  #include "getargs.h"  #include "getargs.h"
30  #include "files.h"  #include "files.h"
31  #include "gram.h"  #include "gram.h"
 #include "xalloc.h"  
32  #include "complain.h"  #include "complain.h"
33  #include "reduce.h"  #include "reduce.h"
34  #include "reader.h"  #include "reader.h"
# Line 117  static void Line 116  static void
116  useless_nonterminals (void)  useless_nonterminals (void)
117  {  {
118    BSet Np, Ns;    BSet Np, Ns;
119    int i, n;    int i;
120    
121    /* N is set as built.  Np is set being built this iteration. P is    /* N is set as built.  Np is set being built this iteration. P is
122       set of all productions which have a RHS all in N.  */       set of all productions which have a RHS all in N.  */
# Line 140  useless_nonterminals (void) Line 139  useless_nonterminals (void)
139       saved to be used when finding useful productions: only       saved to be used when finding useful productions: only
140       productions in this set will appear in the final grammar.  */       productions in this set will appear in the final grammar.  */
141    
   n = 0;  
142    while (1)    while (1)
143      {      {
144        for (i = WORDSIZE (nvars) - 1; i >= 0; i--)        for (i = WORDSIZE (nvars) - 1; i >= 0; i--)
# Line 171  static void Line 169  static void
169  inaccessable_symbols (void)  inaccessable_symbols (void)
170  {  {
171    BSet Vp, Vs, Pp;    BSet Vp, Vs, Pp;
172    int i, n;    int i;
173    short t;    short t;
174    rule r;    rule r;
175    
# Line 207  inaccessable_symbols (void) Line 205  inaccessable_symbols (void)
205    
206    SETBIT (V, start_symbol);    SETBIT (V, start_symbol);
207    
   n = 0;  
208    while (1)    while (1)
209      {      {
210        for (i = WORDSIZE (nsyms) - 1; i >= 0; i--)        for (i = WORDSIZE (nsyms) - 1; i >= 0; i--)

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

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