21 |
|
#include <string.h> |
22 |
|
|
23 |
|
#include "platform.h" |
24 |
– |
#include "paths.h" |
24 |
|
#include "ranimove.h" |
25 |
+ |
#include "func.h" |
26 |
|
|
27 |
|
int NVARS = NV_INIT; /* total number of variables */ |
28 |
|
|
82 |
|
int explicate = 0; |
83 |
|
char *cfname; |
84 |
|
int i; |
85 |
< |
|
86 |
< |
progname = argv[0]; /* get arguments */ |
85 |
> |
/* set global progname */ |
86 |
> |
fixargv0(argv[0]); |
87 |
> |
/* initialize calcomp */ |
88 |
> |
initfunc(); |
89 |
|
gargc = argc; |
90 |
|
gargv = argv; |
91 |
|
for (i = 1; i < argc && argv[i][0] == '-'; i++) |
172 |
|
|
173 |
|
void |
174 |
|
eputs( /* put string to stderr */ |
175 |
< |
char *s |
175 |
> |
const char *s |
176 |
|
) |
177 |
|
{ |
178 |
|
static int midline = 0; |
541 |
|
int n |
542 |
|
) |
543 |
|
{ |
542 |
– |
extern char *fskip(); |
544 |
|
static char expval[32]; |
545 |
|
static FILE *expfp = NULL; |
546 |
|
static int curfrm = 0; |