Marcelo Matus
ec057c2498
fix prototype warning
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7086 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-19 21:38:32 +00:00
Marcelo Matus
35c501428b
fix prototype warning
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7082 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-19 19:35:42 +00:00
Marcelo Matus
91fc53b41b
fix possible seg fault when reporting bad object type
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7061 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-14 21:16:25 +00:00
Marcelo Matus
640c18b7d7
fix seg fault when runtime fails
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7060 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-12 01:11:49 +00:00
Marcelo Matus
75b86293fd
add better director+exception support
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7038 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-07 20:47:55 +00:00
Marcelo Matus
7dba15ba0a
fix memory leak reported by Bo Peng
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7026 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-06 06:41:43 +00:00
Marcelo Matus
12d289fe06
better SwigPyObject -> long/hex/oct, no warnings now
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7025 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-05 02:19:48 +00:00
Marcelo Matus
6ea76d52f4
fix compare, reported by Cameron Patrick
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7023 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-04 18:17:10 +00:00
Marcelo Matus
7079c05fb5
fix hex pointer conversion
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7021 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-02 17:52:34 +00:00
Marcelo Matus
006097c0a9
fix more VC7.1 warnings
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7016 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-28 23:59:51 +00:00
William S Fulton
bb80ee9ac9
Fix bool performance warning for Visual C++
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7011 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-28 22:24:22 +00:00
Marcelo Matus
03465fd407
more fixes for security and warnings
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7009 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-26 20:25:10 +00:00
Marcelo Matus
24cc273b92
more warning fixes, cosmetics, and uniformity changes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7006 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-26 08:47:17 +00:00
Marcelo Matus
cc21f3219a
finishing change from 'static' to 'SWIGINTERN'
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7001 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-25 07:40:41 +00:00
Marcelo Matus
1a129db676
add robust -nortti implementation
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7000 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-25 07:18:42 +00:00
Marcelo Matus
58db22803e
add -nortti option in python, to avoid using RTTI, mainly with directors
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6999 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-25 00:47:10 +00:00
Marcelo Matus
9cbe065017
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@6998 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-24 23:48:20 +00:00
Marcelo Matus
cd5aa31041
fix seg. fault after error report
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6995 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-24 20:40:21 +00:00
Marcelo Matus
aa125ef94c
Use SWIGUNUSED attribute and fix warnings
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6982 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-22 19:54:20 +00:00
Marcelo Matus
e881c6308d
fix PyOS_snprintf for old python versions
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6981 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-22 19:53:41 +00:00
Marcelo Matus
8dd4c07eeb
fix empty map bug
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6980 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-22 19:52:43 +00:00
John Lenz
f6964f285f
- 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@6930 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-01 00:08:24 +00:00
Marcelo Matus
983bb8f35d
fix for 'staticmethod' kw name
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6911 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-22 20:32:31 +00:00
Marcelo Matus
a80aa7fe40
fix varin for ptr types
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6909 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-21 20:07:16 +00:00
Marcelo Matus
eb78df9899
fix typecheck for INPUT* type
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6901 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-20 09:50:55 +00:00
Marcelo Matus
f41a1ba089
fix *INPUT typemaps for ptr types, now a null value is ok
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6898 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-19 22:48:33 +00:00
Marcelo Matus
c57d081dfb
fix *INPUT typemaps for ptr types, now a null value is ok
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6897 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-19 22:36:45 +00:00
Marcelo Matus
e67b13b202
solve possible seg. faults and directors #1080075
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6894 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-16 10:40:01 +00:00
Marcelo Matus
e7c1108ed1
fix directorout + cosmetic
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6888 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-16 00:57:39 +00:00
Marcelo Matus
cca7ef61ea
fix directorout typemap for const std::string&. Adding warning about the new typemap, which is not thread safe
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6872 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-13 20:22:19 +00:00
Marcelo Matus
689f2ecfa2
fix errors when used with templates
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6867 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-12 21:59:10 +00:00
Marcelo Matus
61b1dc73f5
fix for Windows
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6860 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-11 23:38:44 +00:00
Marcelo Matus
7df3a0ab13
global fix for operator*(), now mapped as __ref__
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6859 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-11 23:38:07 +00:00
Marcelo Matus
047b1264be
fixes for operator*()
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6858 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-11 10:20:05 +00:00
Marcelo Matus
66c195b89d
fix char* typemap in bug #1080514
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6856 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-11 08:30:40 +00:00
Marcelo Matus
b8ae49d52d
more fixes for template + def args
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6833 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-05 10:15:25 +00:00
Marcelo Matus
7934dbb7b1
fix include in bug #1076122
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6821 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-01 12:02:46 +00:00
Marcelo Matus
ee3e53c9cd
better support for string and def. args, plus adding allocator + sstream
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6818 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-01 01:22:30 +00:00
Marcelo Matus
84065db35b
fix error in bool
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6817 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-01 01:20:42 +00:00
Marcelo Matus
0a974f5943
fixes for void*
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6816 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-01 01:20:04 +00:00
Marcelo Matus
2ce0825686
Prabhu's fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6767 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-22 16:47:49 +00:00
Marcelo Matus
1f0ebfd56a
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@6765 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-21 19:44:08 +00:00
Marcelo Matus
677b97f07f
fix error message
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6764 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-21 19:43:16 +00:00
Marcelo Matus
9c5118bc7a
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@6763 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-21 19:36:26 +00:00
Marcelo Matus
e48b28473d
remove bad typemap
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6760 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-19 20:44:35 +00:00
Marcelo Matus
121d73d58c
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@6759 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-19 20:40:20 +00:00
Marcelo Matus
0baa17ec05
allow to include the swig runtime code into external user libraries
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6752 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-18 00:37:33 +00:00
Marcelo Matus
e25ab5c0de
add back support for specialize_std_vector/list/etc
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6741 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-15 22:59:47 +00:00
Marcelo Matus
b40f47a7fd
more enum typemaps
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6730 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-15 20:55:53 +00:00
Marcelo Matus
47e0a3f07a
add typemaps for vars +two dimensional arrays
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6729 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-15 20:55:20 +00:00