From: <bh...@us...> - 2008-08-13 09:37:51
|
Revision: 10755 http://swig.svn.sourceforge.net/swig/?rev=10755&view=rev Author: bhy Date: 2008-08-13 09:37:47 +0000 (Wed, 13 Aug 2008) Log Message: ----------- minor code clean-ups Modified Paths: -------------- branches/gsoc2008-bhy/Examples/test-suite/common.mk branches/gsoc2008-bhy/Lib/python/pycontainer.swg branches/gsoc2008-bhy/Lib/python/pystrings.swg branches/gsoc2008-bhy/Source/Modules/python.cxx Modified: branches/gsoc2008-bhy/Examples/test-suite/common.mk =================================================================== --- branches/gsoc2008-bhy/Examples/test-suite/common.mk 2008-08-12 14:51:58 UTC (rev 10754) +++ branches/gsoc2008-bhy/Examples/test-suite/common.mk 2008-08-13 09:37:47 UTC (rev 10755) @@ -237,6 +237,7 @@ null_pointer \ operator_overload \ operator_overload_break \ + operbool \ ordering \ overload_copy \ overload_extend \ Modified: branches/gsoc2008-bhy/Lib/python/pycontainer.swg =================================================================== --- branches/gsoc2008-bhy/Lib/python/pycontainer.swg 2008-08-12 14:51:58 UTC (rev 10754) +++ branches/gsoc2008-bhy/Lib/python/pycontainer.swg 2008-08-13 09:37:47 UTC (rev 10755) @@ -116,7 +116,7 @@ bool res; SWIG_PYTHON_THREAD_BEGIN_BLOCK; res = PyObject_Compare(v, w) < 0; - /* TODO: would this fall into a case of inconsistent? + /* This may fall into a case of inconsistent eg. ObjA > ObjX > ObjB but ObjA < ObjB */ Modified: branches/gsoc2008-bhy/Lib/python/pystrings.swg =================================================================== --- branches/gsoc2008-bhy/Lib/python/pystrings.swg 2008-08-12 14:51:58 UTC (rev 10754) +++ branches/gsoc2008-bhy/Lib/python/pystrings.swg 2008-08-13 09:37:47 UTC (rev 10755) @@ -6,7 +6,6 @@ SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc) { %#if PY_VERSION_HEX>=0x03000000 - /* TODO: Check this! Should we use a seperate function for Unicode string? */ if (PyUnicode_Check(obj)) %#else if (PyString_Check(obj)) Modified: branches/gsoc2008-bhy/Source/Modules/python.cxx =================================================================== --- branches/gsoc2008-bhy/Source/Modules/python.cxx 2008-08-12 14:51:58 UTC (rev 10754) +++ branches/gsoc2008-bhy/Source/Modules/python.cxx 2008-08-13 09:37:47 UTC (rev 10755) @@ -848,7 +848,6 @@ Printf(f_wrappers, "%s\n", const_code); initialize_threads(f_init); - /* TODO: is it possible to put these into .swg files? */ Printf(f_init, "#if PY_VERSION_HEX >= 0x03000000\n"); Printf(f_init, " return m;\n"); Printf(f_init, "#else\n"); @@ -861,10 +860,6 @@ Printf(f_wrappers, "#endif\n"); if (shadow) { - /* - Printf(f_shadow_imports,"\nimport %s\n", module); - Printv(f_shadow_py, f_shadow_imports, "\n",NIL); - */ Printv(f_shadow_py, f_shadow, "\n", NIL); Printv(f_shadow_py, f_shadow_stubs, "\n", NIL); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |