Branch: Tag:

2016-07-07

2016-07-07 19:41:39 by Martin Nilsson <nilsson@fastmail.com>

Mostly comment changes.

1915:    // allow a module to deny its own existence with `!.    mixed module;    mapping(string:mixed) cache=([]); +  +  // Maps a base name like "Bar" to an ordered array of file paths, +  // e.g. ({ "/lib/Foo.pmod/Bar.pmod", "/lib/Foo.pmod/Bar.so" }).    mapping(string:array(string)) file_paths = ([]);      #ifdef __NT__
1956:    if (has_suffix(fname, ".pmod")) return 3;    if (has_suffix(fname, ".so")) return 2;    if (has_suffix(fname, ".pike")) return 1; -  -  // FIXME: Warn here? -  return 0; +  return 0; // We will not reach this.    }       protected void create()
1971:    resolv_debug ("dirnode(%O,%O) created with name %O\n", dirname,    compilation_handler, name);    fc[dirname]=this; -  array(string) files = sort(master_get_dir(dirname)||({})); +     if (!sizeof(dirname)) return; -  +  array(string) files = sort(master_get_dir(dirname)||({}));    array(string) bases = map(files, base_from_filename);    files = filter(files, bases);    bases = filter(bases, bases);
2005:    }    }    -  class module_checker +  protected class module_checker    {    protected int `!()    {
2156:    if(module)    {    mixed o; - // _describe(module); +     if(!undefinedp(o=module[index]))    {    DEC_RESOLV_MSG_DEPTH();
2227:    protected int(0..1) _cache_full;    void fill_cache()    { - #if 0 -  werror(call_describe_backtrace(({ sprintf("Filling cache in dirnode %O\n", -  dirname), -  backtrace() }))); - #endif +     if (_cache_full) {    return;    }