18 |
|
|
19 |
|
|
20 |
|
#define INITFILE "rayinit.cal" |
21 |
– |
#define REFVNAME "`FILE_REFCNT" |
21 |
|
#define CALSUF ".cal" |
22 |
|
#define LCALSUF 4 |
23 |
+ |
char REFVNAME[] = "`FILE_REFCNT"; |
24 |
|
|
25 |
|
XF unitxf = { /* identity transform */ |
26 |
|
{{1.0, 0.0, 0.0, 0.0}, |
69 |
|
funset("erf", 1, ':', l_erf); |
70 |
|
funset("erfc", 1, ':', l_erfc); |
71 |
|
setnoisefuncs(); |
72 |
+ |
setprismfuncs(); |
73 |
|
loadfunc(initfile); |
74 |
|
initfile[0] = '\0'; |
75 |
|
} |
196 |
|
loadfunc(fname) /* load definition file */ |
197 |
|
char *fname; |
198 |
|
{ |
199 |
< |
extern char *libpath; /* library search path */ |
199 |
> |
extern char *getlibpath(); /* library search path */ |
200 |
|
char *ffname; |
201 |
|
|
202 |
< |
if ((ffname = getpath(fname, libpath, R_OK)) == NULL) { |
202 |
> |
if ((ffname = getpath(fname, getlibpath(), R_OK)) == NULL) { |
203 |
|
sprintf(errmsg, "cannot find function file \"%s\"", fname); |
204 |
|
error(USER, errmsg); |
205 |
|
} |