From: Mark G. <mgo...@us...> - 2006-09-18 05:44:32
|
Update of /cvsroot/swig/SWIG/Lib In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv16380 Modified Files: swiginit.swg Log Message: fix on swiginit.swg, has been reported to crash on several test cases found and fixed problem in imports under python (mingw) Index: swiginit.swg =================================================================== RCS file: /cvsroot/swig/SWIG/Lib/swiginit.swg,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** swiginit.swg 11 Sep 2006 06:49:47 -0000 1.9 --- swiginit.swg 18 Sep 2006 05:44:22 -0000 1.10 *************** *** 49,54 **** #if 0 #define SWIGRUNTIME_DEBUG ! #endif SWIGRUNTIME void SWIG_InitializeModule(void *clientdata) { --- 49,55 ---- #if 0 #define SWIGRUNTIME_DEBUG ! #endif + SWIGRUNTIME void SWIG_InitializeModule(void *clientdata) { *************** *** 58,63 **** clientdata = clientdata; ! /* Try and load any already created modules */ module_head = SWIG_GetModule(clientdata); if (!module_head) { --- 59,72 ---- clientdata = clientdata; + + /* check to see if the circular list has been setup, if not, set it up */ + if (swig_module.next==0) { + /* Initialize the swig_module */ + swig_module.type_initial = swig_type_initial; + swig_module.cast_initial = swig_cast_initial; + swig_module.next = &swig_module; + } ! /* Try and load any already created modules */ module_head = SWIG_GetModule(clientdata); if (!module_head) { *************** *** 66,76 **** SWIG_SetModule(clientdata, &swig_module); module_head = &swig_module; - /* check to see if the circular list has been setup, if not, set it up */ - if (swig_module.next==0) { - /* Initialize the swig_module */ - swig_module.type_initial = swig_type_initial; - swig_module.cast_initial = swig_cast_initial; - swig_module.next = &swig_module; - } } else { /* the interpreter has loaded a SWIG module, but has it loaded this one? */ --- 75,78 ---- |