| 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 |
+ |
#include <string.h> |
| 14 |
|
|
| 15 |
< |
#include "color.h" |
| 15 |
> |
#include "copyright.h" |
| 16 |
|
|
| 17 |
+ |
#include "platform.h" |
| 18 |
+ |
#include "rtprocess.h" |
| 19 |
+ |
#include "color.h" |
| 20 |
|
#include "resolu.h" |
| 21 |
|
|
| 22 |
|
#define MAXFILE 64 |
| 93 |
|
int xsgn, ysgn; |
| 94 |
|
char *thislabel; |
| 95 |
|
int an; |
| 96 |
< |
#ifdef MSDOS |
| 97 |
< |
extern int _fmode; |
| 98 |
< |
_fmode = O_BINARY; |
| 101 |
< |
setmode(fileno(stdin), O_BINARY); |
| 102 |
< |
setmode(fileno(stdout), O_BINARY); |
| 103 |
< |
#endif |
| 96 |
> |
SET_DEFAULT_BINARY(); |
| 97 |
> |
SET_FILE_BINARY(stdin); |
| 98 |
> |
SET_FILE_BINARY(stdout); |
| 99 |
|
progname = argv[0]; |
| 100 |
|
|
| 101 |
|
for (an = 1; an < argc && argv[an][0] == '-'; an++) |
| 382 |
|
|
| 383 |
|
j = 4; /* check exponents first! */ |
| 384 |
|
while (j--) |
| 385 |
< |
if (i = c1[j] - c2[j]) |
| 385 |
> |
if ( (i = c1[j] - c2[j]) ) |
| 386 |
|
return(i); |
| 387 |
|
return(0); |
| 388 |
|
} |