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

Comparing ray/src/rt/t_func.c (file contents):
Revision 2.9 by greg, Sat Jun 9 07:16:47 2012 UTC vs.
Revision 2.11 by greg, Tue Dec 3 19:36:58 2024 UTC

# Line 28 | Line 28 | static const char      RCSid[] = "$Id$";
28   */
29  
30  
31 < extern int
31 > int
32   t_func(                 /* compute texture for ray */
33 <        register OBJREC  *m,
34 <        register RAY  *r
33 >        OBJREC  *m,
34 >        RAY  *r
35   )
36   {
37          FVECT  disp;
38          double  d;
39 <        register MFUNC  *mf;
40 <        register int  i;
39 >        MFUNC  *mf;
40 >        int  i;
41  
42          if (m->oargs.nsargs < 4)
43                  objerror(m, USER, "bad # arguments");
# Line 46 | Line 46 | t_func(                        /* compute texture for ray */
46          errno = 0;
47          for (i = 0; i < 3; i++) {
48                  disp[i] = evalue(mf->ep[i]);
49 <                if (errno == EDOM || errno == ERANGE) {
49 >                if ((errno == EDOM) | (errno == ERANGE)) {
50                          objerror(m, WARNING, "compute error");
51                          return(0);
52                  }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines