William S Fulton
336b50b43d
Add the optimal attribute to the out typemap for more optimal code generation when returning objects by value
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10450 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-14 22:12:31 +00:00
Matthias Köppe
c102472282
Another fix for test case apply_strings, for guile -gh, by adding explicit casts to the appropriate .
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10026 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-23 00:11:16 +00:00
Matthias Köppe
e6a07ee55b
Fix testcases apply_signed_char and apply_strings by adding explicit casts to the appropriate .
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10022 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-22 21:49:36 +00:00
William S Fulton
389b4813ca
more %apply char* fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9093 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-05 23:26:57 +00:00
William S Fulton
2d24918a97
ensure %apply with char*, unsigned char* and signed char* works
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9072 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-03 20:58:19 +00:00
William S Fulton
49be05f4fd
Common template for head of each file detailing licence, distribution and authors information
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8973 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-07 00:14:10 +00:00
Matthias Köppe
6cbd9a9b3c
[Guile -scm] Add typemaps for "long long"; whether the generated code
...
compiles, however, depends on the version and configuration of Guile.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8936 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-03 04:00:31 +00:00
Matthias Köppe
b63f275984
[MzScheme] Typemaps for all integral types now accept the full range
...
of integral values, and they signal an error when a value outside the
valid range is passed.
[Guile] Typemaps for all integral types now signal an error when a
value outside the valid range is passed.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8844 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-19 19:28:42 +00:00
Matthias Köppe
6ba7c1600b
Define and use %argument_fail, %as_voidptr.
...
Use SWIG_IsOK, SWIG_CheckState.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8622 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 20:36:57 +00:00
Matthias Köppe
edba3add6b
Add support for member function pointers.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8617 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 18:47:18 +00:00
William S Fulton
b83ac2646b
Fix for typedef to void *
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8529 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-23 21:47:16 +00:00
Matthias Köppe
b29ce687b3
Fix last change, add throw typemap for enums.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7536 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-26 21:46:23 +00:00
Matthias Köppe
8e61ee737c
Added throw typemaps.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7531 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-25 21:36:01 +00:00
Matthias Köppe
47f0f21ebf
Fix handling of anonymous-enum variables.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7276 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-11 16:36:46 +00:00
Matthias Köppe
6edd2e4561
Fix for global "const char *" variables.
...
Fix testcases arrays_dimensionless, arrays_global.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7272 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-10 11:43:46 +00:00
Matthias Köppe
c0c0689298
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/SWIG@7266 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-10 10:31:18 +00:00
Matthias Köppe
05a6e3b6da
Remove %apply for size_t; add %typecheck for size_t and ptrdiff_t
...
directly. This fixes warnings in test case wrapmacro.
Add %typecheck for SWIGTYPE. This fixes warnings in test cases
director_basic, extend_placement, overload_template,
template_default_arg, valuewrapper_opaque.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6941 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-13 12:30:39 +00:00
John Lenz
93618727bb
Cast guile enum in typemap corretly
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6928 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-01-24 03:01:09 +00:00
William S Fulton
a87c96ec8e
size_t fix
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6581 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-01 21:12:01 +00:00
Matthias Köppe
f0c73a2a80
Improvements to object-ownership management in
...
"-scm" mode.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5330 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-18 15:52:49 +00:00
Matthias Köppe
e5ac3696bc
Merged first chunk of Guile changes contributed by John Lenz.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4858 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-03 22:12:50 +00:00
Luigi Ballabio
7764b8227a
Added correct (I hope) typechecking for native scripting objects
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4821 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-05-22 13:01:44 +00:00
Luigi Ballabio
2c29e8ea58
Fixed typecheck for bools
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4348 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-02-19 08:28:59 +00:00
Dave Beazley
12a43edc2d
The great merge
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2002-11-30 22:01:28 +00:00
Matthias Köppe
b53f74cb5f
[Guile] New typemaps for FILE *.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@875 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-21 21:06:17 +00:00
Matthias Köppe
e867ed25a8
Incorporated patch #101430 , fixing bugs in the Guile module.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@852 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-18 09:35:36 +00:00
Matthias Köppe
4f2b313968
Free malloc'ed string copies after function call.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@753 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-31 15:27:58 +00:00
Matthias Köppe
d5431492ae
Fixed handling of char types.
...
Added support for optional arguments.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@739 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-30 21:53:49 +00:00
Matthias Köppe
b7055de184
Added documentation for variable and constant wrappers.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@730 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-30 19:54:45 +00:00
Matthias Köppe
74ac578ba8
File insertion now data-driven via %insert.
...
Using %define for multiline defines.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@721 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-30 08:50:06 +00:00
Matthias Köppe
597c3f8ebe
Updated Guile runtime code.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@717 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-29 17:30:50 +00:00
Matthias Köppe
aeba1f7c50
New Guile command-line argument "-procdoc", specifying procedure
...
documentation output file.
Fixed "-Linkage" parsing.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@715 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-29 12:05:01 +00:00
Matthias Köppe
3768eb73db
Major clean up in the Guile module.
...
Started new typemap-based procedure documentation system.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@707 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-28 21:53:47 +00:00
Matthias Köppe
5dd93a433c
New typemaps for ANSI C size_t' and ptrdiff_t' types.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@692 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-27 20:23:17 +00:00
Thien-Thi Nguyen
d58fac2856
Re-add INPUT/OUTPUT/BOTH typemaps (that were previously deleted).
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@414 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-12 11:33:31 +00:00
Thien-Thi Nguyen
5ee62e2b24
Fix typo.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@317 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-02 23:58:03 +00:00
Thien-Thi Nguyen
c1a67822cb
Also handle `char *' for both input and output sets.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@315 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-02 22:49:36 +00:00
Thien-Thi Nguyen
e92482e4d9
Extend map sets so as to be able to handle varin' and varout'.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@310 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-02 01:12:44 +00:00
Thien-Thi Nguyen
5d69851da6
Simplify; remove INPUT-, OUTPUT- and BOTH-related maps.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@309 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-01 23:47:35 +00:00
Thien-Thi Nguyen
1dd1a8a5b3
Assign copyright to Matthias Koeppe.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@291 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-28 23:22:03 +00:00
Thien-Thi Nguyen
db8ecd0f8d
Initial revision. (Thanks to Matthias Koeppe.)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@284 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-28 13:44:14 +00:00