1 |
– |
/* Copyright (c) 1993 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 |
|
* pcompos.c - program to composite pictures. |
6 |
|
* |
15 |
|
#include <fcntl.h> |
16 |
|
#endif |
17 |
|
|
18 |
+ |
#include <time.h> |
19 |
+ |
|
20 |
|
#include "color.h" |
21 |
|
|
22 |
|
#include "resolu.h" |
60 |
|
char ourfmt[LPICFMT+1] = PICFMT; |
61 |
|
int wrongformat = 0; |
62 |
|
|
63 |
< |
FILE *popen(), *lblopen(); |
63 |
> |
FILE *lblopen(); |
64 |
> |
void quit(); |
65 |
|
|
66 |
– |
extern char *malloc(); |
66 |
|
|
68 |
– |
|
67 |
|
tabputs(s) /* print line preceded by a tab */ |
68 |
|
char *s; |
69 |
|
{ |
149 |
|
} |
150 |
|
dofiles: |
151 |
|
newheader("RADIANCE", stdout); |
152 |
+ |
fputnow(stdout); |
153 |
|
for (nfile = 0; an < argc; nfile++) { |
154 |
|
if (nfile >= MAXFILE) |
155 |
|
goto toomany; |
227 |
|
printf("%s:\n", input[nfile].name); |
228 |
|
getheader(input[nfile].fp, tabputs, NULL); |
229 |
|
if (wrongformat) { |
230 |
< |
fprintf(stderr, "%s: bad Radiance input file\n", |
230 |
> |
fprintf(stderr, "%s: incompatible input format\n", |
231 |
|
input[nfile].name); |
232 |
|
quit(1); |
233 |
|
} |
415 |
|
} |
416 |
|
|
417 |
|
|
418 |
+ |
void |
419 |
|
quit(code) /* exit gracefully */ |
420 |
|
int code; |
421 |
|
{ |