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.3 by greg, Tue Mar 14 10:41:21 1989 UTC vs.
Revision 1.5 by greg, Wed Apr 19 21:36:11 1989 UTC

# Line 53 | Line 53 | double  sca;
53          }
54          fobj = m;
55          fray = r;
56 <        fxf.sca = r->ros * sca;
57 <        multmat4(fxf.xfm, r->rox, xfm);
56 >        fxf.sca = r->robs * sca;
57 >        multmat4(fxf.xfm, r->robx, xfm);
58          eclock++;               /* notify expression evaluator */
59   }
60  
# Line 66 | Line 66 | RAY  *r;
66          register XF  *mxf;
67  
68          if ((mxf = (XF *)m->os) == NULL) {
69 <                register int  n = m->oargs.nsargs;
70 <                register char  **sa = m->oargs.sarg;
69 >                register int  n;
70 >                register char  **sa;
71  
72 <                while (n > 0 && **sa != '-') {
73 <                        n--;
74 <                        sa++;
75 <                }
72 >                for (n = m->oargs.nsargs, sa = m->oargs.sarg;
73 >                                n > 0 && **sa != '-'; n--, sa++)
74 >                        ;
75                  mxf = (XF *)malloc(sizeof(XF));
76                  if (mxf == NULL)
77                          goto memerr;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines