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