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

Comparing ray/src/util/glaresrc.c (file contents):
Revision 1.3 by greg, Mon Mar 18 16:06:53 1991 UTC vs.
Revision 1.4 by greg, Tue Mar 19 09:10:58 1991 UTC

# Line 246 | Line 246 | int    v;
246  
247   close_allsrcs()                 /* done with everything */
248   {
249 <        register struct source  *this;
249 >        register struct source  *this, *nsrc;
250  
251 <        for (this = curlist; this != NULL; this = this->next)
251 >        for (this = curlist; this != NULL; this = nsrc) {
252 >                nsrc = this->next;
253                  donesource(this);
254 +        }
255          curlist = NULL;
256   }
257  
# Line 288 | Line 290 | register struct source *sp;
290          donelist = sp;
291          if (verbose)
292                  fprintf(stderr,
293 <        "%s: found source at (%f,%f,%f), solid angle %f, brightness %f\n",
293 >        "%s: found source at (%f,%f,%f), dw %f, br %f\n",
294                          progname, sp->dir[0], sp->dir[1], sp->dir[2],
295                          sp->dom, sp->brt);
296   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines