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 2.17 by greg, Wed Apr 23 01:31:50 2003 UTC vs.
Revision 2.20 by greg, Mon Aug 4 22:37:53 2003 UTC

# Line 31 | Line 31 | XF  funcxf;                    /* current transformation */
31   static OBJREC  *fobj = NULL;    /* current function object */
32   static RAY  *fray = NULL;       /* current function ray */
33  
34 < static double  l_erf(), l_erfc(), l_arg();
34 > static double  l_erf(char *), l_erfc(char *), l_arg(char *);
35  
36  
37   MFUNC *
# Line 185 | Line 185 | register RAY  *r;
185                          funcxf.sca = r->rox->b.sca * f->b->sca;
186                          multmat4(funcxf.xfm, r->rox->b.xfm, f->b->xfm);
187                  } else
188 <                        copystruct(&funcxf, &r->rox->b);
188 >                        funcxf = r->rox->b;
189          else
190 <                copystruct(&funcxf, f->b);
190 >                funcxf = *(f->b);
191          lastrno = r->rno;
192          eclock++;               /* notify expression evaluator */
193          return(1);
# Line 200 | Line 200 | char  *fname;
200   {
201          char  *ffname;
202  
203 <        if ((ffname = getpath(fname, getlibpath(), R_OK)) == NULL) {
203 >        if ((ffname = getpath(fname, getrlibpath(), R_OK)) == NULL) {
204                  sprintf(errmsg, "cannot find function file \"%s\"", fname);
205                  error(USER, errmsg);
206          }
# Line 209 | Line 209 | char  *fname;
209  
210  
211   static double
212 < l_arg()                         /* return nth real argument */
212 > l_arg(char *nm)                 /* return nth real argument */
213   {
214          register int  n;
215  
# Line 230 | Line 230 | l_arg()                                /* return nth real argument */
230  
231  
232   static double
233 < l_erf()                         /* error function */
233 > l_erf(char *nm)                 /* error function */
234   {
235          extern double  erf();
236  
# Line 239 | Line 239 | l_erf()                                /* error function */
239  
240  
241   static double
242 < l_erfc()                        /* cumulative error function */
242 > l_erfc(char *nm)                /* cumulative error function */
243   {
244          extern double  erfc();
245  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines