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

Comparing ray/src/rt/rv2.c (file contents):
Revision 2.40 by schorsch, Thu Jun 5 19:29:34 2003 UTC vs.
Revision 2.41 by schorsch, Mon Jun 30 14:59:13 2003 UTC

# Line 7 | Line 7 | static const char      RCSid[] = "$Id$";
7   *  External symbols declared in rpaint.h
8   */
9  
10 #include  <ctype.h>
11
10   #include "copyright.h"
11  
12 + #include  <ctype.h>
13 + #include  <string.h>
14 +
15   #include  "platform.h"
16   #include  "ray.h"
17   #include  "otypes.h"
# Line 463 | Line 464 | void  *p;
464                          (*dev->comout)(buf);
465                          (*dev->comin)(buf, NULL);
466                          if (buf[0] == '\0' ||
467 <                                        index("yY+1tTnN-0fF", buf[0]) == NULL)
467 >                                        strchr("yY+1tTnN-0fF", buf[0]) == NULL)
468                                  return(0);
469                  }
470 <                ptr->i = index("yY+1tT", buf[0]) != NULL;
470 >                ptr->i = strchr("yY+1tT", buf[0]) != NULL;
471                  return(1);
472          case 'C':                       /* color */
473                  if (sscanf(str, "%lf %lf %lf", &d0, &d1, &d2) != 3) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines