Commit graph

1,771 commits

Author SHA1 Message Date
Marcelo Matus
5c381977e6 add -dump_module_tree option (the -dump_tree is too much for most of the cases)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8194 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-03 07:42:03 +00:00
Marcelo Matus
ca6875444b fix csharp RealVector problem
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8193 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-03 07:40:38 +00:00
Marcelo Matus
06835c7b3d avoid label warning
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8191 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-02 17:45:11 +00:00
Marcelo Matus
26c4ba0818 add nomatch option
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8190 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-02 17:44:31 +00:00
Marcelo Matus
306d7f4ffd fix missing filename in macro warning
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8189 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-02 17:43:58 +00:00
Marcelo Matus
fa649ba317 add swigkeys.c
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8188 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-02 17:43:23 +00:00
Marcelo Matus
8f010f1936 cleanup and fix 'fullname' option
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8182 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-02 10:38:45 +00:00
Marcelo Matus
eb3b0f6b30 add fullname to the php4 kw warning
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8181 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-02 10:18:49 +00:00
Marcelo Matus
716317c25d fix seg fault with feature:callback
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8178 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-02 09:50:50 +00:00
Marcelo Matus
71894cf4b0 using the swig keys in cwrap.c
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8177 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-02 09:49:36 +00:00
Marcelo Matus
d8df17c6f5 cosmetics + docs
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8176 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-02 09:48:20 +00:00
Marcelo Matus
55005e98ee Move rename/namewarn engine from parser.y to naming.c. The code was getting
too large to be in the parser.

Centralize the swig keys to avoid replication and wrong spellings.

Use more HashGetAttr where possible and other speed improvements
to compensate for the extra work introduced by the new rename/namewarn
mechanism.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8170 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-02 04:33:19 +00:00
Marcelo Matus
d4969b4d0e add missing hidden attr
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8169 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-02 04:21:17 +00:00
Marcelo Matus
51548d5d39 use const in HashGetAttr
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8168 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-02 04:19:43 +00:00
Marcelo Matus
66f294941c avoid % and %= operators problem
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8162 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-01 11:17:26 +00:00
Marcelo Matus
48d21c2b35 avoid multiple Len() calls
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8161 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-01 11:03:35 +00:00
Marcelo Matus
2a3e528169 fixes and docs in %rename
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8160 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-01 11:01:12 +00:00
Marcelo Matus
b034e6c266 add support for options in rename/namewarn and central methods to access the rename/warning hashs
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8150 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-31 10:41:54 +00:00
Marcelo Matus
79acadb777 add better support for encoder, command including
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8149 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-31 10:38:29 +00:00
Marcelo Matus
cd0b345ebd add naming init and other string cosmetics
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8148 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-31 10:37:28 +00:00
Kevin Ruland
1f604ca303 Extract the class name in CreateZendListDestructor in a more robust manner -
improves zend_error message.  (Thanks Ollie Betts)


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8145 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-31 03:01:56 +00:00
Marcelo Matus
c567ffaf27 fix for operator() + template + gcc 3.3.5
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8133 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-30 08:47:13 +00:00
Marcelo Matus
381596b0f3 add the copyctor feature/directive to enable automatic copy constructors. In the way, fix how default ctor/dtor are added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8129 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-30 00:04:00 +00:00
Marcelo Matus
f383985d2d fix rename constructors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8128 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-30 00:01:48 +00:00
Marcelo Matus
27fc8e577d fix features/rename for template constructors/destructors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8127 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-30 00:00:32 +00:00
Marcelo Matus
262c2f2f37 missing add SWIGINTERN
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8126 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-29 23:59:10 +00:00
Marcelo Matus
ebe7889ea9 no need for , use
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8118 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-28 23:23:42 +00:00
Marcelo Matus
1d9a1cd854 fix assert when error occurs
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8115 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-28 22:40:32 +00:00
Marcelo Matus
21ed9c1b98 fix for unnamed types
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8113 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-28 22:37:26 +00:00
Marcelo Matus
eb913fd8c4 remove debug prints
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8111 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-28 21:09:51 +00:00
Marcelo Matus
88e6edcac3 fix for the typemap match option
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8108 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-28 07:52:55 +00:00
Marcelo Matus
db5bbd2143 idenitfy the exact cast case (minimum rank possible) and dispatch inmediatly
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8106 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-28 02:34:08 +00:00
Marcelo Matus
a8198abc92 fix extra ';'
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8105 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-28 02:31:30 +00:00
Marcelo Matus
c83deb8343 add implicitconv support and cosmetics for cast rank
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8099 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 22:40:35 +00:00
Marcelo Matus
947d02d481 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/SWIG@8091 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 21:56:25 +00:00
Marcelo Matus
e967423c4b fix consistence between reduce/qualify template types
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8090 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 21:50:24 +00:00
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
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
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
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
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
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