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

Comparing ray/src/px/psum.c (file contents):
Revision 2.7 by schorsch, Fri Jan 2 12:47:01 2004 UTC vs.
Revision 2.8 by schorsch, Sun Mar 28 20:33:14 2004 UTC

# Line 27 | Line 27 | COLOR  scale[MAXFILE];                 /* scaling factors */
27   int  nfile;                             /* number of files */
28  
29   static gethfunc tabputs;
30 + static void psum(void);
31  
32  
33 +
34   static int
35   tabputs(                        /* print line preceded by a tab */
36          char    *s,
# Line 40 | Line 42 | tabputs(                       /* print line preceded by a tab */
42   }
43  
44  
45 < main(argc, argv)
46 < int  argc;
47 < char  *argv[];
45 > int
46 > main(
47 >        int  argc,
48 >        char  *argv[]
49 > )
50   {
51          double  d;
52          int  xres, yres;
# Line 123 | Line 127 | char  *argv[];
127          psum();
128          
129          quit(0);
130 +        return 0; /* pro forma return */
131   }
132  
133  
134 < psum()                          /* sum the files */
134 > static void
135 > psum(void)                              /* sum the files */
136   {
137          COLOR  *scanin, *scanout;
138          int  y, i;
# Line 163 | Line 169 | psum()                         /* sum the files */
169  
170  
171   void
172 < quit(code)              /* exit gracefully */
173 < int  code;
172 > quit(           /* exit gracefully */
173 >        int  code
174 > )
175   {
176          exit(code);
177   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines