* src/system.h (LIST_FREE, shortcpy): New.

* src/LR0.c: Use them.
* src/output.c (free_itemsets, free_reductions, free_shifts):
Remove, replaced by LIST_FREE.
This commit is contained in:
Akim Demaille
2001-11-19 09:14:54 +00:00
parent b4a7a230f1
commit 377bd7c9a2
5 changed files with 31 additions and 76 deletions

View File

@@ -653,14 +653,7 @@ compute_lookaheads (void)
/* Free LOOKBACK. */
for (i = 0; i < state_table[nstates].lookaheads; i++)
{
shorts *sptmp;
for (sp = lookback[i]; sp; sp = sptmp)
{
sptmp = sp->next;
XFREE (sp);
}
}
LIST_FREE (shorts, lookback[i]);
XFREE (lookback);
XFREE (F);