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:
-
/* $Id: module.pike,v 1.
44
1999/
06
/
28
01
:
42
:
10
mast
Exp $ */
+
/* $Id: module.pike,v 1.
45
1999/
08
/
07
16
:
24
:
35
nilsson
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:617:
void add_api_function( string name, function f, void|array(string) types) { _api_functions[name] = ({ f, types }); } mapping api_functions() { return _api_functions; }
+
string rxml_error(string tag, string error, object id) {
+
return (id->misc->debug?sprintf("(%s: %s)",capitalize(tag),error):"")+"<false>";
+
}
+
object get_font_from_var(string base) { int weight, slant; switch(query(base+"_weight")) { case "light": weight=-1; break; default: weight=0; break; case "bold": weight=1; break; case "black": weight=2; break; }