William S Fulton
bdb8e46f4d
patch 1272995 from Charlie Savage - more disown support
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7431 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-11 22:12:56 +00:00
Marcelo Matus
60913495ba
cosmetic and docs changes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7422 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-10 23:28:36 +00:00
Marcelo Matus
087a208c3c
fix clientdata initialization, error detected when converter is null (protected classes)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7420 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-10 20:16:38 +00:00
Kevin Ruland
b4c945a488
Added a fourth argument (flags) to all calls to SWIG_ConvertPtr.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7415 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-07 02:06:22 +00:00
Kevin Ruland
d908e688ef
Added typemap for SWIGTYPE *DISOWN.
...
Changed all the calls to SWIG_ConvertPtr to pass a fourth argument of 0.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7414 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-07 02:06:03 +00:00
Kevin Ruland
3965256ffb
Removed the old cptr mangling method SWIG_ConvertPtr_.
...
Added support for DISOWN typemaps by adding a flag to SWIG_ConvertPtr.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7413 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-07 02:04:55 +00:00
Marcelo Matus
c74fd4442a
allow to use %define inside a %define macro
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7408 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-06 07:33:17 +00:00
Marcelo Matus
99ed184f95
adding test for binary buffer
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7407 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-06 06:31:25 +00:00
Marcelo Matus
2e2617edce
normalize cstring.i to use fragments, and add cwstring.i as a subproduct
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7406 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-06 06:22:10 +00:00
William S Fulton
e64517f6a7
Fully qualify System.Array usage
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7405 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-05 19:32:32 +00:00
Kevin Ruland
5d8b1e2a30
Added support for %minit, %mshutdown, %rinit, %rshutdown user supplied code.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7401 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-29 11:28:56 +00:00
Kevin Ruland
88736745e4
Made comment more informative.
...
Added convert_to_{double|long}_ex in the in typemaps.
Corrected the REFERENCE typemaps so they now work.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7394 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-25 18:33:26 +00:00
Kevin Ruland
ba9c6ec810
Added support for a %shutdown %{ %}, or %insert("shutdown") %{ %} block to
...
inject code into the PHP_MSHUTDOWN_FUNCTION.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7393 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-24 17:42:31 +00:00
Kevin Ruland
6c87325b91
Fairly major update to php code generation and type library. Brief summary:
...
- Revised simplified makefile generation using -make switch.
- Proper support of in, out, argout, ret typemaps.
- Function overloading with typecheck typemap support.
- Fragment inclusion in typemaps.
- Proper handling of object destructors relying on PHP's reference counting.
- Constants using consttab and varinit typemaps.
- Global variables using varinit typemaps.
- Can generate C++ bindings using either objects or no objects (-noproxy).
- Special phppointer.i typemaps for using php references for pointer passing.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7392 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-24 17:10:11 +00:00
Marcelo Matus
2ae026aa6f
fix #endif position bug #1249878
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7388 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-23 10:55:05 +00:00
William S Fulton
df738e242a
Fix incorrect usage of $owner in varout typemaps added in last commit
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7384 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-23 09:20:39 +00:00
William S Fulton
43015f7aca
Implement support for SWIGTYPE* DISOWN typemap
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7381 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-23 09:16:34 +00:00
William S Fulton
80e10942eb
%newobject support
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7377 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-18 20:36:38 +00:00
William S Fulton
f4d35f89f0
remove define for bool - needed for visual studio compilers when stl headers are used
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7374 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-17 20:39:01 +00:00
William S Fulton
e00d664c62
Intel compiler fix for __int64 typedef redefinition
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7370 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-16 21:26:44 +00:00
William S Fulton
e2c90c74a9
Support for Lua added - patch from Mark Gossage
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7364 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-15 20:44:08 +00:00
Matthias Köppe
9fa0cf3e6c
New language module: Common Lisp with UFFI.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7358 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-09 15:09:15 +00:00
Matthias Köppe
0e6d3df37d
Remove unnecessary #ifndef SWIGSEXP
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7355 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-09 14:57:00 +00:00
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