ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/readfargs.c
(Generate patch)

Comparing ray/src/common/readfargs.c (file contents):
Revision 2.10 by schorsch, Sun Jul 27 22:12:01 2003 UTC vs.
Revision 2.11 by greg, Thu Jun 12 22:12:20 2014 UTC

# Line 14 | Line 14 | static const char      RCSid[] = "$Id$";
14  
15  
16   int
17 < readfargs(fa, fp)               /* read function arguments from stream */
18 < register FUNARGS  *fa;
19 < FILE  *fp;
17 > readfargs(                      /* read function arguments from stream */
18 >        FUNARGS  *fa,
19 >        FILE  *fp
20 > )
21   {
22   #define getstr(s)       (fgetword(s,sizeof(s),fp)!=NULL)
23   #define getint(s)       (getstr(s) && isint(s))
24   #define getflt(s)       (getstr(s) && isflt(s))
25          char  sbuf[MAXSTR];
26 <        register int  n, i;
26 >        int  n, i;
27  
28          if (!getint(sbuf) || (n = atoi(sbuf)) < 0)
29                  return(0);
# Line 76 | Line 77 | FILE  *fp;
77  
78  
79   void
80 < freefargs(fa)                   /* free object arguments */
81 < register FUNARGS  *fa;
80 > freefargs(                              /* free object arguments */
81 >        FUNARGS  *fa
82 > )
83   {
84 <        register int  i;
84 >        int  i;
85  
86          if (fa->nsargs) {
87                  for (i = 0; i < fa->nsargs; i++)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines