| 12 |
|
|
| 13 |
|
#include <stdio.h> |
| 14 |
|
|
| 15 |
+ |
#include <math.h> |
| 16 |
+ |
|
| 17 |
+ |
#ifdef MSDOS |
| 18 |
+ |
#include <fcntl.h> |
| 19 |
+ |
#endif |
| 20 |
+ |
|
| 21 |
|
#include "color.h" |
| 22 |
|
|
| 23 |
|
#include "resolu.h" |
| 24 |
|
|
| 25 |
< |
#define MAXFILE 64 |
| 25 |
> |
#define MAXFILE 64 |
| 26 |
|
|
| 27 |
|
/* output picture size */ |
| 28 |
|
int xsiz = 0; |
| 59 |
|
|
| 60 |
|
FILE *popen(), *lblopen(); |
| 61 |
|
|
| 62 |
+ |
extern char *malloc(); |
| 63 |
|
|
| 64 |
+ |
|
| 65 |
|
tabputs(s) /* print line preceded by a tab */ |
| 66 |
|
char *s; |
| 67 |
|
{ |
| 86 |
|
int curcol = 0, x0 = 0, curx = 0, cury = 0, spacing = 0; |
| 87 |
|
char *thislabel; |
| 88 |
|
int an; |
| 89 |
< |
|
| 89 |
> |
#ifdef MSDOS |
| 90 |
> |
extern int _fmode; |
| 91 |
> |
_fmode = O_BINARY; |
| 92 |
> |
setmode(fileno(stdin), O_BINARY); |
| 93 |
> |
setmode(fileno(stdout), O_BINARY); |
| 94 |
> |
#endif |
| 95 |
|
progname = argv[0]; |
| 96 |
|
|
| 97 |
|
for (an = 1; an < argc && argv[an][0] == '-'; an++) |