13 |
|
|
14 |
|
#include "rtio.h" |
15 |
|
#include "platform.h" |
16 |
– |
#include "paths.h" |
16 |
|
#include "rterror.h" |
17 |
|
#include "color.h" |
18 |
|
#include "resolu.h" |
46 |
|
char Command[] = "<Command>"; |
47 |
|
char Label[] = "<Label>"; |
48 |
|
|
50 |
– |
char *progname; |
51 |
– |
|
49 |
|
struct { |
50 |
|
char *name; /* file or command name */ |
51 |
|
FILE *fp; /* stream pointer */ |
109 |
|
int xsgn, ysgn; |
110 |
|
char *thislabel; |
111 |
|
int an; |
112 |
+ |
|
113 |
|
SET_DEFAULT_BINARY(); |
114 |
|
SET_FILE_BINARY(stdin); |
115 |
|
SET_FILE_BINARY(stdout); |
116 |
< |
progname = argv[0]; |
116 |
> |
|
117 |
> |
fixargv0(argv[0]); /* sets global progname */ |
118 |
|
|
119 |
|
for (an = 1; an < argc && argv[an][0] == '-'; an++) |
120 |
|
switch (argv[an][1]) { |