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 - 2009, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.715 2011/02/18 09:58:19 wellhard Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.716 2011/03/15 15:49:48 grubba 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)      // Tell Pike.count_memory this is global.   constant pike_cycle_depth = 0;
Roxen.git/server/base_server/configuration.pike:3627: Inside #if defined(MODULE_CB_DEBUG)
  #ifdef MODULE_CB_DEBUG    werror ("Calling %O->%s (%s)\n", mod, func,    map (args, lambda (mixed arg)    {return sprintf ("%O", arg);}) * ", ");   #endif    mod[func] (@args);       if (mapping(string:array(function(RoxenModule,mixed...:void))) func_cbs =    module_post_callbacks[func]) {    if (!mod_name) -  sscanf (mod->module_local_id(), "%[^#]", mod_name); +  sscanf (otomod[mod] || mod->module_local_id(), "%[^#]", mod_name);    array(function(RoxenModule,mixed...:void)) cbs;    if (array(function(RoxenModule,mixed...:void)) a = func_cbs[mod_name]) {    func_cbs[mod_name] = (a -= ({0}));    cbs = a;    }    if (array(function(RoxenModule,mixed...:void)) a = func_cbs[0]) {    func_cbs[0] = (a -= ({0}));    if (cbs) cbs += a; else cbs = a;    }    if (cbs) {
Roxen.git/server/base_server/configuration.pike:4043:    module_set_counter++;       // Below we may have recursive calls to this function. They may    // occur already in setvars due to e.g. automatic dependencies in    // Variable.ModuleChoice.       mapping(string:mixed) stored_vars = retrieve(modname + "#" + id, this_object());    int has_stored_vars = sizeof (stored_vars); // A little ugly, but it suffices.    me->setvars(stored_vars);    +  if (me->not_a_module) nostart = 1; +     if(!nostart) call_start_callbacks( me, moduleinfo, module );      #ifdef MODULE_DEBUG    if (enable_module_batch_msgs) {    if(moduleinfo->config_locked[this_object()])    report_debug("\bLocked %6.1fms\n", (gethrtime()-start_time)/1000.0);    else if (me->not_a_module)    report_debug("\bN/A %6.1fms\n", (gethrtime()-start_time)/1000.0);    else    report_debug("\bOK %6.1fms\n", (gethrtime()-start_time)/1000.0);