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

Comparing ray/src/px/ra_pr24.c (file contents):
Revision 2.8 by greg, Sun Feb 27 10:17:15 1994 UTC vs.
Revision 2.10 by schorsch, Thu Jun 5 19:29:34 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1992 Regents of the University of California */
2
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ LBL";
2 > static const char       RCSid[] = "$Id$";
3   #endif
6
4   /*
5   *  program to convert between RADIANCE and 24-bit rasterfiles.
6   */
7  
8   #include  <stdio.h>
9 <
13 < #ifdef MSDOS
14 < #include  <fcntl.h>
15 < #endif
16 <
9 > #include  <time.h>
10   #include  <math.h>
11  
12 + #include  "platform.h"
13   #include  "rasterfile.h"
20
14   #include  "color.h"
22
15   #include  "resolu.h"
16  
25 extern char  *malloc();
26
17   double  gamcor = 2.2;                   /* gamma correction */
18  
19   int  bradj = 0;                         /* brightness adjustment */
# Line 40 | Line 30 | char  *argv[];
30          struct rasterfile  head;
31          int  reverse = 0;
32          int  i;
33 < #ifdef MSDOS
34 <        extern int  _fmode;
35 <        _fmode = O_BINARY;
46 <        setmode(fileno(stdin), O_BINARY);
47 <        setmode(fileno(stdout), O_BINARY);
48 < #endif
33 >        SET_DEFAULT_BINARY();
34 >        SET_FILE_BINARY(stdin);
35 >        SET_FILE_BINARY(stdout);
36          progname = argv[0];
37  
38          head.ras_type = RT_STANDARD;
# Line 177 | Line 164 | int    pad;
164                          quiterr("error writing Radiance picture");
165          }
166                                                  /* free scanline */
167 <        free((char *)scanout);
167 >        free((void *)scanout);
168   }
169  
170  
# Line 223 | Line 210 | int    pad;
210                          quiterr("error writing rasterfile");
211          }
212                                                  /* free scanline */
213 <        free((char *)scanin);
213 >        free((void *)scanin);
214   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines