Commit graph

5,097 commits

Author SHA1 Message Date
Marcelo Matus
4c18b66923 idenitfy the exact cast case (minimum rank possible) and dispatch inmediatly
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8106 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-28 02:34:08 +00:00
Marcelo Matus
d480e004ff fix extra ';'
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8105 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-28 02:31:30 +00:00
Marcelo Matus
ab5fe1a4a5 add 'match' typemap option
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8104 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 23:55:17 +00:00
Marcelo Matus
c5dd9cfe0b add more time for slow machines
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8103 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 23:38:41 +00:00
Marcelo Matus
2ea2a973f3 silence warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8102 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 23:38:07 +00:00
Marcelo Matus
eae6be789b add more cases
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8101 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 23:37:40 +00:00
Marcelo Matus
07d8e6e980 add implicitconv and others
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8100 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 23:35:08 +00:00
Marcelo Matus
218adfa960 add implicitconv support and cosmetics for cast rank
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8099 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 22:40:35 +00:00
Marcelo Matus
70bb5455a6 add more cases and flag for valgrind
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8098 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 22:38:27 +00:00
Marcelo Matus
c23dd13d92 silence warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8097 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 22:37:15 +00:00
Marcelo Matus
a5566df2ef add more cases
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8096 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 22:35:54 +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
38729f5e5b add the 'match' option to force,for example, that the 'freearg' typemap only get applied when it mathes the 'in' typemap type
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8091 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 21:56:25 +00:00
Marcelo Matus
15b801dbbb fix consistence between reduce/qualify template types
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8090 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 21:50:24 +00:00
Marcelo Matus
f804cc18ab 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.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8089 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 21:48:56 +00:00
Marcelo Matus
b0dce7e7b1 export missing defs
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8088 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 21:48:18 +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
Marcelo Matus
667cd6b8ba add 'implicitconv' support
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8086 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 21:38:14 +00:00
Marcelo Matus
cdc6c6ed4e add new warnings for possible leaks with the SWIGTYPE*/& typemaps and using 'ptr/refs' with directorout types
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8085 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 21:37:41 +00:00
Marcelo Matus
6baa54ce6e fix line number problem with %inline{} and recognize the 'explicit' directive in constructors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8084 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 21:26:10 +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
84548a071f fixed mistakes in the manual
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8080 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 10:01:36 +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
Charlie Savage
e42e5b01ff Changed a variable name from cdecl to cdecl_. The reason for the change
is this caused VC++ 8.0 to throw an error when trying to compile SWIG.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8078 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 09:24:50 +00:00
William S Fulton
b98cd3362a test vectors of primitive types
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8077 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 01:51:32 +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
b4ee03629e *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8075 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 01:50:21 +00:00
Surendra Singhi
fef7bcfeef Applied the patch by Roger Sen Montero to add the :name option in the
ffi:def-c-var definition.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8074 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 00:20:23 +00:00
William S Fulton
b3fddd1908 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8073 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-26 23:49:51 +00:00
William S Fulton
8fbc45a65e Add missing entries back in
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8072 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-26 23:41:43 +00:00
William S Fulton
94170dd0b0 vector wrapper runtime tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8071 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-26 23:31:28 +00:00
William S Fulton
012212b651 Add vectors of pointers runtime tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8070 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-26 23:30:12 +00:00
William S Fulton
d5dbb5e2d1 remove SWIG bug workaround
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8069 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-26 23:28:17 +00:00
William S Fulton
b5acc30241 Add in vectors of pointers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8068 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-26 23:25:54 +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
33a81636be pointer reference runtime test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8066 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-26 23:13:27 +00:00
William S Fulton
1822bbc20e Add pointer reference for runtime testing
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8065 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-26 23:11:39 +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
753bbe0582 fixed the copyright information.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8063 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-24 23:16:23 +00:00
Surendra Singhi
b8a315f3fb Added cffi module.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8062 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-24 14:31:54 +00:00
Surendra Singhi
a3539a39a7 Disabled debug output, and fixed enum declarations.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8061 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-24 14:24:13 +00:00
Surendra Singhi
2cb50a7a84 Adding CFFI module.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8060 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-24 14:04:42 +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
Marcelo Matus
a92239d201 fix def_arg case broken with last &/* fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8058 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-23 18:21:18 +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