--- ray/src/common/caldefn.c 1991/04/29 08:33:13 1.10 +++ ray/src/common/caldefn.c 1991/07/17 11:12:02 1.12 @@ -185,7 +185,7 @@ int (*cs)(); #endif -dcleanup(lvl) /* clear definitions (0->vars,1->consts,2->output) */ +dcleanup(lvl) /* clear definitions (0->vars,1->output,2->consts) */ int lvl; { register int i; @@ -194,12 +194,12 @@ int lvl; for (i = 0; i < NHASH; i++) for (vp = hashtbl[i]; vp != NULL; vp = vp->next) - if (lvl >= 1) + if (lvl >= 2) dremove(vp->name); else dclear(vp->name); #ifdef OUTCHAN - if (lvl >= 2) { + if (lvl >= 1) { for (ep = outchan; ep != NULL; ep = ep->sibling) epfree(ep); outchan = NULL; @@ -404,7 +404,7 @@ loaddefn() /* load next definition */ else if (ep->v.kid->type == FUNC && liblookup(ep->v.kid->v.kid->v.name) != NULL) { wputs(ep->v.kid->v.kid->v.name); - wputs(": redefined library function\n"); + wputs(": definition hides library function\n"); } #endif #endif