X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dd400cf46dd8664ba3159890ec5485b54e7eb565..b4eecebd423df0c6efe86d7658cd3df818d67ed8:/wxPython/SWIG/swig-1.3.27.patch?ds=inline diff --git a/wxPython/SWIG/swig-1.3.27.patch b/wxPython/SWIG/swig-1.3.27.patch index bd65fce9c2..6bbca81d28 100644 --- a/wxPython/SWIG/swig-1.3.27.patch +++ b/wxPython/SWIG/swig-1.3.27.patch @@ -4,7 +4,7 @@ RCS file: /cvsroot/swig/SWIG/Doc/Manual/Python.html,v retrieving revision 1.31 diff -u -4 -r1.31 Python.html --- Doc/Manual/Python.html 6 Oct 2005 21:49:58 -0000 1.31 -+++ Doc/Manual/Python.html 29 Jan 2006 02:05:55 -0000 ++++ Doc/Manual/Python.html 28 Jun 2006 22:22:00 -0000 @@ -4461,10 +4461,10 @@

26.10 Docstring Features

@@ -24,7 +24,7 @@ RCS file: /cvsroot/swig/SWIG/Lib/swig.swg,v retrieving revision 1.49 diff -u -4 -r1.49 swig.swg --- Lib/swig.swg 15 Oct 2005 00:15:30 -0000 1.49 -+++ Lib/swig.swg 29 Jan 2006 02:05:55 -0000 ++++ Lib/swig.swg 28 Jun 2006 22:22:00 -0000 @@ -51,9 +51,9 @@ #define %nodefault %feature("nodefault","1") @@ -42,7 +42,7 @@ RCS file: /cvsroot/swig/SWIG/Lib/swiginit.swg,v retrieving revision 1.5 diff -u -4 -r1.5 swiginit.swg --- Lib/swiginit.swg 12 Sep 2005 23:25:03 -0000 1.5 -+++ Lib/swiginit.swg 29 Jan 2006 02:05:55 -0000 ++++ Lib/swiginit.swg 28 Jun 2006 22:22:00 -0000 @@ -40,14 +40,19 @@ **/ @@ -192,7 +192,7 @@ RCS file: /cvsroot/swig/SWIG/Source/Modules/python.cxx,v retrieving revision 1.107 diff -u -4 -r1.107 python.cxx --- Source/Modules/python.cxx 7 Oct 2005 13:17:41 -0000 1.107 -+++ Source/Modules/python.cxx 29 Jan 2006 02:05:56 -0000 ++++ Source/Modules/python.cxx 28 Jun 2006 22:22:01 -0000 @@ -36,9 +36,8 @@ static File *f_directors_h = 0; static File *f_init = 0; @@ -203,28 +203,7 @@ diff -u -4 -r1.107 python.cxx static String *methods; static String *class_name; -@@ -281,8 +280,20 @@ - Swig_banner(f_runtime); - - Printf(f_runtime,"#define SWIGPYTHON\n"); - -+ String *package_version = NewString(PACKAGE_VERSION); -+ char *token = strtok(Char(package_version), "."); -+ String *vers = NewString("#define SWIG_VERSION 0x"); -+ while (token) { -+ int len = strlen(token); -+ Printf(vers, "%s%s", (len == 1) ? "0" : "", token); -+ token = strtok(NULL, "."); -+ } -+ Printf(f_runtime, "%s\n", vers); -+ Delete(package_version); -+ Delete(vers); -+ - if (directorsEnabled()) { - Printf(f_runtime,"#define SWIG_DIRECTORS\n"); - } - -@@ -322,9 +333,8 @@ +@@ -322,9 +321,8 @@ } Delete(filen); filen = NULL; @@ -234,7 +213,7 @@ diff -u -4 -r1.107 python.cxx Swig_register_filebyname("shadow",f_shadow); Swig_register_filebyname("python",f_shadow); -@@ -343,8 +353,10 @@ +@@ -343,8 +341,10 @@ if (mod_docstring && Len(mod_docstring)) { Printv(f_shadow, "\n\"\"\"\n", mod_docstring, "\n\"\"\"\n", NIL); Delete(mod_docstring); mod_docstring = NULL; @@ -245,7 +224,7 @@ diff -u -4 -r1.107 python.cxx /* if (!modern) */ /* always needed, a class can be forced to be no-modern, such as an exception */ { -@@ -445,10 +457,8 @@ +@@ -445,10 +445,8 @@ Printf(f_wrappers,"}\n"); Printf(f_wrappers,"#endif\n"); @@ -256,7 +235,7 @@ diff -u -4 -r1.107 python.cxx Printv(f_shadow_py, f_shadow_stubs, "\n",NIL); Close(f_shadow_py); -@@ -507,12 +517,9 @@ +@@ -507,12 +505,9 @@ } // finally, output the name of the imported module @@ -270,7 +249,7 @@ diff -u -4 -r1.107 python.cxx } } return Language::importDirective(n); -@@ -774,10 +781,15 @@ +@@ -774,10 +769,15 @@ // Do the param type too? if (showTypes) { @@ -288,3 +267,44 @@ diff -u -4 -r1.107 python.cxx } if (name) { +Index: Lib/python/pyinit.swg +=================================================================== +RCS file: /cvsroot/swig/SWIG/Lib/python/pyinit.swg,v +retrieving revision 1.19 +diff -u -4 -r1.19 pyinit.swg +--- Lib/python/pyinit.swg 17 Jun 2005 19:12:20 -0000 1.19 ++++ Lib/python/pyinit.swg 28 Jun 2006 22:22:01 -0000 +@@ -214,13 +214,13 @@ + swig_type_info **types, + swig_type_info **types_initial) { + size_t i; + for (i = 0; methods[i].ml_name; ++i) { +- char *c = methods[i].ml_doc; ++ const char *c = methods[i].ml_doc; + if (c && (c = strstr(c, "swig_ptr: "))) { + int j; + swig_const_info *ci = 0; +- char *name = c + 10; ++ const char *name = c + 10; + for (j = 0; const_table[j].type; ++j) { + if (strncmp(const_table[j].name, name, + strlen(const_table[j].name)) == 0) { + ci = &(const_table[j]); +Index: Lib/python/pyrun.swg +=================================================================== +RCS file: /cvsroot/swig/SWIG/Lib/python/pyrun.swg,v +retrieving revision 1.73 +diff -u -4 -r1.73 pyrun.swg +--- Lib/python/pyrun.swg 23 Aug 2005 10:55:05 -0000 1.73 ++++ Lib/python/pyrun.swg 28 Jun 2006 22:22:01 -0000 +@@ -635,9 +635,9 @@ + if (pyobj && !obj) { + obj = pyobj; + if (PyCFunction_Check(obj)) { + /* here we get the method pointer for callbacks */ +- char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); ++ const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); + c = doc ? strstr(doc, "swig_ptr: ") : 0; + if (c) { + c = ty ? SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name) : 0; + if (!c) goto type_error;