Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2004, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.628 2007/03/05 12:13:59 mast Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.629 2007/08/06 07:14:47 noring Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.h>   #include <timers.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:646:   array (RoxenModule) get_providers(string provides)   //! Returns an array with all provider modules that provides "provides".   {    // This cache is cleared in the invalidate_cache() call.    if(!provider_module_cache[provides])    {    int i;    provider_module_cache[provides] = ({ });    for(i = 9; i >= 0; i--)    { -  foreach(indices(pri[i]->provider_modules), RoxenModule d) +  array(RoxenModule) modules = indices(pri[i]->provider_modules); +  array(string) module_identifiers = modules->module_identifier(); +  sort(module_identifiers, modules); +  foreach(modules, RoxenModule d)    if(pri[i]->provider_modules[ d ][ provides ])    provider_module_cache[provides] += ({ d });    }    }    return provider_module_cache[provides];   }      RoxenModule get_provider(string provides)   //! Returns the first provider module that provides "provides".   {