Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // A vitual server's main configuration   // Copyright © 1996 - 2000, Roxen IS. - constant cvs_version = "$Id: configuration.pike,v 1.384 2000/10/06 15:12:37 mast Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.385 2000/10/10 14:15:30 jhs Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.h>         #define CATCH(P,X) do{mixed e;if(e=catch{X;})report_error("While "+P+"\n"+describe_backtrace(e));}while(0)      // --- Locale defines ---   //<locale-token project="roxen_start"> LOC_S </locale-token>
Roxen.git/server/base_server/configuration.pike:459:    array level_find_files = ({});    array level_locations = ({});    foreach(d, p) {    string location;    // FIXME: Should there be a catch() here?    if(p->find_file && (location = p->query_location())) {    level_find_files += ({ p->find_file });    level_locations += ({ location });    }    } -  sort(level_locations, level_find_files); +  sort(map(level_locations, sizeof), level_locations, level_find_files);    int j;    for (j = sizeof(level_locations); j--;) {    // Order after longest path first.    new_location_module_cache += ({ ({ level_locations[j],    level_find_files[j] }) });    }    }    }    location_module_cache = new_location_module_cache;    }