Commit graph

4,908 commits

Author SHA1 Message Date
Marcelo Matus
a275bbd30f 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/SWIG@8089 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 21:48:56 +00:00
Marcelo Matus
75e1c22229 export missing defs
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8088 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 21:48:18 +00:00
Marcelo Matus
1657c18b67 add the label for use inside typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8087 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 21:41:03 +00:00
Marcelo Matus
6a8a0d902a add 'implicitconv' support
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8086 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 21:38:14 +00:00
Marcelo Matus
6a79fef6f1 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/SWIG@8085 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 21:37:41 +00:00
Marcelo Matus
c694a41954 fix line number problem with %inline{} and recognize the 'explicit' directive in constructors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8084 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 21:26:10 +00:00
Charlie Savage
e5443e3bd4 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/SWIG@8083 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 19:56:35 +00:00
Charlie Savage
6c8dd53ee8 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/SWIG@8082 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 18:02:51 +00:00
William S Fulton
c81c25f671 fix to set method
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8081 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 10:46:54 +00:00
Mark Gossage
e0f65b85b1 fixed mistakes in the manual
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8080 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 10:01:36 +00:00
Mark Gossage
06a3a305b1 Mistake: numargs replaced with numinputs
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8079 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 09:58:19 +00:00
Charlie Savage
099e562d6e 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/SWIG@8078 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 09:24:50 +00:00
William S Fulton
b32dd09384 test vectors of primitive types
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8077 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 01:51:32 +00:00
William S Fulton
3db5c253df Fix for vector of bool
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8076 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 01:50:49 +00:00
William S Fulton
a9afd37cbf *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8075 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 01:50:21 +00:00
Surendra Singhi
1d85a5dd0d 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/SWIG@8074 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 00:20:23 +00:00
William S Fulton
4fe2be728e *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8073 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-26 23:49:51 +00:00
William S Fulton
cb973a417d Add missing entries back in
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8072 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-26 23:41:43 +00:00
William S Fulton
d551b655f2 vector wrapper runtime tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8071 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-26 23:31:28 +00:00
William S Fulton
3c4a266c54 Add vectors of pointers runtime tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8070 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-26 23:30:12 +00:00
William S Fulton
a346a8b054 remove SWIG bug workaround
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8069 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-26 23:28:17 +00:00
William S Fulton
09800ee9c4 Add in vectors of pointers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8068 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-26 23:25:54 +00:00
William S Fulton
b276adf199 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/SWIG@8067 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-26 23:23:58 +00:00
William S Fulton
b35b72933e pointer reference runtime test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8066 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-26 23:13:27 +00:00
William S Fulton
4326e443b7 Add pointer reference for runtime testing
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8065 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-26 23:11:39 +00:00
William S Fulton
a87acb5aa3 Add pointer reference typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8064 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-26 23:09:16 +00:00
Surendra Singhi
ac66843e9e fixed the copyright information.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8063 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-24 23:16:23 +00:00
Surendra Singhi
7295f37acc Added cffi module.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8062 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-24 14:31:54 +00:00
Surendra Singhi
3b637dedf0 Disabled debug output, and fixed enum declarations.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8061 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-24 14:24:13 +00:00
Surendra Singhi
5c0220b3be Adding CFFI module.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8060 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-24 14:04:42 +00:00
Surendra Singhi
b2cb043998 Initial revision. Adding CFFI module.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8059 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-24 14:02:26 +00:00
Marcelo Matus
aaedd30000 fix def_arg case broken with last &/* fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8058 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-23 18:21:18 +00:00
William S Fulton
5cf457be17 English fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8057 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-23 10:58:42 +00:00
William S Fulton
eaa82f313d New $imclassname special variable to enable changing the intermediary class name
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8056 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-23 10:25:30 +00:00
Marcelo Matus
846b944917 normalize operation, first reduce, then qualify
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8055 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-23 10:12:15 +00:00
Marcelo Matus
ef800abf8d fix template + operator()
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8054 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-23 10:10:38 +00:00
Marcelo Matus
2784abd610 fix ifdef
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8053 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-23 09:29:26 +00:00
Marcelo Matus
76ba896ed5 always disable the castmode
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8052 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-23 09:23:22 +00:00
Marcelo Matus
6bf5187168 add castmode in python and cleaning the castdispatch mechanism
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8051 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-23 09:22:17 +00:00
Marcelo Matus
485ccd5809 add more dispatch cases
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8050 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-23 01:44:36 +00:00
Marcelo Matus
6bb9dd502f more perl + cast/rank mechanism
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8049 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-23 00:46:50 +00:00
William S Fulton
afad7836cd Remove (void)_e. This is a duplicate of what already exists in the typemaps so is not needed. If there are any more exception handlers that issue the unused variable warning, add a '(void)$1;' into the throws typemap.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8048 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-23 00:28:38 +00:00
William S Fulton
4c5dbe5cff *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8047 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-23 00:16:08 +00:00
William S Fulton
c17e4cff56 fix exceptions
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8046 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-23 00:14:02 +00:00
Marcelo Matus
c0da62d128 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/SWIG@8045 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-23 00:07:49 +00:00
Marcelo Matus
ae09b70a40 changes to support cast ranking for dispatch and/or overloading
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8044 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-23 00:06:27 +00:00
Marcelo Matus
5b34d656e6 fix recursive inclusion seg fault
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8043 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-23 00:04:47 +00:00
Marcelo Matus
a1e7dad0ba fix name
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8042 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-22 23:47:08 +00:00
William S Fulton
933af2ee87 html fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8041 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-22 23:31:02 +00:00
William S Fulton
d9a9d51a4a Add note about new windows.i file
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8040 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-22 23:25:25 +00:00