Remove symbol clashes between runtime libraries.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5181 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Matthias Köppe 2003-10-05 11:36:52 +00:00
commit 95520b20af
8 changed files with 80 additions and 26 deletions

View file

@ -10,6 +10,7 @@
#include "chicken.h"
%}
%insert(runtime) "precommon.swg"
%insert(runtime) "common.swg"; // Common type-checking code
%insert(runtime) "chickenrun.swg"; // CHICKEN run-time code

16
Lib/chicken/precommon.swg Normal file
View file

@ -0,0 +1,16 @@
/*************************************************************** -*- c -*-
* chicken/precommon.swg
*
* Rename all exported symbols from common.swg, to avoid symbol
* clashes if multiple interpreters are included
*
************************************************************************/
#define SWIG_TypeRegister SWIG_Chicken_TypeRegister
#define SWIG_TypeCheck SWIG_Chicken_TypeCheck
#define SWIG_TypeCast SWIG_Chicken_TypeCast
#define SWIG_TypeDynamicCast SWIG_Chicken_TypeDynamicCast
#define SWIG_TypeName SWIG_Chicken_TypeName
#define SWIG_TypeQuery SWIG_Chicken_TypeQuery
#define SWIG_TypeClientData SWIG_Chicken_TypeClientData