--- ray/src/common/readfargs.c 2003/07/27 22:12:01 2.10 +++ ray/src/common/readfargs.c 2014/06/12 22:12:20 2.11 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: readfargs.c,v 2.10 2003/07/27 22:12:01 schorsch Exp $"; +static const char RCSid[] = "$Id: readfargs.c,v 2.11 2014/06/12 22:12:20 greg Exp $"; #endif /* * Allocate, read and free object arguments @@ -14,15 +14,16 @@ static const char RCSid[] = "$Id: readfargs.c,v 2.10 2 int -readfargs(fa, fp) /* read function arguments from stream */ -register FUNARGS *fa; -FILE *fp; +readfargs( /* read function arguments from stream */ + FUNARGS *fa, + FILE *fp +) { #define getstr(s) (fgetword(s,sizeof(s),fp)!=NULL) #define getint(s) (getstr(s) && isint(s)) #define getflt(s) (getstr(s) && isflt(s)) char sbuf[MAXSTR]; - register int n, i; + int n, i; if (!getint(sbuf) || (n = atoi(sbuf)) < 0) return(0); @@ -76,10 +77,11 @@ FILE *fp; void -freefargs(fa) /* free object arguments */ -register FUNARGS *fa; +freefargs( /* free object arguments */ + FUNARGS *fa +) { - register int i; + int i; if (fa->nsargs) { for (i = 0; i < fa->nsargs; i++)