]> git.saurik.com Git - wxWidgets.git/blob - wxPython/SWIG/python.cxx.patch
mingw32/cygwin compilation fixes
[wxWidgets.git] / wxPython / SWIG / python.cxx.patch
1 *** Modules\python.cxx.orig Fri May 11 16:04:01 2001
2 --- Modules\python.cxx Fri May 11 16:14:08 2001
3 ***************
4 *** 879,885 ****
5 // If there was a result, it was saved in _result.
6 // If the function is a void type, don't do anything.
7
8 ! if ((tm = typemap_lookup("out","python",d,iname,"_result","_resultobj"))) {
9 // Yep. Use it instead of the default
10 f.code << tm << "\n";
11 } else {
12 --- 879,886 ----
13 // If there was a result, it was saved in _result.
14 // If the function is a void type, don't do anything.
15
16 ! if ((strncmp(name, "new_", 4) != 0) && // don't use the out typemap for constructors
17 ! (tm = typemap_lookup("out","python",d,iname,"_result","_resultobj"))) {
18 // Yep. Use it instead of the default
19 f.code << tm << "\n";
20 } else {