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.344 2000/08/19 01:39:17 per Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.345 2000/08/20 03:25:23 per Exp $";   constant is_configuration = 1;   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.h>      inherit "basic_defvar";      mapping enabled_modules = ([]);   mapping(string:array(int)) error_log=([]);
Roxen.git/server/base_server/configuration.pike:2318:    module[ id ] = me;    otomod[ me ] = modname+"#"+id;       mixed err;    if(!nostart) call_start_callbacks( me, moduleinfo, module );      #ifdef MODULE_DEBUG    if (enable_module_batch_msgs)    report_debug("\bOK %6.1fms\n", (gethrtime()-start_time)/1000.0);   #endif -  if( me->no_delayed_load ) { +  if( me->no_delayed_load ) +  {    set( "no_delayed_load", 1 );    save_me();    }    -  if(!enabled_modules[ modname+"#"+id ]) -  { +     enabled_modules[modname+"#"+id] = 1;    store( "EnabledModules", enabled_modules, 1, this_object()); -  } +     if (!has_stored_vars)    store (modname + "#" + id, me->query(), 0, this_object());       return me;   }      void call_start_callbacks( RoxenModule me,    ModuleInfo moduleinfo,    ModuleCopies module )   {
Roxen.git/server/base_server/configuration.pike:2612:    if( moduleinfo->type & MODULE_FIRST ) {    for(pr=0; pr<10; pr++)    pri[pr]->first_modules -= ({ me });    }       if( moduleinfo->type & MODULE_LOGGER )    for(pr=0; pr<10; pr++)    pri[pr]->logger_modules -= ({ me });       -  if( enabled_modules[modname+"#"+id] ) -  { +     m_delete( enabled_modules, modname + "#" + id );    forcibly_added[ modname + "#" + id ] = 0;    store( "EnabledModules",enabled_modules, 1, this_object()); -  } +     if(!nodest)    destruct(me);    return 1;   }      RoxenModule|string 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.   {