pike.git / lib / master.pike.in

version» Context lines:

pike.git/lib/master.pike.in:2219:    return ret;    }       cache[index] = undefinedp(ret) ? ZERO_TYPE : ret;    return ret;    }       protected mixed `->(string index)    {    if( (< "dirname", "name", "is_resolv_dirnode", -  "module", "cache", "delete_value" >)[index] ) +  "module", "delete_value" >)[index] )    return ::`->(index);    return `[](index);    }       protected mixed safe_index(string index)    {    mixed err;    resolv_debug ("dirnode(%O): %O...\n", dirname, index);    if (err = catch { return `[](index); }) {    call_compile_warning (compilation_handler,
pike.git/lib/master.pike.in:2456:    cache[index] = ZERO_TYPE;    } else {    cache[index] = ret;    }    return ret;    }       protected mixed `->(string index)    {    if( (< "joined_modules", "fallback_module", "name", "is_resolv_joinnode", -  "cache", "add_path", "rem_path", "delete_value", "_encode", +  "add_path", "rem_path", "delete_value", "_encode",    "_decode" >)[index] )    return ::`->(index);    return `[](index);    }       protected int _cache_full;       protected void fill_cache()    {    if (_cache_full) {
pike.git/lib/master.pike.in:2988:    // Check for _static_modules.    mixed static_modules = _static_modules;    if (current_handler->get_default_module) {    mapping(string:mixed) default_module =    current_handler->get_default_module();    if (default_module) {    static_modules = default_module["_static_modules"] || ([]);    }    }    -  node = joinnode(({ instantiate_static_modules(static_modules), +  node = joinnode(({ +  // Kluge to get _static_modules to work at top level. +  ([ "_static_modules" : static_modules ]), +  instantiate_static_modules(static_modules),    // Copy relevant stuff from the root module.    @filter(root_module->joined_modules,    lambda(mixed x) {    return objectp(x) && x->is_resolv_dirnode;    }) }),    current_handler,    root_module->fallback_module,    "predef::");    -  // FIXME: Is this needed? -  // Kluge to get _static_modules to work at top level. -  node->cache->_static_modules = static_modules; -  +     return node;    }       //!    mixed resolv_base(string identifier, string|void current_file,    object|void current_handler)    {    // werror("Resolv_base(%O)\n",identifier);    return get_root_module(current_handler)[identifier];    }