add John Lenz patch for avoiding the runtime library, but allowing the old approach to coexist

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6288 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-10-02 17:54:38 +00:00
commit afed1d4126
4 changed files with 66 additions and 8 deletions

View file

@ -22,10 +22,13 @@ SWIGEXPORT(void) SWIG_init(void) {
d = PyModule_GetDict(m);
if (!typeinit) {
for (i = 0; swig_types_initial[i]; i++) {
swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
}
typeinit = 1;
#ifdef SWIG_DISABLE_RUNTIME
SWIG_Python_LookupTypePointer(&swig_type_list_handle);
#endif
for (i = 0; swig_types_initial[i]; i++) {
swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
}
typeinit = 1;
}
SWIG_InstallConstants(d,swig_const_table);
%}