From a7a9b355b9e5c06776ef6071f437f7026ff57cae Mon Sep 17 00:00:00 2001 From: Thien-Thi Nguyen Date: Wed, 12 Apr 2000 11:27:47 +0000 Subject: [PATCH] Use the `SWIG_NOINCLUDE' preprocessor symbol to indicate that SWIG runtime functions are imported from a different module, as it is done in other language modules. This primarily affects the preprocessor symbol `SWIGSTATIC'. (SWIG_init): Make this function globally visible only in simple linkage (the user should rename the function by a #define in this case). In other linkages, this func is static. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@413 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/guile/guiledec.swg | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/Lib/guile/guiledec.swg b/Lib/guile/guiledec.swg index 711dae780..b721724a8 100644 --- a/Lib/guile/guiledec.swg +++ b/Lib/guile/guiledec.swg @@ -16,12 +16,12 @@ extern "C" { #endif -#ifdef SWIG_GLOBAL -#define SWIGSTATIC -#endif - -#ifndef SWIGSTATIC -#define SWIGSTATIC static +#if defined(SWIG_NOINCLUDE) +# define SWIGSTATIC +#elif defined(SWIG_GLOBAL) +# define SWIGSTATIC +#else +# define SWIGSTATIC static #endif #define GH_NOT_PASSED SCM_UNDEFINED @@ -57,11 +57,13 @@ SWIGSTATIC void SWIG_RegisterMapping (char *origtype, char *newtype, void *(*cast)(void *)); +/* Register SWIG smobs with Guile */ SWIGSTATIC void SWIG_Guile_Init(); -SWIGSTATIC -void SWIG_init(); +/* Initialization function for this SWIG module; actually renamed by a + #define */ +/* extern void SWIG_init(); */ /* OBSOLESCENT functions (from swigptr.swg, still used unless -with-smobs) */