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

Comparing ray/src/common/calexpr.c (file contents):
Revision 2.19 by greg, Tue Feb 25 02:47:21 2003 UTC vs.
Revision 2.21 by greg, Mon Jun 2 18:13:54 2003 UTC

# Line 43 | Line 43 | static double  eadd(), esubtr(), emult(), edivi(), epo
43   static double  ebotch();
44  
45   unsigned int  esupport =                /* what to support */
46 <                E_VARIABLE | E_FUNCTION | E_REDEFW;
46 >                E_VARIABLE | E_FUNCTION ;
47  
48   int  nextc;                             /* lookahead character */
49  
# Line 281 | Line 281 | EPNODE *ep;
281      if (!finite(d))
282          errno = EDOM;
283   #endif
284 <    if (errno) {
284 >    if (errno == EDOM || errno == ERANGE) {
285          wputs("Illegal power\n");
286          return(0.0);
287      }
# Line 727 | Line 727 | register EPNODE         *epar;
727      ep->type = NUM;
728      errno = 0;
729      ep->v.num = evalue(epar);
730 <    if (errno)
730 >    if (errno == EDOM || errno == ERANGE)
731          syntax("bad constant expression");
732      epfree(epar);
733  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines