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

Comparing ray/src/meta/gcalc.c (file contents):
Revision 1.1 by greg, Sat Feb 22 02:07:26 2003 UTC vs.
Revision 1.2 by schorsch, Mon Jun 30 14:59:12 2003 UTC

# Line 9 | Line 9 | static const char      RCSid[] = "$Id$";
9   */
10  
11   #include  <stdio.h>
12 + #include  <string.h>
13  
14   #include  "mgvars.h"
15  
15 #ifndef BSD
16 #define index   strchr
17 #endif
16  
19 extern char  *index();
20
17   static double  xsum, xxsum, ysum, yysum, xysum;
18   static double  xmin, xmax, ymin, ymax;
19   static double  lastx, lasty, rsum;
# Line 29 | Line 25 | char  *types;
25   {
26          int  i, calcpoint();
27  
28 <        if (index(types, 'h') == NULL)
28 >        if (strchr(types, 'h') == NULL)
29                  gcheader(types);
30          
31          xmin = gparam[XMIN].flags & DEFINED ?

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines