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
This commit is contained in:
Thien-Thi Nguyen 2000-04-12 11:27:47 +00:00
commit a7a9b355b9

View file

@ -16,12 +16,12 @@
extern "C" { extern "C" {
#endif #endif
#ifdef SWIG_GLOBAL #if defined(SWIG_NOINCLUDE)
#define SWIGSTATIC # define SWIGSTATIC
#endif #elif defined(SWIG_GLOBAL)
# define SWIGSTATIC
#ifndef SWIGSTATIC #else
#define SWIGSTATIC static # define SWIGSTATIC static
#endif #endif
#define GH_NOT_PASSED SCM_UNDEFINED #define GH_NOT_PASSED SCM_UNDEFINED
@ -57,11 +57,13 @@ SWIGSTATIC
void SWIG_RegisterMapping (char *origtype, char *newtype, void SWIG_RegisterMapping (char *origtype, char *newtype,
void *(*cast)(void *)); void *(*cast)(void *));
/* Register SWIG smobs with Guile */
SWIGSTATIC SWIGSTATIC
void SWIG_Guile_Init(); void SWIG_Guile_Init();
SWIGSTATIC /* Initialization function for this SWIG module; actually renamed by a
void SWIG_init(); #define */
/* extern void SWIG_init(); */
/* OBSOLESCENT functions (from swigptr.swg, still used unless -with-smobs) */ /* OBSOLESCENT functions (from swigptr.swg, still used unless -with-smobs) */