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 2.3 by schorsch, Fri Jun 27 11:32:12 2003 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines