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

Comparing ray/src/rt/func.c (file contents):
Revision 1.15 by greg, Fri May 24 13:52:10 1991 UTC vs.
Revision 1.16 by greg, Mon Jun 17 08:28:26 1991 UTC

# Line 36 | Line 36 | XF  *bx;
36          extern double  l_arg();
37          extern long  eclock;
38          static char  *initfile = "rayinit.cal";
39 +        static long  lastrno = -1;
40 +                                        /* check to see if already set */
41 +        if (m == fobj && r->rno == lastrno)
42 +                return;
43                                          /* initialize if first call */
44          if (initfile != NULL) {
45                  loadfunc(initfile);
# Line 61 | Line 65 | XF  *bx;
65                          copystruct(&funcxf, &r->rox->b);
66          else
67                  copystruct(&funcxf, bx);
68 +        lastrno = r->rno;
69          eclock++;               /* notify expression evaluator */
70   }
71  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines