Branch: Tag:

1998-02-04

1998-02-04 05:17:58 by Per Hedbor <ph@opera.com>

added API function support (For scripting languages)

Rev: server/base_server/configuration.pike:1.91
Rev: server/base_server/module.pike:1.28
Rev: server/base_server/roxen.pike:1.161
Rev: server/base_server/roxenloader.pike:1.54

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>   
490:   }   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;