| 8 |
|
*/ |
| 9 |
|
|
| 10 |
|
#include "standard.h" |
| 11 |
< |
|
| 11 |
> |
#include "platform.h" |
| 12 |
|
#include "color.h" |
| 13 |
– |
|
| 13 |
|
#include "calcomp.h" |
| 15 |
– |
|
| 14 |
|
#include "view.h" |
| 15 |
|
|
| 16 |
|
#define MAXINP 32 /* maximum number of input files */ |
| 81 |
|
int original; |
| 82 |
|
double f; |
| 83 |
|
int a, i; |
| 84 |
< |
#ifdef MSDOS |
| 85 |
< |
extern int _fmode; |
| 86 |
< |
_fmode = O_BINARY; |
| 89 |
< |
setmode(fileno(stdin), O_BINARY); |
| 90 |
< |
setmode(fileno(stdout), O_BINARY); |
| 91 |
< |
#endif |
| 84 |
> |
SET_DEFAULT_BINARY(); |
| 85 |
> |
SET_FILE_BINARY(stdin); |
| 86 |
> |
SET_FILE_BINARY(stdout); |
| 87 |
|
progname = argv[0]; |
| 88 |
|
/* scan options */ |
| 89 |
|
for (a = 1; a < argc; a++) { |
| 518 |
|
static unsigned long ltick[MAXINP]; |
| 519 |
|
static FVECT lorg[MAXINP], ldir[MAXINP]; |
| 520 |
|
static double ldist[MAXINP]; |
| 521 |
< |
FLOAT loc[2]; |
| 521 |
> |
RREAL loc[2]; |
| 522 |
|
int fn; |
| 523 |
|
register int i; |
| 524 |
|
|
| 556 |
|
static unsigned long ltick[MAXINP]; |
| 557 |
|
static double psize[MAXINP]; |
| 558 |
|
FVECT dir0, org, dirx, diry; |
| 559 |
< |
FLOAT locx[2], locy[2]; |
| 559 |
> |
RREAL locx[2], locy[2]; |
| 560 |
|
double d; |
| 561 |
|
int fn; |
| 562 |
|
register int i; |