Second phase of OOR completed. (Original python object return for
wxEvtHandler and derived classes. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11962 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -5,7 +5,17 @@ swig_lib/python dir and you'll be all set. These are from SWIG
|
||||
1.1-883.
|
||||
|
||||
|
||||
Additionally, there is a patch in python.cxx.patch that should be
|
||||
applied to SWIG's .../Modules/python.cxx file. This patch prevents
|
||||
the out typemap from being used on constructors.
|
||||
Additionally, there are some patches for SWIG sources that are needed
|
||||
for wxPython:
|
||||
|
||||
1. python.cxx.patch, applied to .../Modules/python.cxx file will
|
||||
prevent the out typemap from being used on constructors.
|
||||
|
||||
2. cplus.cxx.patch, applied to .../SWIG/cplus.cxx will prevent
|
||||
some redundant code from being emitted to the extension
|
||||
module.
|
||||
|
||||
3. pycpp.cxx.patch, applied to .../Modules/pycpp.cxx will add
|
||||
support for the addtomethod pragma for renamed constructors.
|
||||
|
||||
|
||||
|
20
wxPython/SWIG/pycpp.cxx.patch
Normal file
20
wxPython/SWIG/pycpp.cxx.patch
Normal file
@@ -0,0 +1,20 @@
|
||||
*** Modules\pycpp.cxx.orig Mon Oct 08 16:27:42 2001
|
||||
--- Modules\pycpp.cxx Mon Oct 08 16:28:10 2001
|
||||
***************
|
||||
*** 229,235 ****
|
||||
*additional << tab4 << "val = " << class_name << "Ptr(apply("
|
||||
<< module << "." << name_construct(realname) << ",_args,_kwargs))\n"
|
||||
<< tab4 << "val.thisown = 1\n";
|
||||
! << tab4 << "return val\n\n";
|
||||
}
|
||||
// Patch up the documentation entry
|
||||
if (doc_entry) {
|
||||
--- 229,236 ----
|
||||
*additional << tab4 << "val = " << class_name << "Ptr(apply("
|
||||
<< module << "." << name_construct(realname) << ",_args,_kwargs))\n"
|
||||
<< tab4 << "val.thisown = 1\n";
|
||||
! emitAddPragmas(*additional, realname, tab4);
|
||||
! *additional << tab4 << "return val\n\n";
|
||||
}
|
||||
// Patch up the documentation entry
|
||||
if (doc_entry) {
|
Reference in New Issue
Block a user