Roxen.git / server / base_server / module.pike

version» Context lines:

Roxen.git/server/base_server/module.pike:1: - /* $Id: module.pike,v 1.27 1998/01/21 21:34:21 grubba Exp $ */ + /* $Id: module.pike,v 1.28 1998/02/04 05:17:56 per Exp $ */      #include <module.h>      mapping (string:mixed *) variables=([]);      object this = this_object();   int module_type;   string fix_cvs(string from)   {    from = replace(from, ({ "$", "Id: "," Exp $" }), ({"","",""}));
Roxen.git/server/base_server/module.pike:483:    foreach(files || ({}), string fname) {    array(mixed) st = stat_file(f + "/" + fname, id);    if (st) {    res[fname] = st;    }    }    return(res);   }   mixed real_file(string f, object id){}    + mapping _api_functions = ([]); + void add_api_function( string name, function f, void|array(string) types) + { +  _api_functions[name] = ({ f, types }); + } +  + mapping api_functions() + { +  return _api_functions; + } +    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;    }    switch(query(base+"_slant"))    {    case "obligue": slant=-1; break;    default: slant=0; break;    case "italic": slant=1; break;    }    return get_font(query(base+"_font"), 32, weight, slant, "left", 0, 0);   }