William S Fulton
43438b66ab
Re-organise some generate Python code for method creation and docstring support
...
Fix ‘PyMethodDef* SWIG_PythonGetProxyDoc(const char*)’ declared ‘static’ but
never defined [-Wunused-function]
Closes #1448
2019-02-10 22:55:16 +00:00
William S Fulton
62c5ca89a6
Minor refactoring of generated Python code
2019-02-03 00:27:57 +00:00
Alec Woods
86e08c8e34
Fixes so that fastproxy and autodoc work correctly with both low-level C API and high-level Python Shadow API
2019-01-26 09:30:26 -05:00
William S Fulton
a1f40568d6
Remove non-const char * usage where the Python API now supports it
...
Python fixed many APIs to use const char * instead of char * at around
Python 2.4. As we support 2.7 and later, we can now remove the non-const
string usage.
Types changed:
PyArg_ParseTuple
PyArg_ParseTupleAndKeywords
PyArg_UnpackTuple
PyDict_SetItemString
PyMethodDef
PyModuleDef
SWIG_Python_UnpackTuple
SWIG_Python_str_FromChar
SWIG_addvarlink
swig_const_info
2018-10-22 08:19:50 +01:00
William S Fulton
c9cac931c7
Re-implement Python -fastproxy option.
...
The previous implementation failed with Python 3 and abstract base clases.
The new implementation replaces the Python 2 implementation using new.instancemethod with C API PyMethod_New to match the equivalent Python 3 implementation which uses PyInstanceMethod_New.
Closes #1310
2018-08-18 00:36:23 +01:00
William S Fulton
f1234aae42
Cosmetics - Fix bracket matching
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12622 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-04-09 23:48:19 +00:00
Stefan Zager
17af467132
Fix for bug #3057804 : migrate PyCObject to PyCapsule.
...
Other misc. fixes for python3.2, mostly dealing with changed
interfaces to python functions.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12620 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-04-09 22:07:22 +00:00
William S Fulton
960b503a72
Python warning fixes for gcc -Wall -Wextra
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12584 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-04-01 06:46:14 +00:00
William S Fulton
a46e1f6c31
unused warning fix
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12581 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-31 20:30:13 +00:00
Haoyu Bai
3d8ddfc442
Merged the Python 3.0 support branch. The merging progress is not so smooth, so hope this commit won't make anything broken.
...
This is the (incomplemete) log produced by svnmerge.py:
Merged revisions 10405-10409,10420-10422,10426,10438,10445,10451,10454-10465,10467,10473-10475,10485,10488-10489,10493-10495,10497,10509-10510,10513-10514,10517,10520,10525,10528-10529,10533-10535,10554-10557,10570,10573,10593,10614,10666-10669,10673,10678,10687,10690,10704-10706,10731,10744,10750-10752,10755,10759,10770,10775-10776,10813,10819 via svnmerge from
https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-bhy
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10834 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-09-11 17:18:07 +00:00
Marcelo Matus
e55c3596b6
oops, fix previous commit with <<< conflicts
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7946 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-07 23:54:59 +00:00
Marcelo Matus
6e77a6ba25
fixes for swigrun example
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7945 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-07 23:50:38 +00:00
Marcelo Matus
922d58ac19
don't use Py_None directly nor &PyType_Type
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7925 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-04 08:50:00 +00:00
Marcelo Matus
3c65cea431
Perl added to the Unified typemap library, cleaner way to use the library, and 'normalized' macro names
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7707 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-24 14:59:05 +00:00
Marcelo Matus
7e5e4fd1f9
massive typemap unification
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7676 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-18 13:24:15 +00:00
Marcelo Matus
192e00615d
More fix for warnings, and add some of the ideas of the Bill's 'labels' patch
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6998 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-24 23:48:20 +00:00
Marcelo Matus
86c306dcc2
Use SWIGUNUSED attribute and fix warnings
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6982 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-22 19:54:20 +00:00
Marcelo Matus
811c159e38
allow to include the swig runtime code into external user libraries
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6752 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-18 00:37:33 +00:00
Marcelo Matus
f42ab6d25a
going back to use COBJECTS, which is the safe option, before release
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6642 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-03 08:09:28 +00:00
Marcelo Matus
d27df888dc
CHANGES.current
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6466 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-21 10:34:49 +00:00
Marcelo Matus
dc4409a1f1
isolate language independent STD/STL/C++ code + more documentation + cleaning
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6382 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-10 06:42:15 +00:00
Marcelo Matus
61193266ae
since bad preprocessors around, we are going back to plain Types
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6378 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-08 16:09:06 +00:00
Marcelo Matus
a0dd20b4b7
make type methods template safe
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6337 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-06 02:29:18 +00:00
Marcelo Matus
0b3f8bf2ce
LookupTypePointer now as pyrun
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6335 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-05 23:20:34 +00:00
Marcelo Matus
e46c80edf8
replacing SWIGSTATIC(a) by SWIGINTERN a
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6290 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-02 20:15:46 +00:00
Marcelo Matus
2c962d36f2
isolating the pure 'runtime' code in pyrun.swg, the API declarations are now in pyapi.swg
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6289 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-02 18:44:48 +00:00