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.718 2011/05/24 13:54:34 mast Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.719 2011/06/19 14:49:07 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)      // Tell Pike.count_memory this is global.   constant pike_cycle_depth = 0;
Roxen.git/server/base_server/configuration.pike:3670:    {    store("spider#0", variables, 0, this_object());    start(2);    }       store( "EnabledModules", enabled_modules, 1, this_object());    foreach(indices(modules), string modname)    {    foreach(indices(modules[modname]->copies), int i)    { -  store(modname+"#"+i, modules[modname]->copies[i]->query(), 0, this_object()); -  if (mixed err = catch(modules[modname]->copies[i]-> -  start(2, this_object(), 0))) +  RoxenModule mod = modules[modname]->copies[i]; +  store(modname+"#"+i, mod->query(), 0, this); +  if (mixed err = mod->start && catch { +  call_module_func_with_cbs (mod, "start", 2, this, 0); +  })    report_error("Error calling start in module.\n%s",    describe_backtrace (err));    }    }    invalidate_cache();   }      int save_one( RoxenModule o )   //! Save all variables in a given module.   {