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

Comparing ray/src/cal/calc.c (file contents):
Revision 1.2 by schorsch, Sun Jun 8 12:03:09 2003 UTC vs.
Revision 1.3 by schorsch, Mon Jun 30 14:59:10 2003 UTC

# Line 21 | Line 21 | static const char      RCSid[] = "$Id$";
21   double  result[MAXRES];
22   int     nres = 0;
23  
24 #ifndef BSD
25 #define  index          strchr
26 #endif
27
24   jmp_buf  env;
25   int  recover = 0;
26  
# Line 93 | Line 89 | char  *argv[];
89                          eclock++;
90                          continue;
91                  }
92 <                if ((cp = index(expr, '=')) != NULL ||
93 <                                (cp = index(expr, ':')) != NULL) {
92 >                if ((cp = strchr(expr, '=')) != NULL ||
93 >                                (cp = strchr(expr, ':')) != NULL) {
94                          if (cp[1])
95                                  scompile(expr, NULL, 0);
96                          else if (*cp == '=') {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines