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

Comparing ray/src/rt/p_func.c (file contents):
Revision 2.3 by greg, Wed Jan 12 16:46:50 1994 UTC vs.
Revision 2.6 by greg, Wed Mar 5 16:16:53 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1991 Regents of the University of California */
2
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ LBL";
2 > static const char       RCSid[] = "$Id$";
3   #endif
6
4   /*
5   *  p_func.c - routine for procedural patterns.
9 *
10 *     4/8/86
6   */
7  
8 + #include "copyright.h"
9 +
10   #include  "ray.h"
11  
12   #include  "func.h"
# Line 50 | Line 47 | RAY  *r;
47          setfunc(m, r);
48          errno = 0;
49          bval = evalue(mf->ep[0]);
50 <        if (errno) {
50 >        if (errno == EDOM || errno == ERANGE) {
51                  objerror(m, WARNING, "compute error");
52                  return(0);
53          }
# Line 74 | Line 71 | RAY  *r;
71          setcolor(cval, evalue(mf->ep[0]),
72                          evalue(mf->ep[1]),
73                          evalue(mf->ep[2]));
74 <        if (errno) {
74 >        if (errno == EDOM || errno == ERANGE) {
75                  objerror(m, WARNING, "compute error");
76                  return(0);
77          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines