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

Comparing ray/src/rt/mx_func.c (file contents):
Revision 2.8 by schorsch, Tue Mar 30 16:13:01 2004 UTC vs.
Revision 2.10 by greg, Tue Dec 3 19:36:58 2024 UTC

# Line 26 | Line 26 | static const char      RCSid[] = "$Id$";
26   */
27  
28  
29 < extern int
29 > int
30   mx_func(                        /* compute mixture function */
31 <        register OBJREC  *m,
31 >        OBJREC  *m,
32          RAY  *r
33   )
34   {
35          OBJECT  obj;
36 <        register int  i;
36 >        int  i;
37          double  coef;
38          OBJECT  mod[2];
39 <        register MFUNC  *mf;
39 >        MFUNC  *mf;
40  
41          if (m->oargs.nsargs < 4)
42                  objerror(m, USER, "bad # arguments");
# Line 53 | Line 53 | mx_func(                       /* compute mixture function */
53          setfunc(m, r);
54          errno = 0;
55          coef = evalue(mf->ep[0]);
56 <        if (errno == EDOM || errno == ERANGE) {
56 >        if ((errno == EDOM) | (errno == ERANGE)) {
57                  objerror(m, WARNING, "compute error");
58                  return(0);
59          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines