80 |
|
if (i == 1 && arg[ff][0] == '.') |
81 |
|
setcontext(f->ctx = ""); /* "." means no file */ |
82 |
|
else { |
83 |
< |
strcpy(sbuf,m->oargs.sarg[ff]); /* file name is context */ |
83 |
> |
strcpy(sbuf,arg[ff]); /* file name is context */ |
84 |
|
if (i > LCALSUF && !strcmp(sbuf+i-LCALSUF, CALSUF)) |
85 |
|
sbuf[i-LCALSUF] = '\0'; /* remove suffix */ |
86 |
|
setcontext(f->ctx = savestr(sbuf)); |
87 |
|
if (!vardefined(REFVNAME)) { /* file loaded? */ |
88 |
< |
loadfunc(m->oargs.sarg[ff]); |
88 |
> |
loadfunc(arg[ff]); |
89 |
|
varset(REFVNAME, '=', 1.0); |
90 |
|
} else /* reference_count++ */ |
91 |
|
varset(REFVNAME, '=', varvalue(REFVNAME)+1.0); |