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

Diff of /bison/src/closure.c

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

revision 1.13.2.3 by akim, Mon Nov 19 09:16:24 2001 UTC revision 1.13.2.4 by akim, Mon Nov 19 09:21:26 2001 UTC
# Line 19  Line 19 
19     02111-1307, USA.  */     02111-1307, USA.  */
20    
21  #include "system.h"  #include "system.h"
22    #include "getargs.h"
23  #include "gram.h"  #include "gram.h"
24  #include "reader.h"  #include "reader.h"
25  #include "closure.h"  #include "closure.h"
# Line 39  static int rulesetsize; Line 40  static int rulesetsize;
40  /* number of words required to hold a bit for each variable */  /* number of words required to hold a bit for each variable */
41  static int varsetsize;  static int varsetsize;
42    
 #if TRACE  
43    
44  /*-----------------.  /*-----------------.
45  | Debugging code.  |  | Debugging code.  |
# Line 97  print_fderives (void) Line 97  print_fderives (void)
97            fprintf (stderr, "   %d\n", j);            fprintf (stderr, "   %d\n", j);
98      }      }
99  }  }
 #endif  
100    
101  /*-------------------------------------------------------------------.  /*-------------------------------------------------------------------.
102  | Set FIRSTS to be an NVARS by NVARS bit matrix indicating which     |  | Set FIRSTS to be an NVARS by NVARS bit matrix indicating which     |
# Line 142  set_firsts (void) Line 141  set_firsts (void)
141    
142    RTC (firsts, nvars);    RTC (firsts, nvars);
143    
144  #ifdef TRACE    if (trace_flag)
145    print_firsts ();      print_firsts ();
 #endif  
146  }  }
147    
148  /*-------------------------------------------------------------------.  /*-------------------------------------------------------------------.
# Line 203  set_fderives (void) Line 201  set_fderives (void)
201        rrow += rulesetsize;        rrow += rulesetsize;
202      }      }
203    
204  #ifdef TRACE    if (trace_flag)
205    print_fderives ();      print_fderives ();
 #endif  
206    
207    XFREE (firsts);    XFREE (firsts);
208  }  }
# Line 300  closure (short *core, int n) Line 297  closure (short *core, int n)
297    while (csp < csend)    while (csp < csend)
298      *itemsetend++ = *csp++;      *itemsetend++ = *csp++;
299    
300  #if TRACE    if (trace_flag)
301    print_closure (n);      print_closure (n);
 #endif  
302  }  }
303    
304    

Legend:
Removed from v.1.13.2.3  
changed lines
  Added in v.1.13.2.4

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