--- ray/src/util/setscan.c 1991/03/12 13:07:40 1.1 +++ ray/src/util/setscan.c 1991/11/12 17:19:09 2.1 @@ -1,14 +1,18 @@ /* Copyright (c) 1991 Regents of the University of California */ -/* SCCSid "$SunId$ LBL" */ +#ifndef lint +static char SCCSid[] = "$SunId$ LBL"; +#endif -/* Copyright (c) 1991 Regents of the University of California */ +/* + * Convert angle ranges of the form a-b:s,c to discrete values + */ #include -#define ANGLE short -#define AEND (-11111) +#include "setscan.h" + setscan(ang, arg) /* set up scan according to arg */ register ANGLE *ang; register char *arg; @@ -34,7 +38,7 @@ register char *arg; default: return(-1); } - if (!isdigit(*arg) && *arg != '-' && *arg != '+') + if (!isdigit(*arg)) return(-1); do arg++;