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 - 2001, Roxen IS.   //   // A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.469 2001/08/23 18:40:14 mast Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.470 2001/08/23 18:54:53 mast 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:515:    return ret;    }    })) {    error[0] = "Error in call_provider(): "+error[0];    throw(error);    }    }    }   }    - RoxenModule get_module (string modname) - //! Resolves a string as returned by @[RoxenModule.module_local_id] to - //! a module object in this configuration, if one exists. - { -  string mname; -  int mid = 0; -  sscanf (modname, "%s#%d", mname, mid); -  if (mapping moddata = modules[mname]) -  return moddata->copies[mid]; -  return 0; - } -  +    array (function) file_extension_modules(string ext)   {    if(!file_extension_module_cache[ext])    {    int i;    file_extension_module_cache[ext] = ({ });    for(i=9; i>=0; i--)    {    array(RoxenModule) d;    RoxenModule p;
Roxen.git/server/base_server/configuration.pike:3030:    m_delete( forcibly_added, modname + "#" + id );    store( "EnabledModules",enabled_modules, 1, this_object());    destruct(me);    }    return 1;   }      RoxenModule find_module(string name)   //! Return the module corresponding to the name (eg "rxmlparse",   //! "rxmlparse#0" or "filesystem#1") or zero, if there was no such - //! module. + //! module. The string is on the same format as the one returned by + //! @[RoxenModule.module_local_id].   {    int id;    sscanf(name, "%s#%d", name, id);    if(modules[name])    return modules[name]->copies[id];    return 0;   }      mapping forcibly_added = ([]);   int add_modules( array(string) mods, int|void now )