Branch: Tag:

1999-10-04

1999-10-04 15:11:55 by Per Hedbor <ph@opera.com>

First stab at new core methods

Rev: server/base_server/configuration.pike:1.209
Rev: server/base_server/global_variables.pike:1.4
Rev: server/base_server/language.pike:1.19
Rev: server/base_server/module.pike:1.47
Rev: server/base_server/module_support.pike:1.26
Rev: server/base_server/roxen.pike:1.327
Rev: server/base_server/roxenloader.pike:1.101
Rev: server/modules/filesystems/filesystem.pike:1.57
Rev: server/protocols/http.pike:1.156

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 $" }), ({"","",""}));
76:   void start(void|int num, void|object conf) {}   string status() {}    +    string info(object conf)   {    return (this->register_module(conf)[2]);