| 6 |
|
*/ |
| 7 |
|
|
| 8 |
|
#include <stdio.h> |
| 9 |
– |
#ifdef MSDOS |
| 10 |
– |
#include <fcntl.h> |
| 11 |
– |
#endif |
| 9 |
|
#include <time.h> |
| 10 |
|
|
| 11 |
+ |
#include "platform.h" |
| 12 |
+ |
#include "rtprocess.h" |
| 13 |
|
#include "color.h" |
| 14 |
|
#include "resolu.h" |
| 15 |
|
|
| 24 |
|
|
| 25 |
|
int dofilter = 0; /* filter through pfilt first? */ |
| 26 |
|
|
| 28 |
– |
extern FILE *popen(); |
| 27 |
|
|
| 30 |
– |
|
| 28 |
|
main(argc, argv) |
| 29 |
|
int argc; |
| 30 |
|
char *argv[]; |
| 31 |
|
{ |
| 32 |
|
int i, status = 0; |
| 33 |
< |
#ifdef MSDOS |
| 34 |
< |
extern int _fmode; |
| 35 |
< |
_fmode = O_BINARY; |
| 39 |
< |
setmode(fileno(stdin), O_BINARY); |
| 40 |
< |
setmode(fileno(stdout), O_BINARY); |
| 41 |
< |
#endif |
| 33 |
> |
SET_DEFAULT_BINARY(); |
| 34 |
> |
SET_FILE_BINARY(stdin); |
| 35 |
> |
SET_FILE_BINARY(stdout); |
| 36 |
|
if (argc > 1 && !strcmp(argv[1], "-p")) { |
| 37 |
|
dofilter++; |
| 38 |
|
argv++; argc--; |