Roxen.git / server / base_server / module.pike

version» Context lines:

Roxen.git/server/base_server/module.pike:1: - /* $Id: module.pike,v 1.40 1999/05/18 03:54:38 per Exp $ */ + /* $Id: module.pike,v 1.41 1999/05/24 08:41:59 per Exp $ */      #include <module.h>      #define TRACE_ENTER(A,B) do{if(id->misc->trace_enter)id->misc->trace_enter((A),(B));}while(0)   #define TRACE_LEAVE(A) do{if(id->misc->trace_leave)id->misc->trace_leave((A));}while(0)      mapping (string:mixed *) variables=([]);      object this = this_object();   int module_type;
Roxen.git/server/base_server/module.pike:42:      static private object _my_configuration;      object my_configuration()   {    if(_my_configuration)    return _my_configuration;    object conf;    foreach(roxen->configurations, conf)    if(conf->otomod[this]) -  return conf; +  return _my_configuration = conf;    return 0;   }      nomask void set_configuration(object c)   {    if(_my_configuration && _my_configuration != c)    error("set_configuration() called twice.\n");    _my_configuration = c;   }