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
3853c510c6
fix PyOS_snprintf for old python versions
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6981 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-22 19:53:41 +00:00
Marcelo Matus
9537f69323
fix empty map bug
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6980 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-22 19:52:43 +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
bef269c021
fix for 'staticmethod' kw name
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6911 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-22 20:32:31 +00:00
Marcelo Matus
38f4a38509
fix varin for ptr types
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6909 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-21 20:07:16 +00:00
Marcelo Matus
275031b938
fix typecheck for INPUT* type
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6901 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-20 09:50:55 +00:00
Marcelo Matus
5657e0f7fb
fix *INPUT typemaps for ptr types, now a null value is ok
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6898 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-19 22:48:33 +00:00
Marcelo Matus
839e80a70b
fix *INPUT typemaps for ptr types, now a null value is ok
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6897 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-19 22:36:45 +00:00
Marcelo Matus
544f24441e
solve possible seg. faults and directors #1080075
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6894 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-16 10:40:01 +00:00
Marcelo Matus
d640972da9
fix directorout + cosmetic
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6888 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-16 00:57:39 +00:00
Marcelo Matus
c98340f0a7
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/SWIG@6872 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-13 20:22:19 +00:00
Marcelo Matus
e640a7c2b9
fix errors when used with templates
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6867 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-12 21:59:10 +00:00
Marcelo Matus
1b3848b579
fix for Windows
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6860 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-11 23:38:44 +00:00
Marcelo Matus
b1ed62fc81
global fix for operator*(), now mapped as __ref__
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6859 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-11 23:38:07 +00:00
Marcelo Matus
37c727888b
fixes for operator*()
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6858 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-11 10:20:05 +00:00
Marcelo Matus
988db075cb
fix char* typemap in bug #1080514
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6856 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-11 08:30:40 +00:00
Marcelo Matus
6b499410dd
more fixes for template + def args
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6833 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-05 10:15:25 +00:00
Marcelo Matus
d8ae51668b
fix include in bug #1076122
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6821 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-01 12:02:46 +00:00
Marcelo Matus
3331853982
better support for string and def. args, plus adding allocator + sstream
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6818 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-01 01:22:30 +00:00
Marcelo Matus
966290225e
fix error in bool
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6817 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-01 01:20:42 +00:00
Marcelo Matus
e14b6980f7
fixes for void*
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6816 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-01 01:20:04 +00:00
Marcelo Matus
a111449e8c
Prabhu's fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6767 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-22 16:47:49 +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
9c08af4fc4
fix error message
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6764 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-21 19:43:16 +00:00
Marcelo Matus
492c58c659
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@6763 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-21 19:36:26 +00:00
Marcelo Matus
9ead45061c
remove bad typemap
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6760 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-19 20:44:35 +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
0d9df55066
add back support for specialize_std_vector/list/etc
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6741 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-15 22:59:47 +00:00
Marcelo Matus
7862ad30d4
more enum typemaps
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6730 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-15 20:55:53 +00:00
Marcelo Matus
f6941ebf2f
add typemaps for vars +two dimensional arrays
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6729 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-15 20:55:20 +00:00
Marcelo Matus
5d741fe99f
better error message
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6708 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-10 23:00:49 +00:00
William S Fulton
f0e60adb7b
warning fixes for VC++
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6694 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-08 21:18:10 +00:00
Marcelo Matus
dd502bfae0
add missing %types
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6683 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-07 02:22:29 +00:00
Marcelo Matus
8083d4b64b
back to typemaps for size_t/ptrdiff_t. typedes don't work with std::vector
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6682 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-06 23:18:45 +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
John Lenz
af9b02bc60
The new python runtime now works from python versions 1.6.1 to 2.3.4
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6626 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-02 21:26:39 +00:00
Marcelo Matus
53ec1c3c1d
add #include <cwchar>
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6619 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-02 17:08:15 +00:00
Marcelo Matus
da29a4793d
more warns fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6618 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-02 16:37:10 +00:00
Marcelo Matus
a1b15cede0
fix warnings
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6614 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-02 08:24:22 +00:00
Marcelo Matus
30a995c239
add missing #include <string>
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6586 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-01 22:17:30 +00:00
Marcelo Matus
2d4f884ee0
fix warnings for MS compiler
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6585 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-01 22:16:52 +00:00
Marcelo Matus
ddbcd6e42d
don't use in error messages, it can generate extra entries in the symbol table
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6556 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-29 22:25:18 +00:00
Marcelo Matus
545b20712e
split declaration and definition of Director
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6544 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-29 07:30:03 +00:00
Marcelo Matus
8bc79542f8
fix for proper %apply
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6513 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-26 00:34:18 +00:00
Marcelo Matus
a3c2c2c3a9
fixes for macros + templates
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6512 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-26 00:33:36 +00:00
Marcelo Matus
72b2faf604
no more zero value accepted for pointers
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6498 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-25 19:11:25 +00:00
Marcelo Matus
5a5fe511bf
fix ref+int overload
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6496 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-25 19:04:51 +00:00
Marcelo Matus
d809efcb2f
delete unused line
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6494 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-24 06:30:40 +00:00