Roxen.git / server / base_server / module.pike

version» Context lines:

Roxen.git/server/base_server/module.pike:1: - /* $Id: module.pike,v 1.46 1999/09/05 02:20:05 per Exp $ */ -  + /* $Id: module.pike,v 1.47 1999/10/04 15:11:54 per Exp $ */   #include <module.h> -  + #include <request_trace.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; +  + constant module_type = MODULE_PARSER; + constant module_name = "Unnamed module"; + constant module_doc = "Undocumented"; + constant module_unique = 1; +  + array register_module() + { +  return ({ +  module_type, +  module_name, +  module_doc, +  0, +  module_unique, +  }); + } +    string fix_cvs(string from)   {    from = replace(from, ({ "$", "Id: "," Exp $" }), ({"","",""}));    sscanf(from, "%*s,v %s", from);    return from;   }      int module_dependencies(object configuration, array (string) modules)   {    if(configuration) configuration->add_modules (modules);
Roxen.git/server/base_server/module.pike:69:    if(!variables[var]) error("Killing undefined variable.\n");    m_delete(variables, var);    return 1;   }      void free_some_sockets_please(){}      void start(void|int num, void|object conf) {}   string status() {}    +    string info(object conf)   {    return (this->register_module(conf)[2]);   }      static class ConfigurableWrapper   {    int mode;    function f;    int check()