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
ff1bd7a80d
Vladimir Menshakov patch for compiling wrappers with python-2.5 alpha.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9158 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-06-13 19:24:54 +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
Marcelo Matus
97ab6a3e8f
remove unused var
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8685 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-02 23:48:56 +00:00
Marcelo Matus
51f7ea18f6
add the 'str' method to cvar
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8572 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-27 16:28: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
07c115102a
more portability tricks
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7934 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-06 20:14:55 +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
Marcelo Matus
a5d45ae01f
try to fix borland error
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7923 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-04 05:07:57 +00:00
Marcelo Matus
3955965739
more memory leaks fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7921 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-04 01:16:57 +00:00
Marcelo Matus
63fdb3d2a0
fix for older python versions
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7919 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-02 19:36:13 +00:00
Marcelo Matus
6d57482864
add SWIGUNUSEDPARM
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7917 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-02 08:42:41 +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
ba3efb0917
finishing the first stage of the typemap unification scheme, fixing issues with gcc and valgrind
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7692 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-20 09:47:56 +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
327bbc06ac
more fixes for python 1.5 +gcc2.96
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7301 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-17 19:12:21 +00:00
William S Fulton
815355b964
Uniform handling of SWIGEXPORT across SWIG.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7234 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-27 22:40:58 +00:00
Marcelo Matus
7ee5f85b5a
fix prototype warning
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7082 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-19 19:35:42 +00:00
Marcelo Matus
ca7159f7e7
add better director+exception support
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7038 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-07 20:47:55 +00:00
Marcelo Matus
5b74ab97a7
more fixes for security and warnings
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7009 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-26 20:25:10 +00:00
Marcelo Matus
e38ce2b2c3
more warning fixes, cosmetics, and uniformity changes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7006 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-26 08:47:17 +00:00
Marcelo Matus
4c873ffb8d
finishing change from 'static' to 'SWIGINTERN'
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7001 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-25 07:40:41 +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
John Lenz
c3338b1a16
- Improve the runtime type sytesm
...
- Update all languages to new type system
- Add DohSortList function
- Fix mzscheme Examples/Makefile
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6930 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-01 00:08:24 +00:00
Marcelo Matus
8e0ff81516
using the global runtime.swg instead of python/pyrunalias.swg. Now the same solution can be used in other languages
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6765 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-21 19:44:08 +00:00
Marcelo Matus
0881d3c861
Add simple PySwigObject to handle the C/C++ instance pointers,
...
instead of using PyCObject or plain strings.
The new PySwigObject is even safer than PyCObject, and
more friendly than plain strings:
now you can do
print a.this
<Swig Object at _00691608_p_A>
print str(a.this)
_00691608_p_A
print long(a.this)
135686400
print "%s 0x%x" % (a.this, a.this)
_00691608_p_A 0x8166900
the last one is very useful when debugging the C/C++ side, since
is the pointer value you will usually get from the debugger.
Also, if you have some old code that uses the string representation
"_00691608_p_A", you can use it now again by calling str(ptr), or
maybe nothing special by just calling PyString_AsString(..).
This change is mainly for nostalgic swig users that miss the
string representation, but also allows to say again
if a.this == b.this:
return "a is b"
and well, since the change were really simple, maybe in the future
we will be able to do
next = a.this + 1
or add native python iteration over native C/C++ arrays, ie, no
need to create/copy new tuples when returning and array or vector.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6759 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-19 20:40: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
c600268775
CHANGES.current
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6477 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-21 22:36:52 +00:00
John Lenz
0c57969c61
- Add SWIG_RUNTIME_VERSION to new type sharing code. This is for future-proof, if
...
the format of swig_type_info ever changes, this number should be incremented
- Add SWIG_LINK_RUNTIME and SWIG_STATIC_RUNTIME symbols to python
- Convert inline into SWIGINLINE
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6475 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-21 21:53:54 +00:00
John Lenz
75e462baa8
Removed ability to share type information by C linking
...
All type sharing happens through a global variable in the target language.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6390 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-16 18:23:59 +00:00
Marcelo Matus
983d4abe42
add John Lenz patch for avoiding the runtime library, but allowing the old approach to coexist
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6288 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-02 17:54:38 +00:00
Marcelo Matus
a4a7a2ff1f
better error messages, more comments, clean up for the next major modifications
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6284 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-02 01:43:17 +00:00
Marcelo Matus
3d5d0f535a
cleaning + comments, and add the nondynamic feature handlers
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6266 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-26 01:00:28 +00:00