ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/caldefn.c
(Generate patch)

Comparing ray/src/common/caldefn.c (file contents):
Revision 1.10 by greg, Mon Apr 29 08:33:13 1991 UTC vs.
Revision 1.12 by greg, Wed Jul 17 11:12:02 1991 UTC

# Line 185 | Line 185 | int  (*cs)();
185   #endif
186  
187  
188 < dcleanup(lvl)                   /* clear definitions (0->vars,1->consts,2->output) */
188 > dcleanup(lvl)           /* clear definitions (0->vars,1->output,2->consts) */
189   int  lvl;
190   {
191      register int  i;
# Line 194 | Line 194 | int  lvl;
194  
195      for (i = 0; i < NHASH; i++)
196          for (vp = hashtbl[i]; vp != NULL; vp = vp->next)
197 <            if (lvl >= 1)
197 >            if (lvl >= 2)
198                  dremove(vp->name);
199              else
200                  dclear(vp->name);
201   #ifdef  OUTCHAN
202 <    if (lvl >= 2) {
202 >    if (lvl >= 1) {
203          for (ep = outchan; ep != NULL; ep = ep->sibling)
204              epfree(ep);
205          outchan = NULL;
# Line 404 | Line 404 | loaddefn()                     /* load next definition */
404          else if (ep->v.kid->type == FUNC &&
405                          liblookup(ep->v.kid->v.kid->v.name) != NULL) {
406              wputs(ep->v.kid->v.kid->v.name);
407 <            wputs(": redefined library function\n");
407 >            wputs(": definition hides library function\n");
408          }
409   #endif
410   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines