Commit graph

830 commits

Author SHA1 Message Date
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
John Lenz
c5f25b9168 Add some chicken test-suite entries for overloaded functions
(which now work correctly) and update the chicken documentation


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7146 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-04-07 00:39:28 +00:00
John Lenz
c70b62fee2 Some chicken bug fixes for overloaded -proxy methods
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7145 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-04-05 20:39:57 +00:00
John Lenz
9203328908 Chicken: a few bug fixes, a new example and some new test suite runme, and some doc updates
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7143 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-04-05 17:48:31 +00:00
Marcelo Matus
1122c6ac4f allow to use iostream and sstream without wchar support, as pointed by Scott
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-04-03 03:16:25 +00:00
Marcelo Matus
5187b75674 allow to use iostream and sstream without wchar support, as pointed by Scott
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7139 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-04-02 20:24:13 +00:00
Marcelo Matus
9c225a1a54 allow to use iostream and sstream without wchar support, as pointed by Scott
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7138 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-04-02 19:06:31 +00:00
Marcelo Matus
9d50d14df3 allow to use iostream and sstream without wchar support, as pointed by Scott
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7137 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-04-02 18:52:10 +00:00
William S Fulton
a7813a1bf5 Consistent warning 470 across all languages
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7126 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-30 22:30:08 +00:00
William S Fulton
3bd2739ab6 Consistent warning 470 across all languages
Fix const ref directorout typemaps


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7125 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-30 22:27:53 +00:00
William S Fulton
6ca3983f0b Fix last fix!
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7124 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-30 22:26:31 +00:00
William S Fulton
67c4c4c91c Consistent warning 470 across all languages
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7123 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-30 22:24:44 +00:00
Matthias Köppe
3da4dfe293 Fix last change.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7122 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-30 19:55:12 +00:00
Matthias Köppe
334807fdce Patch from Hans Oesterholt for supporting MzScheme 30x.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7120 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-30 11:43:22 +00:00
John Lenz
b3eb733c32 Improvements to the chicken module: tinyclos works with overloaded methods and some other changes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7118 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-30 06:33:16 +00:00
William S Fulton
070993e828 director typemaps added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7109 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-29 20:51:58 +00:00
William S Fulton
bc5eef3d2e half working director typemaps removed
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7108 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-29 20:51:28 +00:00
William S Fulton
3295fb32c2 Fix #1124490. Fix Perl macro clashes when using Visual Studio's STL string.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7097 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-21 22:44:53 +00:00
William S Fulton
c654b0807c Updated method names since move to new pending exception approach
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7089 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-19 23:59:02 +00:00
Marcelo Matus
ec057c2498 fix prototype warning
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7086 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-19 21:38:32 +00:00