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.6 by schorsch, Mon Oct 27 10:22:27 2003 UTC vs.
Revision 2.8 by schorsch, Sun Mar 28 20:33:14 2004 UTC

# Line 26 | Line 26 | FILE  *fptr[MAXFILE];                  /* the file pointers */
26   COLOR  scale[MAXFILE];                  /* scaling factors */
27   int  nfile;                             /* number of files */
28  
29 + static gethfunc tabputs;
30 + static void psum(void);
31  
32 < int
33 < tabputs(s)                      /* print line preceded by a tab */
34 < char  *s;
32 >
33 >
34 > static int
35 > tabputs(                        /* print line preceded by a tab */
36 >        char    *s,
37 >        void    *p
38 > )
39   {
40          putc('\t', stdout);
41          return(fputs(s, stdout));
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 119 | 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 159 | 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