--- ray/src/util/setscan.c 1991/03/13 16:23:49 1.2 +++ ray/src/util/setscan.c 2003/06/27 11:32:12 2.3 @@ -1,17 +1,19 @@ -/* Copyright (c) 1991 Regents of the University of California */ +#ifndef lint +static const char RCSid[] = "$Id: setscan.c,v 2.3 2003/06/27 11:32:12 schorsch 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 (-1) +#include "setscan.h" -setscan(ang, arg) /* set up scan according to arg */ -register ANGLE *ang; -register char *arg; +int +setscan( /* set up scan according to arg */ +register ANGLE *ang, +register char *arg +) { int state = ','; int start, finish, step;