more fixes

This commit is contained in:
ceriel
1990-10-17 17:00:03 +00:00
parent b9df23072d
commit 2952aff355
20 changed files with 490 additions and 311 deletions

View File

@@ -129,3 +129,19 @@ base_scope(sc)
}
return sc;
}
/* extern int scope_encloses(p_scope scope, from_scope);
Returns 1 if scope encloses from from_scope, 0 otherwise.
*/
int
scope_encloses(scope, from_scope)
p_scope scope, from_scope;
{
register p_scope sc = from_scope;
while (sc) {
if (sc == scope) return 1;
sc = sc->sc_static_encl;
}
return 0;
}