8 |
|
*/ |
9 |
|
|
10 |
|
#include "standard.h" |
11 |
– |
|
11 |
|
#include "color.h" |
13 |
– |
|
12 |
|
#include "calcomp.h" |
15 |
– |
|
13 |
|
#include "view.h" |
14 |
|
|
15 |
|
#define MAXINP 32 /* maximum number of input files */ |
80 |
|
int original; |
81 |
|
double f; |
82 |
|
int a, i; |
83 |
< |
#ifdef MSDOS |
84 |
< |
extern int _fmode; |
85 |
< |
_fmode = O_BINARY; |
89 |
< |
setmode(fileno(stdin), O_BINARY); |
90 |
< |
setmode(fileno(stdout), O_BINARY); |
91 |
< |
#endif |
83 |
> |
SET_DEFAULT_BINARY(); |
84 |
> |
SET_FILE_BINARY(stdin); |
85 |
> |
SET_FILE_BINARY(stdout); |
86 |
|
progname = argv[0]; |
87 |
|
/* scan options */ |
88 |
|
for (a = 1; a < argc; a++) { |