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.5 by greg, Sat Feb 22 02:07:27 2003 UTC vs.
Revision 2.7 by schorsch, Fri Jan 2 12:47:01 2004 UTC

# Line 8 | Line 8 | static const char      RCSid[] = "$Id$";
8   */
9  
10   #include  <stdio.h>
11
11   #include  <math.h>
12  
13   #include  "color.h"
14 + #include  "resolu.h"
15 + #include  "rterror.h"
16  
17  
18   #define  MAXFILE        8
# Line 25 | 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  
31 < int
32 < tabputs(s)                      /* print line preceded by a tab */
33 < char  *s;
31 >
32 > static int
33 > tabputs(                        /* print line preceded by a tab */
34 >        char    *s,
35 >        void    *p
36 > )
37   {
38          putc('\t', stdout);
39          return(fputs(s, stdout));
# Line 94 | Line 99 | char  *argv[];
99                                                  /* get header */
100                  fputs(fname[nfile], stdout);
101                  fputs(":\n", stdout);
102 <                getheader(fptr[nfile], tabputs);
102 >                getheader(fptr[nfile], tabputs, NULL);
103                                                  /* get picture size */
104                  if (fgetresolu(&xres, &yres, fptr[nfile]) != (YMAJOR|YDECR)) {
105                          fprintf(stderr, "%s: bad picture size\n", progname);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines