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; |
38 |
|
default: |
39 |
|
return(-1); |
40 |
|
} |
41 |
< |
if (!isdigit(*arg) && *arg != '-' && *arg != '+') |
41 |
> |
if (!isdigit(*arg)) |
42 |
|
return(-1); |
43 |
|
do |
44 |
|
arg++; |