| 8 |
|
*/ |
| 9 |
|
|
| 10 |
|
#include <stdio.h> |
| 11 |
– |
|
| 11 |
|
#include <math.h> |
| 13 |
– |
|
| 14 |
– |
#ifdef MSDOS |
| 15 |
– |
#include <fcntl.h> |
| 16 |
– |
#endif |
| 17 |
– |
|
| 12 |
|
#include <time.h> |
| 13 |
|
|
| 14 |
< |
#include "color.h" |
| 14 |
> |
#include "copyright.h" |
| 15 |
|
|
| 16 |
+ |
#include "platform.h" |
| 17 |
+ |
#include "color.h" |
| 18 |
|
#include "resolu.h" |
| 19 |
|
|
| 20 |
|
#define MAXFILE 64 |
| 91 |
|
int xsgn, ysgn; |
| 92 |
|
char *thislabel; |
| 93 |
|
int an; |
| 94 |
< |
#ifdef MSDOS |
| 95 |
< |
extern int _fmode; |
| 96 |
< |
_fmode = O_BINARY; |
| 101 |
< |
setmode(fileno(stdin), O_BINARY); |
| 102 |
< |
setmode(fileno(stdout), O_BINARY); |
| 103 |
< |
#endif |
| 94 |
> |
SET_DEFAULT_BINARY(); |
| 95 |
> |
SET_FILE_BINARY(stdin); |
| 96 |
> |
SET_FILE_BINARY(stdout); |
| 97 |
|
progname = argv[0]; |
| 98 |
|
|
| 99 |
|
for (an = 1; an < argc && argv[an][0] == '-'; an++) |