9 |
|
*/ |
10 |
|
|
11 |
|
#include <stdio.h> |
12 |
+ |
#include <math.h> |
13 |
+ |
#ifdef MSDOS |
14 |
+ |
#include <fcntl.h> |
15 |
+ |
#endif |
16 |
|
#include "color.h" |
17 |
|
|
18 |
|
|
22 |
|
|
23 |
|
COLOR expos = WHTCOLOR; |
24 |
|
|
25 |
+ |
extern char *malloc(); |
26 |
|
|
27 |
+ |
|
28 |
|
headline(s) /* check header line */ |
29 |
|
char *s; |
30 |
|
{ |
37 |
|
wrongformat = strcmp(fmt, COLRFMT); |
38 |
|
} |
39 |
|
if (!orig) |
40 |
< |
return; |
40 |
> |
return(0); |
41 |
|
if (isexpos(s)) { /* exposure */ |
42 |
|
d = exposval(s); |
43 |
|
scalecolor(expos, d); |
45 |
|
colcorval(ctmp, s); |
46 |
|
multcolor(expos, ctmp); |
47 |
|
} |
48 |
+ |
return(0); |
49 |
|
} |
50 |
|
|
51 |
|
|
60 |
|
COLR *scan; |
61 |
|
COLR cmin, cmax; |
62 |
|
int xmin, ymin, xmax, ymax; |
63 |
< |
|
63 |
> |
#ifdef MSDOS |
64 |
> |
extern int _fmode; |
65 |
> |
_fmode = O_BINARY; |
66 |
> |
setmode(fileno(stdin), O_BINARY); |
67 |
> |
#endif |
68 |
|
for (i = 1; i < argc; i++) /* get options */ |
69 |
|
if (!strcmp(argv[i], "-o")) |
70 |
|
orig++; |