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.11 by greg, Tue Jul 16 10:37:45 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;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines