Roxen.git
/
server
/
base_server
/
module.pike
version
»
Context lines:
10
20
40
80
file
none
3
Roxen.git/server/base_server/module.pike:1:
// This file is part of Roxen WebServer. // Copyright © 1996 - 2004, Roxen IS.
-
// $Id: module.pike,v 1.
222
2005
/
10
/
06
12:
43
:
31
wellhard
Exp $
+
// $Id: module.pike,v 1.
223
2006
/
01
/
12
00
:
03
:
10
mast
Exp $
#include <module_constants.h> #include <module.h> #include <request_trace.h> constant __pragma_save_parent__ = 1; inherit "basic_defvar"; mapping(string:array(int)) error_log=([]);
Roxen.git/server/base_server/module.pike:104:
{ from = replace(from, ({ "$", "Id: "," Exp $" }), ({"","",""})); sscanf(from, "%*s,v %s", from); return replace(from,"/","-"); } int module_dependencies(Configuration configuration, array (string) modules, int|void now) //! If your module depends on other modules present in the server,
-
//!
calling
<pi>module_dependencies()</pi>,
supplying
an array of
-
//!
module identifiers. A module identifier is either the filename
-
//!
minus extension, or a string on the form that Roxen.get_modname
-
//!
returns. In the latter case, the <config name> and <copy> parts
-
//!
are ignored.
+
//!
call
this
function
and supply
an array of module identifiers. A
+
//!
module identifier is either the filename minus extension, or a
+
//!
string on the form that
@[
Roxen.get_modname
]
returns. In the
+
//!
latter case, the <config name> and <copy> parts are ignored.
{ modules = map (modules, lambda (string modname) { sscanf ((modname / "/")[-1], "%[^#]", modname); return modname; }); Configuration conf = configuration || my_configuration(); if (!conf) report_warning ("Configuration not resolved; module(s) %s that %O " "depend on weren't added.\n", String.implode_nicely (modules),