William S Fulton
49639577e0
use exception specification instead of %exception to handle STL error checking
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7352 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-27 20:09:42 +00:00
William S Fulton
4de8453fdc
remove duplicate csout typemap
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7351 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-25 21:05:58 +00:00
Surendra Singhi
77f1d0010e
Fixed the double float type.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7350 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-23 07:06:31 +00:00
William S Fulton
f2869c5565
null attribute support in out typemap for $null special variable
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7346 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-22 21:50:31 +00:00
William S Fulton
c563916ddb
Stop using SWIG_exception. It is flawed.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7343 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-22 21:33:32 +00:00
William S Fulton
14dd70ca4f
C# and Java SWIG_exception changes. Previous mods didn't work with compilers that can't handle empty macro parameters. Now SWIG_exception will only work in typemaps using {} delimeters.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7342 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-22 21:27:33 +00:00
Marcelo Matus
c9f4d68f96
add set __getitem__ method, this allows python iterator syntax to work, as in 'for i in a_set:...'
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7338 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-19 09:36:08 +00:00
Surendra Singhi
151913f03f
Now only basic types are provided, and changed the name "ffitype" to "in. We now do recursive type conversion in clisp.cxx so no need to provide pointer and array types.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7335 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-18 06:23:41 +00:00
Marcelo Matus
9148f0cb38
fix for #1233773
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7331 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-15 21:23:40 +00:00
Surendra Singhi
b2427b7d4a
Initial revision for clisp support.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7325 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-13 08:03:21 +00:00
Marcelo Matus
c66b71417c
add Scott's patches for directors: void return, directormap register, better error messages
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7324 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-06 21:02:22 +00:00
Marcelo Matus
bba18606ea
change the Int/Long check order, just in case since 'int' could be too permissive
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7312 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-21 18:55:43 +00:00
Marcelo Matus
a663b62852
remove the _AS_XX macros, just in case the Check methods are too permissive
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7311 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-21 18:52:04 +00:00
Marcelo Matus
a3c5c637b8
fix for long long types and old Tcl versions
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7304 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-17 23:15:51 +00:00
Marcelo Matus
a5b1fde294
more fixes for python 1.5.2
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7302 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-17 19:23:16 +00:00
Marcelo Matus
7b1b141ee4
more fixes for python 1.5 +gcc2.96
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7301 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-17 19:12:21 +00:00
Marcelo Matus
2af5736adc
more fixes for 1.5
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7299 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-17 01:41:22 +00:00
Marcelo Matus
b8871239d3
add patch 1221362 for pyhton 2.1
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7295 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-17 00:20:12 +00:00
William S Fulton
001d27ace6
contract support - patch from Hans Oesterholt-Dijkema
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7292 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-16 21:22:39 +00:00
Marcelo Matus
cba774ec97
fix unsigned char case
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7289 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-13 16:43:34 +00:00
Matthias Köppe
10e5365ba0
Fix handling of anonymous-enum variables.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7276 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-11 16:36:46 +00:00
William S Fulton
3f71da7050
Fix early garbage collection for alternative char * typemaps
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7275 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-10 23:29:58 +00:00
Matthias Köppe
624cb6e892
Fix for global "const char *" variables.
...
Fix testcases arrays_dimensionless, arrays_global.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7272 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-10 11:43:46 +00:00
Matthias Köppe
5c04ab5d23
Fix typo.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7268 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-10 11:13:02 +00:00
Matthias Köppe
21f3f0e81b
Fix typecheck for SWIGTYPE.
...
This fixes the following bug:
Luigi Ballabio wrote:
> The following interface produces Guile wrappers which
> do not compile:
>
> %module Foo
> class Foo {};
> class Bar : public Foo {};
> void baz(Foo f);
>
> The reason seems to be the function baz() taking a Foo by value, which
> causes functions to be emitted in the CONVERSIONS section such as:
>
> static void *_BarTo_Foo(void *x) {
> return (void *)((Foo) ((Bar) x));
> }
> static void *_p_BarTo_p_Foo(void *x) {
> return (void *)((Foo *) ((Bar *) x));
> }
>
> of which the former doesn't compile; on the other hand, only the second
> function is emitted if baz() takes a Foo by const reference.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7266 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-10 10:31:18 +00:00
William S Fulton
15a791cfb8
Various fixes for Visual C++ 7.1 and Sun Studio 10
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7255 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-03 20:52:16 +00:00
William S Fulton
a67f27efeb
Sun Studio 10 can handle templates properly
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7254 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-03 20:50:26 +00:00
William S Fulton
ad57e978d4
Fix #1211353 for -ve enum values
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7248 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-02 21:46:08 +00:00
William S Fulton
c25d1c8e35
Uniform handling of SWIGEXPORT across SWIG.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7234 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-27 22:40:58 +00:00
William S Fulton
ebd95c4189
Uniform SWIGEXPORT handling across SWIG (was DllExport in C# module)
...
SWIGSTDCALL moved to swiglabels.swg.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7232 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-27 22:37:29 +00:00
William S Fulton
d6d5cc11e9
Uniform SWIGEXPORT handling, reverting back to SWIG-1.3.24 approach, plus changes which remove unnecessary Borland specific handling.
...
SWIGSTDCALL available for all languages and can be overidden by users.
General tidy up.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7231 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-27 22:35:41 +00:00
Marcelo Matus
44af5819fd
fix #1188207 and uniform the error/null/none handling
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7225 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-26 20:43:33 +00:00
Marcelo Matus
7f31cd5d0f
fix #1207803
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7224 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-26 20:42:24 +00:00
William S Fulton
6f21f0d74a
added missing constructors for std::pair
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7221 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-25 21:34:39 +00:00
William S Fulton
7d1e70ab8c
Added std::pair wrappers for C#
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7220 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-25 21:33:53 +00:00
William S Fulton
d10583144d
Added std::map wrappers for C#
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7219 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-25 21:33:14 +00:00
William S Fulton
9d14ce782e
more STL support
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7206 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-21 20:43:46 +00:00
William S Fulton
57b965c3f9
wstring typemaps moved from std_string.i std_wstring.i
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7205 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-21 20:27:51 +00:00
William S Fulton
2ba3b19c02
Fix for methods with similar names when showing list of names on error - bug #1191828 . Patch from Jeroen Dobbelaere.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7203 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-21 00:09:18 +00:00
William S Fulton
c5b8ac0fc7
tcl long long overloading fix - bug #1191835 , patch from Jeroen Dobbelaere
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7202 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-20 23:51:31 +00:00
William S Fulton
893ce3f5ca
remove debug (bug #1196755 )
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7200 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-20 23:24:13 +00:00
William S Fulton
815f9f0265
more fixes for gcc -fstrict-aliasing -Wall
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7193 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-13 23:51:16 +00:00
William S Fulton
09a0062404
Fixes to remove "dereferencing type-punned pointer will break strict-aliasing rules" warnings in C wrappers when compiling C code with 'gcc -Wall -fstrict-aliasing'. Patch from Michael Cahill.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7192 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-13 23:14:35 +00:00
William S Fulton
61168282b6
minor warning fix
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7189 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-13 21:36:58 +00:00
William S Fulton
43a6363856
C# attribute support added - %csattributes feature, %csattributes typemap
...
and inattributes & outattributes typemap attributes for the imtype and cstype typemaps.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7184 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-12 20:19:47 +00:00
William S Fulton
18d76c6d27
Mods to remove warnings that mono-1.1.7 produces
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7179 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-06 22:47:32 +00:00
William S Fulton
e6ceb122a6
Scott Michel director patch, typemap consolidation
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7174 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-04-28 22:11:06 +00:00
William S Fulton
9752bc2b97
over eager garbage collection fix - use HandleRef instead of IntPtr to hold the C++ pointer
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7171 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-04-28 21:58:24 +00:00
Marcelo Matus
062a882c16
fix directorin typemap, bug #1179300
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7158 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-04-17 06:50:31 +00:00
John Lenz
420ba48099
Add a whole bunch of chicken runme scripts, and fix the bugs exposed by those scripts
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7155 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-04-15 05:23:14 +00:00