From 172f4767fa4ac0d0916c3e6c699b81518ba91beb Mon Sep 17 00:00:00 2001 From: Logan Johnson Date: Fri, 20 Dec 2002 17:35:51 +0000 Subject: [PATCH] Use the new PIKE_MODULE_INIT and PIKE_MODULE_EXIT macros for the module initialization (and finalization) function declarations. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4218 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Lib/pike/pike.swg | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/SWIG/Lib/pike/pike.swg b/SWIG/Lib/pike/pike.swg index 4ec1d21b1..c3de2e70c 100644 --- a/SWIG/Lib/pike/pike.swg +++ b/SWIG/Lib/pike/pike.swg @@ -12,10 +12,8 @@ extern "C" { #endif #include "global.h" +#include "module.h" #include "interpret.h" - -/* This must be included last! */ -#include "module_magic.h" #ifdef __cplusplus } #endif @@ -323,12 +321,13 @@ extern "C" { #ifdef __cplusplus extern "C" #endif -SWIGEXPORT(void) pike_module_exit(void) {} +PIKE_MODULE_EXIT {} #ifdef __cplusplus extern "C" #endif -SWIGEXPORT(void) pike_module_init(void) { +PIKE_MODULE_INIT +{ struct program *pr; int i; for (i = 0; swig_types_initial[i]; i++) {