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

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

# Line 18 | Line 18 | static const char      RCSid[] = "$Id$";
18   #define dumpheader(fp)  fwrite(headlines, 1, headlen, fp)
19  
20   int  bradj = 0;                         /* brightness adjustment */
21
21   int  doflat = 1;                        /* produce flat file */
23
22   int  force = 0;                         /* force file overwrite? */
25
23   int  findframe = 0;                     /* find a specific frame? */
27
24   int  frameno = 0;                       /* current frame number */
25   int  fmterr = 0;                        /* got input format error */
26   char  *headlines;                       /* current header info. */
# Line 33 | Line 29 | int  headlen;                          /* current header length */
29   char  *progname;
30  
31   static gethfunc addhline;
32 + static int transfer(char *ospec);
33 + static int loadheader(FILE *fp);
34  
35  
36 < main(argc, argv)
37 < int  argc;
40 < char  *argv[];
36 > int
37 > main(int  argc, char  *argv[])
38   {
39          char    *ospec;
40          int  i;
# Line 90 | Line 87 | userr:
87   }
88  
89  
90 < transfer(ospec)                 /* transfer a Radiance picture */
91 < char    *ospec;
90 > static int
91 > transfer(                       /* transfer a Radiance picture */
92 >        char    *ospec
93 > )
94   {
95          char    oname[PATH_MAX];
96          FILE    *fp;
# Line 220 | Line 219 | addhline(                      /* add a line to our info. header */
219   }
220  
221  
222 < loadheader(fp)                  /* load an info. header into memory */
223 < FILE    *fp;
222 > static int
223 > loadheader(                     /* load an info. header into memory */
224 >        FILE    *fp
225 > )
226   {
227          fmterr = 0; frameno = 0;
228          if (headlen) {                  /* free old header */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines