Marcelo Matus
6e72e8e7b5
add the throws (...) typemap
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8385 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-12 06:10:27 +00:00
Surendra Singhi
30ba3997a0
Fixed a typo reported by Brad Anderson.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8383 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-12 05:04:22 +00:00
Marcelo Matus
059a280719
add %rename predicates
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8381 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-12 00:39:59 +00:00
Marcelo Matus
5251d6157c
better throws(...) typemap
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8377 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-11 23:12:34 +00:00
Marcelo Matus
5daf66c0db
fix memory PyObject * typemaps to avoid memory leaks with iterators
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8375 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-11 23:05:12 +00:00
Marcelo Matus
07011f2e95
finally, fix the croak/Nullch issue
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8374 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-11 20:15:39 +00:00
Marcelo Matus
b2fa89b9f9
add functional header for std::less
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8372 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-11 16:47:51 +00:00
William S Fulton
ee8bc64a74
Fix so that C++ code is not generated for C wrappers
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8361 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-10 23:22:34 +00:00
Marcelo Matus
a925249e0b
change the %catchs name to %catches
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8357 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-10 23:17:15 +00:00
Charlie Savage
ee63d5276c
Updated Ruby Exception handling. Classes that are specified in throws clauses, or are marked as %exceptionclass, are now inherited from rb_eRuntimeError. This allows instances of these classes to be returned to Ruby as exceptions. Thus if a C++ method throws an instance of MyException, the calling Ruby method will get back a MyException object. To see an example, look at ruby/examples/exception_class.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8353 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-10 19:19:19 +00:00
Marcelo Matus
e676d2f8bd
rename %throws to %catchs
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8351 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-10 18:47:51 +00:00
Marcelo Matus
06a949da6d
add the %throws directive
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8348 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-10 10:12:32 +00:00
Marcelo Matus
b604622255
move &&/|| to ignore operators and put the name __and__ and __or__ back to represent &/|
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8347 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-10 08:18:53 +00:00
Marcelo Matus
75d64a4018
add native bool support
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8345 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-10 07:27:12 +00:00
Charlie Savage
7d44f269fb
Wrapped customer error classes in function so they work in C and C++
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8343 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-10 03:38:08 +00:00
Marcelo Matus
5b113061c2
add croak(Nullch) again and propagate exception as needed, please jason, check this one
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8342 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-10 02:48:01 +00:00
Charlie Savage
7e96a9e2d5
Added SWIG_ObjectPreviouslyDeletedError for Ruby. This error happens when a Ruby object's underlying C++ object has been freed. This can happen if a Ruby/C++ object is put into a C++ container that then frees its objects when it goes out of scope, leaving a dangling reference in Ruby.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8340 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-10 00:52:37 +00:00
Charlie Savage
e3822ad9d4
Rearranged the code a bit to store a global reference to the Ruby hash table delete method, thereby making it possible to look it up once instead of each time SWIG_RubyRemoveTracking is called.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8339 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-10 00:30:43 +00:00
Marcelo Matus
6b5d5ae8a0
fix for director_exception.i in ruby, ie, null ref in a 'Type' typemap is considered a TypeError
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8336 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-09 23:14:08 +00:00
William S Fulton
9883f6215a
BigInteger fixes - Bug 1398394
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8334 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-09 23:10:27 +00:00
Charlie Savage
180a2372dc
Attemp #2 at defining rb_eNullReferenceError. This is done for C++, but for C
...
a more generic rb_eRuntimeError is thrown instead.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8333 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-09 22:17:06 +00:00
Charlie Savage
0fe0086def
Removed defining rb_eNullReferenceError since this doesn't work in C - it
...
causes a 'initializer element is not constant" error.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8326 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-09 20:11:37 +00:00
Charlie Savage
a023f56b0c
Removed duplicate definition of struct Guard.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8325 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-09 20:00:56 +00:00
Charlie Savage
384de7d10b
Added Ruby support for SWIG_NullReferenceError.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8324 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-09 19:43:26 +00:00
Marcelo Matus
1ee069a150
allow the result code to be passed to the error routine
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8323 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-09 19:12:51 +00:00
Mikel Bancroft
502d6473e1
01/09/2006: mutandiz
...
Fixes a number of SEGVs primarily in the handling of
various anonymous types. Found in a pass through the
swig test-suite. Still more to do here, but this is a
good checkpoint.
Adds -cwrap and -nocwrap as an allegrocl specific
command-line argument. Controls generating of a C
wrapper file when wrapping C code. By default only a
lisp file is created for C code wrapping.
Doc updates for the command-line arguments and fixes as
pointed out on swig-devel
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8322 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-09 18:49:23 +00:00
Marcelo Matus
7f8718c3c8
fix missing _PyInstance_Lookup for versions < 2.3
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8321 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-09 17:44:59 +00:00
Marcelo Matus
a05ba722d7
add %delobject, which is the equivalent of %newobject but for functions that delete an element. This allows to properly disown the argument, as the %newobject directive allows to 'own' the object
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8318 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-09 17:35:04 +00:00
Mark Gossage
4b4a6aa09d
applied neomantra's patches & fixed C89 bug #1356574
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8316 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-09 07:59:11 +00:00
Marcelo Matus
2bde7c2c3b
map iterators now use the native PySwigIterator, which is very very good for large maps, since no more temporals key/value tuples are needed
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8311 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-09 00:40:44 +00:00
William S Fulton
5ea4b63548
Resort back to SWIG-1.3.27 STL exception handling. The generic std_except.i does not work due to some problem with SWIG_exception
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8306 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-08 21:21:24 +00:00
William S Fulton
db210a1fa0
Make sure guile doesn't use this file either. It does not work for Guile.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8305 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-08 21:19:55 +00:00
William S Fulton
742afce44c
_std_deque.i moved from Lib directory
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8304 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-08 20:17:06 +00:00
William S Fulton
2387c32254
Each target language now has its own std_deque.i like the other STL wrappers.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8303 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-08 20:08:44 +00:00
William S Fulton
f2eeedf1c0
Make sure this file is not included by Java or C# (std_deque.i) was using it after recent commits
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8302 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-08 20:07:51 +00:00
William S Fulton
dae3d70612
moved from Lib directory
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8301 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-08 20:05:23 +00:00
Marcelo Matus
68521b1c74
add value iterator
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8295 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-08 09:30:53 +00:00
Marcelo Matus
679d147937
update as std::map
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8294 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-08 07:48:47 +00:00
Marcelo Matus
972974c0e3
fix to avoid copies when the wrapper class exists
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8293 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-08 07:08:21 +00:00
Marcelo Matus
e8d67c80f3
fix to avoid copies when the wrapper class exists, and to accept std::map pointers
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8292 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-08 07:04:45 +00:00
Marcelo Matus
cf431d3b47
add buildnone option and cosmetics, including sorting options by name
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8290 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-08 06:58:49 +00:00
Marcelo Matus
c4337c7356
add operator aliases
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8277 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-07 09:36:58 +00:00
Marcelo Matus
373a1aa719
use simpler %ignoreoperator directive
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8276 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-07 07:58:15 +00:00
Marcelo Matus
e73b4e1036
fix typo
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8275 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-07 07:15:58 +00:00
Marcelo Matus
6e95b6433b
add macros/names to avoid numeric warning codes. use them in tcl,perl,ruby and python
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8274 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-07 06:59:32 +00:00
Marcelo Matus
f1f9068a62
unsigned/signed casts
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8268 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-07 00:59:30 +00:00
Marcelo Matus
3cae8e09ba
more test cases, less cast operations
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8267 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-07 00:58:14 +00:00
Marcelo Matus
a29cb3bb02
more test cases, less cast operations
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8266 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-07 00:57:44 +00:00
Marcelo Matus
76c06cc3bb
more test cases, less cast operations
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8265 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-07 00:28:51 +00:00
Marcelo Matus
a9cc475443
avoid signed/unsigned warns
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8264 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-06 23:13:12 +00:00