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

Comparing ray/src/util/setscan.c (file contents):
Revision 1.1 by greg, Tue Mar 12 13:07:40 1991 UTC vs.
Revision 1.3 by greg, Thu Mar 14 17:38:27 1991 UTC

# Line 1 | Line 1
1   /* Copyright (c) 1991 Regents of the University of California */
2  
3 < /* SCCSid "$SunId$ LBL" */
3 > #ifndef lint
4 > static char SCCSid[] = "$SunId$ LBL";
5 > #endif
6  
7 < /* Copyright (c) 1991 Regents of the University of California */
7 > /*
8 > * Convert angle ranges of the form a-b:s,c to discrete values
9 > */
10  
11   #include <ctype.h>
12  
13 < #define  ANGLE          short
10 < #define  AEND           (-11111)
13 > #include "setscan.h"
14  
15 +
16   setscan(ang, arg)                       /* set up scan according to arg */
17   register ANGLE  *ang;
18   register char  *arg;
# Line 34 | Line 38 | register char  *arg;
38                  default:
39                          return(-1);
40                  }
41 <                if (!isdigit(*arg) && *arg != '-' && *arg != '+')
41 >                if (!isdigit(*arg))
42                          return(-1);
43                  do
44                          arg++;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines