1 |
– |
/* Copyright (c) 1987 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 |
|
* ximage.c - driver for X-windows |
6 |
|
* |
18 |
|
|
19 |
|
#include <ctype.h> |
20 |
|
|
21 |
+ |
#include <time.h> |
22 |
+ |
|
23 |
|
#include "color.h" |
24 |
|
|
25 |
|
#include "resolu.h" |
85 |
|
|
86 |
|
char errmsg[128]; |
87 |
|
|
89 |
– |
extern long ftell(); |
88 |
|
|
91 |
– |
extern char *malloc(), *calloc(); |
92 |
– |
|
93 |
– |
extern double pow(), log(); |
94 |
– |
|
95 |
– |
|
89 |
|
main(argc, argv) |
90 |
|
int argc; |
91 |
|
char *argv[]; |
96 |
|
int i; |
97 |
|
|
98 |
|
progname = argv[0]; |
99 |
< |
if ((gv = getenv("GAMMA")) != NULL) |
99 |
> |
if ((gv = getenv("DISPLAY_GAMMA")) != NULL) |
100 |
|
gamcor = atof(gv); |
101 |
|
|
102 |
|
for (i = 1; i < argc; i++) |
164 |
|
} |
165 |
|
|
166 |
|
|
167 |
+ |
int |
168 |
|
headline(s) /* get relevant info from header */ |
169 |
|
char *s; |
170 |
|
{ |
177 |
|
wrongformat = strcmp(fmt, COLRFMT); |
178 |
|
} else if (isview(s) && sscanview(&ourview, s) > 0) |
179 |
|
gotview++; |
180 |
+ |
return(0); |
181 |
|
} |
182 |
|
|
183 |
|
|
246 |
|
} |
247 |
|
|
248 |
|
|
249 |
+ |
void |
250 |
|
eputs(s) |
251 |
|
char *s; |
252 |
|
{ |
254 |
|
} |
255 |
|
|
256 |
|
|
257 |
+ |
void |
258 |
|
quit(code) |
259 |
|
int code; |
260 |
|
{ |
568 |
|
cerr[x] = err + errp; |
569 |
|
} |
570 |
|
} |
571 |
< |
free((char *)inl); |
572 |
< |
free((char *)cerr); |
571 |
> |
free((void *)inl); |
572 |
> |
free((void *)cerr); |
573 |
|
} |
574 |
|
|
575 |
|
|