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

Comparing ray/src/px/ra_pict.c (file contents):
Revision 2.7 by greg, Mon Jul 19 12:04:35 1993 UTC vs.
Revision 2.8 by greg, Sat Feb 22 02:07:27 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   /*              Convert an Radiance image to APPLE pict format.
5   *
6   *                      Orginally Iris to PICT by       Paul Haeberli - 1990
# Line 24 | Line 21 | static char SCCSid[] = "$SunId$ LBL";
21   #ifdef MSDOS
22   #include <fcntl.h>
23   #endif
24 + #include  <time.h>
25  
26   #include "pict.h"
27   #include "color.h"
28   #include "resolu.h"
29  
32 extern char     *malloc();
33
30   int     outbytes;                   /* This had better be 32 bits! */
31   char    *progname;
32   int     verbose = 0;
# Line 224 | Line 220 | int ysize;
220      int     nbytes, rowbytes;
221      char    *cbuf, *pbuf;
222  
223 <    cbuf = malloc(4 * xsize);
223 >    cbuf = (char *)malloc(4 * xsize);
224  
225      if (cbuf == NULL) {
226          fprintf(stderr, "%s: not enough memory\n", progname);
227          exit(1);
228          }
229  
230 <    pbuf = malloc(4 * xsize);
230 >    pbuf = (char *)malloc(4 * xsize);
231  
232      if (pbuf == NULL) {
233          fprintf(stderr, "%s: not enough memory\n", progname);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines