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
William S Fulton
719cfe68bf
add some useful info for assert around SWIG_CAST_NEW_MEMORY
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11686 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-09-07 06:17:40 +00:00
William S Fulton
3076cbcdc0
Fix seg fault in SWIG_Python_ConvertFunctionPtr() for invalid values
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11537 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-12 00:22:47 +00:00
Haoyu Bai
6c96148de5
fixed the wrong pointer value returned by SwigPyObject_repr()
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11213 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-14 15:58:09 +00:00
Olly Betts
feb1e6de94
Remove two accidentally committed debug fprintf() calls.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11197 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-04-29 23:59:06 +00:00
Haoyu Bai
e8aa9d8703
fix of unclear comment regarding Python 3 tp_compare removal
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11194 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-04-29 12:05:33 +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
Haoyu Bai
a863d31e81
Fix the memory leak related to Python 3 unicode and char * conversion.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11160 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-03-19 15:26:57 +00:00
Haoyu Bai
94a788c30f
Remove an nonsense Py_INCREF.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11151 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-03-16 11:10:29 +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
William S Fulton
a4906b8182
remove gcc warning when using -Wunreachable-code
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11117 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-02-07 23:44:12 +00:00
William S Fulton
3f03858862
minor formatting
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11044 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-08 23:29:33 +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
William S Fulton
6588eb61f4
pointer display correction
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10867 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-09-18 20:16:03 +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
William S Fulton
f7deb81de1
Fix C compilation
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10253 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-13 23:18:39 +00:00
William S Fulton
c62cb6180e
always pass in non-null value for newmemory parameter in the casting function
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10243 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-10 21:34:56 +00:00
William S Fulton
f39242fa92
Complete the Python support for shared_ptr mainly for derived classes. This includes the smartptr feature for overriding the class registration function and shared_ptr typemaps
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10236 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-09 12:25:41 +00:00
William S Fulton
4c335c9422
fix possible null pointer deref - bug 1863647
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10204 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-12 23:06:06 +00:00
Olly Betts
bc9c671d84
[Python] Don't pass Py_ssize_t for a %d printf-like format as
...
that's undefined behaviour when sizeof(Py_ssize_t) != sizeof(int).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10145 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-16 16:05:10 +00:00
William S Fulton
e49c07014d
Correct usage of Py_ssize_t
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10040 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-25 22:33:20 +00:00
Olly Betts
38829f2ce0
[Python]
...
Fix "missing initialiser" warning when compiling generated C/C++
wrapper code with Python 2.5 with warnings enabled (patch from
bug#1727668 from Luke Moore).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9842 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-31 02:20:45 +00:00
Marcelo Matus
1ae96f61fb
fix for 2.5, reported by Mike Romberg #1465867
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9049 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-04-11 01:45:31 +00:00
Marcelo Matus
581c068154
fix char* warnings
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9046 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-04-10 21:03:13 +00:00
Marcelo Matus
02d5dbe049
fix prototype warnings, as reported by Max Browsher
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9034 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-26 07:09:22 +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
23eb236bab
fix _swig_repr, as reported by Robin
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8969 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-06 18:36:28 +00:00
Marcelo Matus
7a5c6d8e90
fix SWIG_Python_TypeQuery for C/Ansi, ie, the old variable declared after code issue
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8967 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-06 05:59:54 +00:00
Marcelo Matus
be61559569
fix SWIG_Python_SetSwigThis reported by Robin
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8964 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-06 04:07:43 +00:00
Marcelo Matus
36c067836e
add -fastquery and fix SWIG_Python_GetSwigThis, avoid to call GetAttr
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8963 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-05 06:43:16 +00:00
Marcelo Matus
9e952010b9
add -fastinit option after issue reported by Robin Dunn
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8951 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-04 11:06:51 +00:00
Marcelo Matus
a2c99f619d
reduce the aliasing warnings (when compiling with CFLAGS='-O2 -Wstrict-aliasing=2') to the minimum, ie, enums and pointer to functions
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8883 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-23 21:43:33 +00:00
Marcelo Matus
26d42ec95d
fixes for python 2.1
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8877 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-23 09:08:49 +00:00
Marcelo Matus
5b98331c41
fix for python 2.3 and gc_refs issue reported by Luigi
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8842 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-18 20:54:17 +00:00
Marcelo Matus
a3555839e4
simplify generated code and more consistent names/sections
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8781 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-11 01:57:32 +00:00
Marcelo Matus
b49ba78a1d
split operation since they are macros
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8735 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-07 09:23:43 +00:00
Marcelo Matus
45487003b2
fix destroy issue reported by Mike Romberg
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8734 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-07 00:03:21 +00:00
Marcelo Matus
24404e25aa
simpler warning for mem leak, due to problem reported by Mike Romberg
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8730 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-06 18:38:22 +00:00
Marcelo Matus
9db5576a18
add missings getattro
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8729 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-06 16:47:47 +00:00
Marcelo Matus
27a8f8aa97
more fixes for 1.5.2
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8723 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-06 09:28:56 +00:00
Marcelo Matus
7c48986420
fix checking for noargs
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8719 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-05 04:11:40 +00:00
Marcelo Matus
b56b1b4a64
add back def PySwigObject_GetDesc
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8701 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-03 23:28:15 +00:00
Marcelo Matus
8484165901
fix for subversion 1.3.0
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8674 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-02 06:53:07 +00:00
Marcelo Matus
0f7b502a3b
fix -external-runtime and warning arounds in subversion
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8666 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-01 08:37:53 +00:00
William S Fulton
0145c1f10e
fix solaris workshop compiler noise
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8639 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-30 21:14:21 +00:00
Marcelo Matus
3de733ebc4
add more backward comp macros/fragments/methods
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8590 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-28 08:48:48 +00:00
Marcelo Matus
fa726d34ad
add support for 'old' tuple output
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8583 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-28 03:26:11 +00:00
William S Fulton
ee8bc64a74
Fix so that C++ code is not generated for C wrappers
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8361 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-10 23:22:34 +00:00
Marcelo Matus
7f8718c3c8
fix missing _PyInstance_Lookup for versions < 2.3
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8321 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-09 17:44:59 +00:00
Marcelo Matus
cf431d3b47
add buildnone option and cosmetics, including sorting options by name
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8290 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-08 06:58:49 +00:00