* src/closure.c, src/conflicts.c, src/lalr.c, src/print.c,

* src/reduce.c: Remove the `bitset_zero's following the
`bitset_create's, as now it is performed by the latter.
This commit is contained in:
Akim Demaille
2002-03-04 13:56:41 +00:00
parent ef01750240
commit f0250de62e
6 changed files with 10 additions and 25 deletions

View File

@@ -124,7 +124,6 @@ set_firsts (void)
for (i = ntokens; i < nsyms; i++)
{
FIRSTS (i) = bitset_create (nvars, BITSET_FIXED);
bitset_zero (FIRSTS (i));
for (j = 0; derives[i][j] >= 0; ++j)
{
int symbol = ritem[rules[derives[i][j]].rhs];
@@ -157,10 +156,7 @@ set_fderives (void)
fderives = XCALLOC (bitset, nvars);
bitset_stats_init ();
for (i = 0 ; i < nvars; ++i)
{
fderives[i] = bitset_create (nrules + 1, BITSET_FIXED);
bitset_zero (fderives[i]);
}
fderives[i] = bitset_create (nrules + 1, BITSET_FIXED);
set_firsts ();
@@ -185,7 +181,6 @@ new_closure (int n)
itemset = XCALLOC (short, n);
ruleset = bitset_create (nrules + 1, BITSET_FIXED);
bitset_zero (ruleset);
set_fderives ();
}