removed warning and fixed two problems:

- remove_def was wrong, and parameter defs should not be removed at the
  end of a scope
This commit is contained in:
ceriel
1994-10-27 14:57:48 +00:00
parent 4c26480d25
commit 8061bab6a9
3 changed files with 4 additions and 2 deletions

View File

@@ -55,7 +55,7 @@ close_scope(doclean)
df = CurrentScope->sc_def;
if (doclean) while (df) {
struct def *next = df->df_nextinscope;
remove_def(df);
if (! (df->df_flags & (D_VARPAR|D_VALPAR))) remove_def(df);
df = next;
}
CurrVis = CurrVis->next;