Commit graph

836 commits

Author SHA1 Message Date
Marcelo Matus
11b935315a fix for long long types and old Tcl versions
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7304 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-17 23:15:51 +00:00
Marcelo Matus
d2139b5b59 more fixes for python 1.5.2
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7302 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-17 19:23:16 +00:00
Marcelo Matus
327bbc06ac more fixes for python 1.5 +gcc2.96
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7301 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-17 19:12:21 +00:00
Marcelo Matus
50557fb547 more fixes for 1.5
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7299 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-17 01:41:22 +00:00
Marcelo Matus
e926d03dca add patch 1221362 for pyhton 2.1
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7295 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-17 00:20:12 +00:00
William S Fulton
48f6a95092 contract support - patch from Hans Oesterholt-Dijkema
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7292 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-16 21:22:39 +00:00
Marcelo Matus
765013d984 fix unsigned char case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7289 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-13 16:43:34 +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
William S Fulton
904e528dd9 Fix early garbage collection for alternative char * typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7275 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-10 23:29:58 +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
cffd866faa Fix typo.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7268 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-10 11:13:02 +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
William S Fulton
4fea1d827a Various fixes for Visual C++ 7.1 and Sun Studio 10
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7255 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-03 20:52:16 +00:00
William S Fulton
7f149959c9 Sun Studio 10 can handle templates properly
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7254 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-03 20:50:26 +00:00
William S Fulton
388fbad517 Fix #1211353 for -ve enum values
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7248 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-02 21:46:08 +00:00
William S Fulton
815355b964 Uniform handling of SWIGEXPORT across SWIG.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7234 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-27 22:40:58 +00:00
William S Fulton
de35943f2f 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/SWIG@7232 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-27 22:37:29 +00:00
William S Fulton
2c68f72234 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/SWIG@7231 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-27 22:35:41 +00:00
Marcelo Matus
a2f5af9ddd fix #1188207 and uniform the error/null/none handling
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7225 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-26 20:43:33 +00:00
Marcelo Matus
645c1698fa fix #1207803
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7224 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-26 20:42:24 +00:00
William S Fulton
4c4e3f47ad added missing constructors for std::pair
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7221 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-25 21:34:39 +00:00
William S Fulton
b7ff842e59 Added std::pair wrappers for C#
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7220 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-25 21:33:53 +00:00
William S Fulton
1f6afbffa6 Added std::map wrappers for C#
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7219 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-25 21:33:14 +00:00
William S Fulton
7984c13d4b more STL support
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7206 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-21 20:43:46 +00:00
William S Fulton
e00fede3f9 wstring typemaps moved from std_string.i std_wstring.i
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7205 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-21 20:27:51 +00:00
William S Fulton
89e581e19c 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/SWIG@7203 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-21 00:09:18 +00:00
William S Fulton
b417ef575e tcl long long overloading fix - bug #1191835, patch from Jeroen Dobbelaere
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7202 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-20 23:51:31 +00:00
William S Fulton
6ac7bd813b remove debug (bug #1196755)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7200 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-20 23:24:13 +00:00
William S Fulton
71646dcd81 more fixes for gcc -fstrict-aliasing -Wall
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7193 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-13 23:51:16 +00:00
William S Fulton
94e6c86d06 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/SWIG@7192 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-13 23:14:35 +00:00
William S Fulton
07019d1a97 minor warning fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7189 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-13 21:36:58 +00:00
William S Fulton
a0712b227f 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/SWIG@7184 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-12 20:19:47 +00:00
William S Fulton
015c75b224 Mods to remove warnings that mono-1.1.7 produces
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7179 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-06 22:47:32 +00:00
William S Fulton
c2e9c01ab1 Scott Michel director patch, typemap consolidation
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7174 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-04-28 22:11:06 +00:00
William S Fulton
f7cad9956b 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/SWIG@7171 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-04-28 21:58:24 +00:00
Marcelo Matus
6f189454fe fix directorin typemap, bug #1179300
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7158 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-04-17 06:50:31 +00:00
John Lenz
b599732cdc 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/SWIG@7155 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-04-15 05:23:14 +00:00
John Lenz
56ac2ae4b1 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/SWIG@7146 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-04-07 00:39:28 +00:00
John Lenz
211ddefb74 Some chicken bug fixes for overloaded -proxy methods
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7145 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-04-05 20:39:57 +00:00
John Lenz
7e55b36764 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/SWIG@7143 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-04-05 17:48:31 +00:00
Marcelo Matus
06833547b7 allow to use iostream and sstream without wchar support, as pointed by Scott
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-04-03 03:16:25 +00:00
Marcelo Matus
73ac0670b0 allow to use iostream and sstream without wchar support, as pointed by Scott
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7139 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-04-02 20:24:13 +00:00
Marcelo Matus
d1bec74c9c allow to use iostream and sstream without wchar support, as pointed by Scott
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7138 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-04-02 19:06:31 +00:00
Marcelo Matus
5702970de9 allow to use iostream and sstream without wchar support, as pointed by Scott
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7137 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-04-02 18:52:10 +00:00
William S Fulton
506d1a02b9 Consistent warning 470 across all languages
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7126 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-30 22:30:08 +00:00
William S Fulton
aa44d06e90 Consistent warning 470 across all languages
Fix const ref directorout typemaps


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7125 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-30 22:27:53 +00:00
William S Fulton
a79b16c34f Fix last fix!
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7124 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-30 22:26:31 +00:00
William S Fulton
1b00d2e007 Consistent warning 470 across all languages
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7123 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-30 22:24:44 +00:00
Matthias Köppe
c07de8d45f Fix last change.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7122 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-30 19:55:12 +00:00
Matthias Köppe
c4de71d6e5 Patch from Hans Oesterholt for supporting MzScheme 30x.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7120 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-30 11:43:22 +00:00