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 |
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; |
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); |