21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
simecolon-delimited directories to search for scripts/modules. By
default only the current directory is searched. TH1ISH_AUTOLOAD_MODULES
will be treated as a comma-separated list of module names
to load at startup.
*/
scope {
if('undefined' === typename api){return}
else if(api.loadModule && api.loadModule.impl){
/* Been there, done that. */
return api
}
if('function' === typename strftime){
api.string.strftime = strftime
}
if('undefined' !== typename api.PathFinder){
const PF = api.PathFinder
const loadModule = ('function' === typename loadModule) ? loadModule : undefined
const import = ('function' === typename import) ? import : undefined
const getenv = ('function' === typename getenv) ? getenv : undefined
const pwd = getenv ? [getenv 'PWD'] : undefined
|
>
<
<
<
<
|
>
|
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
simecolon-delimited directories to search for scripts/modules. By
default only the current directory is searched. TH1ISH_AUTOLOAD_MODULES
will be treated as a comma-separated list of module names
to load at startup.
*/
('undefined' !== typename api) && api.loadModule && api.loadModule.impl && return api /* Been there, done that. */
scope {
if('function' === typename strftime){
api.string.strftime = strftime
}
if('undefined' !== typename api.PathFinder){
const PF = api.PathFinder
const loadModule = ('function' === typename loadModule) ? loadModule : undefined
const import = ('function' === typename import) ? import : undefined
const getenv = ('function' === typename getenv) ? getenv : undefined
const pwd = getenv ? [getenv 'PWD'] : undefined
|
190
191
192
193
194
195
196
197
198
199
|
Evaluates to the array instead of calling the function.
It never reaches the '.' after the array closer.
Not sure (===no idea) why. Conventional call syntax
works.
*/
break
}
}
api
}
|
|
|
188
189
190
191
192
193
194
195
196
197
|
Evaluates to the array instead of calling the function.
It never reaches the '.' after the array closer.
Not sure (===no idea) why. Conventional call syntax
works.
*/
break
}
} /* end api.PathFinder extensions */
api
}
|