Commit graph

1,198 commits

Author SHA1 Message Date
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
Marcelo Matus
b279ccbb03 avoid extra casting since they conflict with 'const', reported by James Bigler
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8263 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-06 23:08:06 +00:00
Marcelo Matus
957a405574 fix problem with containers reported by John Koleszar
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8262 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-06 21:37:59 +00:00
Marcelo Matus
44ce7e339c allow to predefine %begin_block,%end_block
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8260 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-06 18:00:50 +00:00
William S Fulton
e0089921c2 Fix for directors - where a class returned by value
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8253 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-06 14:09:14 +00:00
William S Fulton
36b1e5c2ac cosmetic changes removing unnecessary brackets and empty lines in generated code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8251 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-06 13:58:10 +00:00
Marcelo Matus
89e7497ac6 add support for named warning codes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8249 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-06 11:42:24 +00:00
Jason Stewart
466eeaa532 organized better for the list of supported and unsupported operators
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8245 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-06 10:51:44 +00:00
Marcelo Matus
b3a4f3382e fix iterators for old compilers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8240 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-06 02:28:01 +00:00
Marcelo Matus
4444d8e85b add corresponding wchar version of cstring.i
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8239 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-06 01:53:31 +00:00
Marcelo Matus
b67c64ba3b use consistent macro name SWIG_CSTRING_UNIMPL
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8238 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-06 01:52:19 +00:00
Marcelo Matus
9e37d0272c properly disable stl.i in target languages which do not support it
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8237 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-06 01:49:57 +00:00
Marcelo Matus
33b23a6965 clarify the use of std_except.i, now it has nothing to do with supporting the STD/STL namespace
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8236 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-06 01:49:10 +00:00
Marcelo Matus
69c14f087e add initial stl.i to ensure proper file inclussion and extensions for each language
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8232 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-06 00:37:31 +00:00
Marcelo Matus
a24a1d922f add missing ; detected by improper inclusion of this file via stl.i
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8231 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-06 00:33:03 +00:00
Marcelo Matus
20af03cd45 add missing ; detected by improper inclusion of this file via stl.i
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8230 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-06 00:27:49 +00:00
Marcelo Matus
e222e63bc2 add stl.i files for each language to prevent improper includes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8229 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-06 00:27:12 +00:00
Marcelo Matus
9b98829ffe move xmlstring.i to a more standard location
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8228 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-06 00:06:27 +00:00
William S Fulton
b2347f8594 With so many std_except.i files lying around, I've put in a check that this one isn't included for java/c# wrappers.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8224 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-05 22:21:43 +00:00
William S Fulton
c574b94787 More subtle exception fixes for C# and Java. Workarournd for the wrong std_except.i file is being %include'd from java/stl.i and csharp/stl.i.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8222 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-05 22:02:14 +00:00
Marcelo Matus
3f3c381358 fix problem with PyObject_Del and old python versions, reported by John Koleszar
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8219 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-05 19:42:40 +00:00