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

Comparing ray/src/rt/raytrace.c (file contents):
Revision 1.12 by greg, Sat Dec 15 15:03:32 1990 UTC vs.
Revision 1.14 by greg, Tue Feb 12 12:57:07 1991 UTC

# Line 56 | Line 56 | double  rw;
56          r->newcset = r->clipset;
57          r->ro = NULL;
58          r->rot = FHUGE;
59        r->rox = NULL;
59          r->pert[0] = r->pert[1] = r->pert[2] = 0.0;
60          setcolor(r->pcol, 1.0, 1.0, 1.0);
61          setcolor(r->rcol, 0.0, 0.0, 0.0);
# Line 253 | Line 252 | RAY  *r;
252                  if (rp->rox == &xp->xf) {               /* xp in use */
253                          xp = xp->next;                  /* move to next */
254                          if (xp == xflast) {             /* need new one */
255 <                                xp = (struct xfn *)malloc(sizeof(struct xfn));
255 >                                xp = (struct xfn *)bmalloc(sizeof(struct xfn));
256                                  if (xp == NULL)
257                                          error(SYSTEM,
258                                                  "out of memory in newrayxf");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines