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.462 2001/08/14 01:47:16 hop Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.463 2001/08/14 15:11:11 per 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:2459:    ModuleInfo|void moduleinfo,    int|void nostart )   {    MODULE_LOCK;    int id;    ModuleCopies module;    int pr;    mixed err;    int module_type;    -  if( forcibly_added[modname] ) +  if( forcibly_added[modname] == 2 )    return search(otomod, modname);       if( datacache ) datacache->flush();       if( sscanf(modname, "%s#%d", modname, id ) != 2 )    while( modules[ modname ] && modules[ modname ][ id ] )    id++;       roxen->bootstrap_info->set (({this_object(), modname + "#" + id}));   
Roxen.git/server/base_server/configuration.pike:3006: Inside #if defined(MODULE_DEBUG)
     #ifdef MODULE_DEBUG    report_debug("Disabling "+descr+"\n");   #endif       clean_up_for_module( moduleinfo, me );       if( !nodest )    {    m_delete( enabled_modules, modname + "#" + id ); -  forcibly_added[ modname + "#" + id ] = 0; +  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.   {    int id;    sscanf(name, "%s#%d", name, id);    if(modules[name])    return modules[name]->copies[id];    return 0;   }    - multiset forcibly_added = (<>); + mapping forcibly_added = ([]);   int add_modules( array(string) mods, int|void now )   {   #ifdef MODULE_DEBUG    int wr;   #endif    foreach (mods, string mod)    {    sscanf( mod, "%s#", mod );    if( ((now && !modules[ mod ]) ||    !enabled_modules[ mod+"#0" ] )    && !forcibly_added[ mod+"#0" ])    {   #ifdef MODULE_DEBUG    if( !wr++ )    if (enable_module_batch_msgs)    report_debug("\b[ adding req module" + (sizeof (mods) > 1 ? "s" : "") + "\n");    else    report_debug("Adding required module" + (sizeof (mods) > 1 ? "s" : "") + "\n");   #endif -  enable_module( mod+"#0" ); +     forcibly_added[ mod+"#0" ] = 1; -  +  enable_module( mod+"#0" ); +  forcibly_added[ mod+"#0" ] = 2;    }    }   #ifdef MODULE_DEBUG    if( wr && enable_module_batch_msgs )    report_debug("] \b");   #endif   }      #if ROXEN_COMPAT < 2.2   // BEGIN SQL
Roxen.git/server/base_server/configuration.pike:3136:       if (!modules_already_enabled) {    enabled_modules = retrieve("EnabledModules", this_object());   // roxenloader.LowErrorContainer ec = roxenloader.LowErrorContainer();   // roxenloader.push_compile_error_handler( ec );       array modules_to_process = indices( enabled_modules );    string tmp_string;       array err; -  forcibly_added = (<>); +  forcibly_added = ([]);    enable_module_batch_msgs = 1;    foreach( modules_to_process, tmp_string )    {    if( !forcibly_added[ tmp_string ] )    if(err = catch( enable_module( tmp_string )))    {    report_error(LOC_M(45, "Failed to enable the module %s. Skipping.")    +"\n%s\n", tmp_string, describe_backtrace(err));    got_no_delayed_load = -1;    }    }    enable_module_batch_msgs = 0;    roxenloader.pop_compile_error_handler();   // if( strlen( ec->get() ) )   // report_error( "While enabling modules in "+name+":\n"+ec->get() );   // if( strlen( ec->get_warnings() ) )   // report_warning( "While enabling modules in "+name+":\n"+ec->get_warnings()); -  forcibly_added = (<>); +  forcibly_added = ([]);    }       foreach( ({this_object()})+indices( otomod ), RoxenModule mod )    if( mod->ready_to_receive_requests )    if( mixed q = catch( mod->ready_to_receive_requests( this_object() ) ) ) {    report_error( "While calling ready_to_receive_requests in "+    otomod[mod]+":\n"+    describe_backtrace( q ) );    got_no_delayed_load = -1;    }