Roxen.git/
server/
base_server/
module.pike
Branch:
Tag:
Non-build tags
All tags
No tags
1999-11-17
1999-11-17 15:14:32 by Per Hedbor <ph@opera.com>
9d9b9b1fef9f310b28987f844ee88dc34f0c51b4 (
25
lines) (+
5
/-
20
)
[
Show
|
Annotate
]
Branch:
5.2
Documentation fixes, added is_module and event_log
Rev: server/base_server/module.pike:1.53
1:
-
/* $Id: module.pike,v 1.
52
1999/11/
10
04
:
54
:
04
per Exp $ */
+
/* $Id: module.pike,v 1.
53
1999/11/
17
15
:
14
:
32
per Exp $ */
#include <module.h> #include <request_trace.h> mapping (string:mixed *) variables=([]); object this = this_object();
-
+
mapping(string:array(int)) error_log=([]);
-
+
constant is_module = 1;
constant module_type = MODULE_PARSER; constant module_name = "Unnamed module"; constant module_doc = "Undocumented";
101:
return (this->register_module(conf)[2]); }
-
static
class
ConfigurableWrapper
-
{
-
int mode;
-
function f;
-
int check( int|void more, int|void expert )
-
{
-
if ((mode & VAR_EXPERT) && !expert)
-
return 1;
-
if ((mode & VAR_MORE) && !more)
-
return 1;
-
return f();
-
}
-
void create(int mode_, function f_)
-
{
-
mode
=
mode_
;
-
f = f_;
-
}
-
};
-
+
constant
ConfigurableWrapper =
roxen.ConfigurableWrapper
;
constant reg_s_loc = Locale.Roxen.standard.register_module_doc; // Define a variable, with more than a little error checking...