Stefan Zager
62fef1bf99
python3 support; passes all regressions.
...
Adding argcargvtest_runme3.py, because 2to3 can't handle it.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12425 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-03 07:21:37 +00:00
Stefan Zager
d4b8048e9a
Stopped using template class SwigPyBuiltin, because it caused problems
...
when two typedef-equivalent types are wrapped as separate classes.
Now failing on refcount.cpptest.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12392 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-12 00:43:01 +00:00
Stefan Zager
dd465f9588
Finished std::pair and std::map support.
...
li_std_pair_extra test fails, because the _runme.py uses the
secret 'this' member variable, which doesn't exist when the
-builtin option is used. Seems like a flaw in the test.
Test suite now fails on li_std_string_extra, because static
member variables are not fully implemented.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12351 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-12-15 23:04:20 +00:00
Stefan Zager
8a7ad756d0
Added sequence and mapping support for builtin types.
...
Fixed object ownership in %pyswigbinoperator.
Test suite now fails on li_std_vector_extra.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12346 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-12-14 21:11:02 +00:00
Stefan Zager
ee3a6623da
First cut. Works for wrapping OpenAccess, but there's plenty
...
left to do.
Currently, the test suite hurls at director_stl.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12332 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-12-07 21:50:00 +00:00
Olly Betts
28e277f8c5
Fix typo "the the" -> "the"
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12285 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-10-19 06:31:31 +00:00
William S Fulton
4308dd03cf
SWIG license change - The Examples and Lib move to a very permissive license in the LICENSE file, removing the BSD license restrictions as agreed by committers since it was inadvertently introduced. Remove some examples where the impact of the license change is not clear.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11874 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-02-27 23:26:02 +00:00
Olly Betts
6d8ea4f7fa
Fix comment typos
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11193 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-04-29 12:00:38 +00:00
William S Fulton
e8e8527642
vc++ warning fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11152 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-03-16 17:42:30 +00:00
Haoyu Bai
caa6f2b9fa
Fixes to support Python 3.0.1 and higher.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11143 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-03-02 17:56:29 +00:00
Haoyu Bai
8f84447860
Commited SF#2158938: change all SWIG symbols start with Py to a new name.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10961 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-03 18:43:44 +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
Haoyu Bai
1dfb0d7fad
Fixed SF #1971977 : typo in pycontainer.swg (related to -extranative option)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10504 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-28 17:27:48 +00:00
William S Fulton
da8791792b
STL fixes when using %import rather than %include and the Solaris Workshop compiler
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10424 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-07 21:33:19 +00:00
Olly Betts
85f02c4ba4
[Python] Fix generated code for IBM's C++ compiler on AIX (patch
...
from Goeran Uddeborg in SF#1928048).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10387 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-24 12:26:29 +00:00
Olly Betts
b2375fd6e6
[Python] Apply GCC 4.3 warnings patch from Philipp Thomas (SF#1925122).
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10321 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-26 08:52:57 +00:00
William S Fulton
76229dbab8
Restore containers accepting NULL pointers when used in overloaded methods - problem reported by Josh Cherry
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10217 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-22 23:33:59 +00:00
William S Fulton
cb9d191276
Remove conversion from one STL container to another
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10214 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-21 21:59:02 +00:00
William S Fulton
c8e1d09cff
Warning fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10041 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-25 22:36:23 +00:00
William S Fulton
c74b246a95
Common template for head of each file detailing licence, distribution and authors information
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8975 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-07 00:35:17 +00:00
Marcelo Matus
9bcf5507df
update iterator typemap
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8897 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-25 09:23:49 +00:00
Marcelo Matus
6e67122508
update iterator typemap
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8896 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-25 09:22:42 +00:00
Marcelo Matus
c1683603c1
add '= 0' to avoid warnings in icc
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8893 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-25 08:07:36 +00:00
Marcelo Matus
a66fa50a8c
cosmetic for generated python code
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8850 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-20 07:33:18 +00:00
Marcelo Matus
b9c30d7738
more fixes for old Solaris compiler
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8839 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-18 08:17:23 +00:00
Marcelo Matus
555ffa5fb4
fix warning reported by Nitro in VC7
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8837 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-18 01:27:30 +00:00
Marcelo Matus
3b89804a9b
fix bug #1420757
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8683 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-02 23:13:54 +00:00
Marcelo Matus
d311988106
add extranative option to keep old copy mode for std containers as the default behavior
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8673 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-02 06:00:37 +00:00
Marcelo Matus
0ee6a0446a
more fixes to MSC
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8515 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-22 07:00:32 +00:00
Marcelo Matus
019237de55
add missing '%' in front of #include
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8391 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-12 18:49:12 +00:00
Marcelo Matus
b2fa89b9f9
add functional header for std::less
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8372 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-11 16:47:51 +00:00
Marcelo Matus
972974c0e3
fix to avoid copies when the wrapper class exists
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8293 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-08 07:08:21 +00:00
Marcelo Matus
957a405574
fix problem with containers reported by John Koleszar
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8262 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-06 21:37:59 +00:00
Marcelo Matus
3a45aa84d6
add operator < for DEBUG
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8186 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-02 17:38:48 +00:00
Marcelo Matus
0e4b388ec9
add implicitconv support and cosmetics for cast rank
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8095 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 22:06:26 +00:00
Marcelo Matus
c805e48d35
add the -modernargs/-nomodernargs options and code to deal with old python 1.5
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8013 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-20 00:35:03 +00:00
Marcelo Matus
984ecc3d4f
move iterator classes to pyiterator and add/test std_carray.i class
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8010 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-19 10:43:26 +00:00
Marcelo Matus
ae761ca3ba
fix extra calls to TypeQuery for 'char *' and 'wchar_t *'
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7968 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-10 20:20:19 +00:00
Marcelo Matus
efcc7aeacf
fixes for the examples and tcl to use the old Tcl_SetResult()... methods
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7962 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-09 22:39:43 +00:00
Marcelo Matus
8b7fb37a59
more threads cleaning
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7944 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-07 22:25:05 +00:00
Marcelo Matus
0fd2fe23cf
add thread support based in proposal #398495 by Joseph Winston
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7929 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-06 06:39:24 +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
William S Fulton
cfdad24993
Use the system angle brackets for %include
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7871 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-26 09:28:20 +00:00
Marcelo Matus
f3c24eff33
fixes for directors + pointers
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7860 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-21 21:01:35 +00:00
Marcelo Matus
11b237dddd
put the swig::PyObject_var and swig::PyObject_ptr in the pyclass.swg file, to use them in more places
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7824 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-08 15:58:08 +00:00
Marcelo Matus
18736f2cba
add missing INCREF
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7814 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-05 15:45:57 +00:00
Marcelo Matus
3baa03e1b1
add missing check and sort the code around
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7790 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-03 15:11:17 +00:00
Marcelo Matus
ca60dcebc6
clean PyItem and use it in OutputIterator
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7789 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-03 15:00:38 +00:00
Marcelo Matus
40a65ea681
add swig::PyItem and all the helper code
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7787 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-03 14:24:36 +00:00
Marcelo Matus
ea0c2ca342
adding more missing typemaps
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7785 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-03 11:11:21 +00:00