From 4f8a6918b7e9f23dcda54296bd5ad67304a3d950 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net> Date: Tue, 8 Oct 1996 21:27:34 +0200 Subject: [PATCH] new function... Rev: doc/builtin/load_module:1.1 --- doc/builtin/load_module | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 doc/builtin/load_module diff --git a/doc/builtin/load_module b/doc/builtin/load_module new file mode 100644 index 0000000000..ed7230cae5 --- /dev/null +++ b/doc/builtin/load_module @@ -0,0 +1,23 @@ +NAME + load_module - load a binary module + +SYNTAX + int load_module(string module_name); + +DESCRIPTION + This function loads a module written in C or some other language + into Pike. The module is initialized and any programs or constants + defined will immediately be available. + + When a module is loaded the functions init_module_efuns and + init_module_programs are called to initialize it. When Pike exits + exit_module is called in all dynamically loaded modules. These + functions _must_ be available in the module. + + Please see the source and any examples available at + ftp://www.infovav.se/pub/pike for more information on how to + write modules for Pike in C. + +BUGS + Please use "./name.so" instead of just "foo.so" for the module + name. If you use just "foo.se" the module will not be found. -- GitLab