8 |
|
*/ |
9 |
|
|
10 |
|
#include <stdlib.h> |
11 |
– |
#include <stdio.h> |
12 |
– |
#include <string.h> |
11 |
|
#include <setjmp.h> |
12 |
|
#include <ctype.h> |
13 |
|
|
14 |
+ |
#include "rtio.h" |
15 |
|
#include "rterror.h" |
16 |
|
#include "calcomp.h" |
17 |
|
|
42 |
|
#endif |
43 |
|
varset("PI", ':', 3.14159265358979323846); |
44 |
|
|
45 |
< |
for (i = 1; i < argc; i++) |
46 |
< |
fcompile(argv[i]); |
47 |
< |
|
45 |
> |
for (i = 1; i < argc; i++) { |
46 |
> |
char *path = getpath(argv[i], getrlibpath(), 0); |
47 |
> |
if (path == NULL) { |
48 |
> |
eputs(argv[0]); |
49 |
> |
eputs(": cannot find file '"); |
50 |
> |
eputs(argv[i]); |
51 |
> |
eputs("'\n"); |
52 |
> |
quit(1); |
53 |
> |
} |
54 |
> |
fcompile(path); |
55 |
> |
} |
56 |
|
setjmp(env); |
57 |
|
recover = 1; |
58 |
|
eclock++; |