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 1.24 by greg, Thu Jul 18 16:37:59 1991 UTC vs.
Revision 1.25 by greg, Fri Jul 19 15:22:02 1991 UTC

# Line 306 | Line 306 | char  *str, *dsc;
306   int  typ;
307   register union {int i; double d; COLOR C;}  *ptr;
308   {
309 +        extern char  *index();
310          int  i0;
311          double  d0, d1, d2;
312          char  buf[48];
# Line 339 | Line 340 | register union {int i; double d; COLOR C;}  *ptr;
340                          sprintf(buf, " (%c): ", ptr->i ? 'y' : 'n');
341                          (*dev->comout)(buf);
342                          (*dev->comin)(buf, NULL);
343 +                        if (buf[0] == '\0' ||
344 +                                        index("yY+1tTnN-0fF", buf[0]) == NULL)
345 +                                break;
346                  }
347 <                ptr->i = tolower(buf[0]) == 'y';
347 >                ptr->i = index("yY+1tT", buf[0]) != NULL;
348                  break;
349          case 'C':                       /* color */
350                  if (sscanf(str, "%lf %lf %lf", &d0, &d1, &d2) != 3) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines