--- ray/src/util/setscan.c 1991/03/12 13:07:40 1.1 +++ ray/src/util/setscan.c 2003/02/22 02:07:30 2.2 @@ -1,14 +1,15 @@ -/* Copyright (c) 1991 Regents of the University of California */ +#ifndef lint +static const char RCSid[] = "$Id: setscan.c,v 2.2 2003/02/22 02:07:30 greg Exp $"; +#endif +/* + * Convert angle ranges of the form a-b:s,c to discrete values + */ -/* SCCSid "$SunId$ LBL" */ - -/* Copyright (c) 1991 Regents of the University of California */ - #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 +35,7 @@ register char *arg; default: return(-1); } - if (!isdigit(*arg) && *arg != '-' && *arg != '+') + if (!isdigit(*arg)) return(-1); do arg++;