8 |
|
#include <stdio.h> |
9 |
|
#include <math.h> |
10 |
|
#include <time.h> |
11 |
+ |
|
12 |
+ |
#include "platform.h" |
13 |
|
#include "color.h" |
14 |
|
#include "resolu.h" |
15 |
|
|
14 |
– |
#ifdef MSDOS |
15 |
– |
#include <fcntl.h> |
16 |
– |
#endif |
17 |
– |
|
16 |
|
extern int addhline(); |
17 |
|
|
18 |
|
#define dumpheader(fp) fwrite(headlines, 1, headlen, fp) |
75 |
|
progname, argv[i]); |
76 |
|
exit(1); |
77 |
|
} |
78 |
< |
#ifdef MSDOS |
81 |
< |
setmode(fileno(stdin), O_BINARY); |
82 |
< |
#endif |
78 |
> |
SET_FILE_BINARY(stdin); |
79 |
|
ospec = i==argc-2 ? argv[i+1] : (char *)NULL; |
80 |
|
while (transfer(ospec)) |
81 |
|
; |
150 |
|
} |
151 |
|
} |
152 |
|
} |
153 |
< |
#ifdef MSDOS |
158 |
< |
setmode(fileno(fp), O_BINARY); |
159 |
< |
#endif |
153 |
> |
SET_FILE_BINARY(fp); |
154 |
|
dumpheader(fp); /* put out header */ |
155 |
|
fputs(progname, fp); |
156 |
|
if (bradj) |