pike.git / lib / master.pike.in

version» Context lines:

pike.git/lib/master.pike.in:1960:    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;    }       protected void create()    { +  if (!dirname) { +  error("Attempt to create a dirnode without a directory.\n" +  "Have you inherited a dirnode?\n"); +  } +     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) bases = map(files, base_from_filename);    files = filter(files, bases);    bases = filter(bases, bases);    resolv_debug("dirnode(%O,%O) got %d files.\n",    dirname, compilation_handler, sizeof(bases));
pike.git/lib/master.pike.in:2316:    }       protected void create()    {    if( !fallback_module ) {    // NOTE: Uses the empty mapping as the default fallback    // for simplified code.    fallback_module = ([]);    }    +  if (!joined_modules) { +  error("Attempt to create a joinnode without joined modules.\n" +  "Have you inherited a joinnode?\n"); +  } +     if (!name)    {    mapping(string:int(1..1)) names = ([]);    foreach (joined_modules, object|mapping m) {    if (objectp (m) && stringp (m->name))    names[m->name] = 1;    }    if (sizeof (names))    name = sort (indices (names)) * "|";    }