William S Fulton
d57e63e2a5
Add in array reference typemaps - the recently introduced pointer reference typemaps broke array references.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8119 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-29 00:16:48 +00:00
Marcelo Matus
53cf7fd217
no need for , use
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8118 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-28 23:23:42 +00:00
Marcelo Matus
03d7aba73c
cosmetics and remove extra freearg typemap
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8114 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-28 22:38:49 +00:00
Marcelo Matus
d0fbab350b
fix NEWOBJ->TMPOBJ
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8112 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-28 21:10:10 +00:00
Marcelo Matus
ad79d78875
fix char/bool types
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8110 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-28 21:08:04 +00:00
Marcelo Matus
62ecf24b23
fix missing __PTHREAD__
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8109 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-28 08:46:45 +00:00
Marcelo Matus
fd0d08fead
fix for the typemap match option
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8108 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-28 07:52:55 +00:00
Marcelo Matus
e4637545e3
add implicitconv support and cosmetics for cast rank
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8095 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 22:06:26 +00:00
Marcelo Matus
f31cdba60d
add support for more 'expressive' result values, which now can carry the old OK/ERROR state, and also the cast rank and the New/Tmp masks
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8094 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 22:04:58 +00:00
Marcelo Matus
1078fc9943
add the 'naturalvar' option/mode/feature, to allow member variables to be treated in a natural way, as the global ones. This mean use the const SWIGTYPE &(C++)/SWIGTYPE(C) typemaps instead of the plain SWIGTYPE * typemap for the set/get methods. Also add macros for CharLeak/SwigtypeLeak warnings.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8093 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 22:03:03 +00:00
Marcelo Matus
0a9ffc2c2d
add the null reference error
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8092 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 22:01:39 +00:00
Marcelo Matus
9039ead445
add the label for use inside typemaps
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8087 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 21:41:03 +00:00
Charlie Savage
885247aef7
Fixes bug 1386579. When returning a vector of pointers, do not create
...
copies of the objects that are pointed to since they may not have
copy constructors. This also is more inline with returning a vector from a method
in C++ where the pointers are copied but not what they point to.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8083 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 19:56:35 +00:00
Charlie Savage
5dd84412c3
Reimplementation of tracking objects in Ruby. Instead of passing the $track flag to
...
the methods SWIG_Ruby_ConvertPtrAndOwn and SWIG_Ruby_NewPointerObj,
now tracking information is held on swig_class. This change reduces
significantly reduces the amount of code needed in ruby.cxx, is more robust, and is
more cohesive.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8082 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 18:02:51 +00:00
William S Fulton
911613c92b
fix to set method
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8081 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 10:46:54 +00:00
Mark Gossage
810453e6b6
Mistake: numargs replaced with numinputs
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8079 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 09:58:19 +00:00
William S Fulton
6b73e09521
Fix for vector of bool
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8076 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 01:50:49 +00:00
William S Fulton
fa84803fbb
Use value_type to to more closely match the STL declarations and work around some bugs in some compilers for pointer references (when the type is a pointer)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8067 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-26 23:23:58 +00:00
William S Fulton
674b0795a4
Add pointer reference typemaps
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8064 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-26 23:09:16 +00:00
Surendra Singhi
7cfedfae05
Initial revision. Adding CFFI module.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8059 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-24 14:02:26 +00:00
William S Fulton
ef5e93c9ca
English fix
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8057 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-23 10:58:42 +00:00
William S Fulton
62e67b7fe2
New $imclassname special variable to enable changing the intermediary class name
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8056 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-23 10:25:30 +00:00
Marcelo Matus
f6a552d273
fix ifdef
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8053 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-23 09:29:26 +00:00
Marcelo Matus
5a76bc68fc
add castmode in python and cleaning the castdispatch mechanism
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8051 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-23 09:22:17 +00:00
Marcelo Matus
ba4df9e37d
more perl + cast/rank mechanism
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8049 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-23 00:46:50 +00:00
William S Fulton
5da1b88934
fix exceptions
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8046 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-23 00:14:02 +00:00
Marcelo Matus
7edc2e0a91
implement the rank-cast dispatch mechanism, which is now the default behavior in perl
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8045 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-23 00:07:49 +00:00
Marcelo Matus
84b96ab3ad
changes to support cast ranking for dispatch and/or overloading
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8044 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-23 00:06:27 +00:00
Marcelo Matus
65d7d294d4
fix unsigned cases
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8039 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-22 08:47:18 +00:00
Marcelo Matus
29d112f565
add support for __slot__ case
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8038 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-22 08:47:02 +00:00
Jason Stewart
8f66e0ced2
fixed unsigned long typemap
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8035 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-22 08:14:59 +00:00
Jason Stewart
556e5e2a58
removed ENTER - it conflicts with code that needs XS access
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8034 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-22 08:13:00 +00:00
Jason Stewart
326936e54d
cleanup up comment spelling
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8033 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-22 08:11:40 +00:00
Marcelo Matus
f023a22575
generate implicit copyctor, add -nocopyctor, and clarify the -nodefault, -nodefaultctor, -nodefautldtor options
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8030 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-22 06:26:26 +00:00
William S Fulton
36b0436a48
new $imclassname to fix bugs changing the intermediary classname
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8027 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-21 22:51:25 +00:00
Marcelo Matus
c26788de5f
add docs for new -nodefault, -nodefaultdtor and -oldnodefault
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8023 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-21 22:20:52 +00:00
Marcelo Matus
00a87c0980
Use safe Py_None in Windows or when using -DSWIG_PYTHON_SAFE_NONE
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8021 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-21 02:09:13 +00:00
Marcelo Matus
7e7191a010
fix unused for 3.3.5
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8016 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-20 21:44:56 +00:00
Marcelo Matus
dd9243c57b
fix unused for 3.3.5
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8015 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-20 21:18:44 +00:00
Marcelo Matus
c0a1c6c382
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@8013 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-20 00:35:03 +00:00
Marcelo Matus
67dafc531d
move iterator classes to pyiterator and add/test std_carray.i class
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8010 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-19 10:43:26 +00:00
Marcelo Matus
1b1df4c208
we don't need SWIGVERSION in the interface, SWIG_VERSION is already there
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8005 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-18 02:09:24 +00:00
Marcelo Matus
bbd2e60f3b
add SWIGVERSION to both the interface and the code
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8003 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-18 00:35:56 +00:00
Marcelo Matus
556e699baa
add SWIG_STD_PAIR_ASVAL
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8002 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-18 00:14:23 +00:00
Marcelo Matus
f073fc2c36
replace Py_None with safer SWIG_Py_None()
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8001 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-18 00:10:54 +00:00
Marcelo Matus
7e26be584a
export SWIG version
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8000 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-18 00:09:53 +00:00
Marcelo Matus
2618f91c95
fix error in char typemap
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7999 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-18 00:09:26 +00:00
Marcelo Matus
871ae62370
avoid name clashing obj->swig_obj and add PYTHON to python macros
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7998 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-18 00:07:44 +00:00
Marcelo Matus
aa3e2ea2d3
add faster pair typemap
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7994 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-16 18:38:19 +00:00
Marcelo Matus
3665385cb5
fix memory leaks for module init/end and kwargs
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7991 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-16 01:24:39 +00:00