9 |
|
*/ |
10 |
|
|
11 |
|
#include <stdio.h> |
12 |
+ |
#ifdef MSDOS |
13 |
+ |
#include <fcntl.h> |
14 |
+ |
#endif |
15 |
|
|
16 |
|
#include "color.h" |
17 |
|
#include "resolu.h" |
18 |
|
|
19 |
+ |
extern char *malloc(); |
20 |
+ |
|
21 |
|
int bradj = 0; /* brightness adjustment */ |
22 |
|
|
23 |
|
int doflat = 1; /* produce flat file */ |
30 |
|
char *argv[]; |
31 |
|
{ |
32 |
|
int i; |
33 |
< |
|
33 |
> |
#ifdef MSDOS |
34 |
> |
extern int _fmode; |
35 |
> |
_fmode = O_BINARY; |
36 |
> |
setmode(fileno(stdin), O_BINARY); |
37 |
> |
setmode(fileno(stdout), O_BINARY); |
38 |
> |
#endif |
39 |
|
progname = argv[0]; |
40 |
|
|
41 |
|
for (i = 1; i < argc; i++) |
91 |
|
{ |
92 |
|
extern double pow(); |
93 |
|
int order; |
94 |
< |
int xmax, ymax; |
94 |
> |
int xmax, ymax; |
95 |
|
COLR *scanin; |
96 |
|
register int x; |
97 |
|
int y; |