Commit graph

256 commits

Author SHA1 Message Date
Mark Rose
c14abb83fe Complex director typemap fixes (python)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5026 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-30 08:08:43 +00:00
Mark Rose
c1b57370b6 Abstract directors and typemap fixes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5024 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-30 05:03:34 +00:00
William S Fulton
7664465183 Support for throwing C# exceptions from C/C++
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5019 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-29 20:05:15 +00:00
William S Fulton
4c995939ca Support for throwing C# exceptions from C/C++:
- throws typemaps implemented.
- SWIGTYPE& and SWIGTYPE typemaps throw a NullReferenceException if a C# null is passed as a parameter


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5018 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-29 20:03:26 +00:00
William S Fulton
255f6cae9e Support for throwing C# exceptions from C/C++
Fix for pinvoke methods calling convention on Windows (__stdcall). The default calling conventions in the C# 'extern' method now matches the C function calling convention declaration.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5017 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-29 20:02:10 +00:00
William S Fulton
aac99296a7 Cleaned up new warnings introduced by prev patch
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5012 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-22 22:26:39 +00:00
William S Fulton
ba028fde8a Reworked std::string typemaps.
Fixes various string in std namespace problems.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5010 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-19 12:42:09 +00:00
William S Fulton
57e37945ec vector<std::string> specialization added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5008 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-19 09:55:49 +00:00
Luigi Ballabio
c48f73d7aa Allow for strings with embedded zeros
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5005 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-17 12:00:17 +00:00
Luigi Ballabio
10138e60b9 Typemap for size_t applied to std::size_t
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5004 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-17 11:52:31 +00:00
Dave Beazley
7b52266e7d Fixed [ 787432 ] long param handled as int
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4996 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-15 17:47:33 +00:00
Mark Rose
f3e1293b6f Director typemap cleanup and return by value
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4989 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-11 02:38:45 +00:00
Dave Beazley
b0b0a852b8 Improvements to array handling.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4979 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-07 16:16:00 +00:00
William S Fulton
804504a3a6 Minor warning fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4975 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-07 08:31:10 +00:00
William S Fulton
479d65e5ac Reduced number of occurrences of annoying warning to 1, as reported by Gerald Williams using perl-5.8.0 and GCC3 onwards on Cygwin:
In function `int SWIG_ConvertPtr(SV*, void**,  swig_type_info*, int)':
warning: cast to pointer from integer of different size


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4974 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-04 22:32:02 +00:00
William S Fulton
02f3bfdbf4 SwigValueWrapper fixes
- memory leak fix
- default arguments for parameters that are classes bug fix


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4971 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-07-31 21:44:35 +00:00
Dave Beazley
b5b4699cde Improved error message. Contributed by Zooka.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4964 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-07-28 22:04:15 +00:00
Logan Johnson
af81134fde Correct macro name in Lib/ruby/std_pair.i; was "specialize_std_map_on_both",
should be "specialize_std_pair_on_both".


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4963 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-07-28 14:20:24 +00:00
Luigi Ballabio
8c35d20048 std::pair added (but not very much tested)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4959 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-07-10 12:42:42 +00:00
William S Fulton
b03c08d211 New typemap attribute which specifies the destructor wrapper method name thus making the wrapper method name configurable.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4933 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-29 21:52:26 +00:00
William S Fulton
48274f3645 Destructor syntax for finalize method
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4916 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-20 21:18:26 +00:00
Matthias Köppe
599cf52a50 Moved #defines for SWIG_malloc, SWIG_ConvertPtr et al. from %runtime
block into runtime file.
This fixes the build of the runtime library.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4912 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-18 13:16:23 +00:00
Matthias Köppe
464b80d54f (SWIG_Guile_Init): Cast some strings to char* to avoid const-ness warnings.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4911 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-17 08:51:42 +00:00
William S Fulton
01b89c2446 Few more JCALLx macros
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4906 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-13 08:27:33 +00:00
William S Fulton
6dcd1966d0 protected/private destructors fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4903 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-12 19:47:24 +00:00
William S Fulton
11395c5a82 C# typemap name change twiddle
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4897 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-12 12:32:08 +00:00
William S Fulton
fb2113a8c5 Corrected comment on the type typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4896 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-12 12:30:17 +00:00
William S Fulton
3c2f9d8057 A number of the C# features, pragmas and typemaps have had their names changed.
They no longer have java or jni in their names. CHANGES file has complete list.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4890 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-11 19:52:27 +00:00
William S Fulton
f15e005915 New typemaps csinterfaces_base and csinterfaces_derived replace
the javainterfaces typemap. Also fixes the peculiarity of all classes
in an inheritance chain individually deriving from the IDisposable
interface.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4884 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-10 23:09:47 +00:00
William S Fulton
3695a3e0db Dispose method now prevents finalizer from being called
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4883 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-10 22:15:09 +00:00
Matthias Köppe
241eeec6ba Merged MzScheme changes contributed by John Lenz.
Minor build changes to fix MzScheme/C++ test cases.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4881 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-10 21:58:02 +00:00
Matthias Köppe
919fa9ab45 Merged MzScheme changes contributed by John Lenz.
Minor build changes to fix MzScheme/C++ test cases.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4880 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-10 21:54:01 +00:00
William S Fulton
b643048800 cildispose and cildisposeoverride typemaps replaced by
csdestruct_base and csdestruct_derived typemaps. The delete()
method has been removed and its functionality put into these
typemaps designed for the Dispose method.
New typemaps: csfinalize for finalizers.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4877 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-10 21:43:58 +00:00
William S Fulton
9352654318 New typemaps: javadestruct_base and javadestruct_derived
for the C++ destructor wrapper. The _base version gets used by
classes at the top of an inheritance chain and the _derived
version gets used by other classes.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4876 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-10 21:40:26 +00:00
Tiger Feng
dde9afd927 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4875 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-10 21:12:35 +00:00
Art Yerkes
310751dc48 Added class template support (removes text of ocaml class definition from swig
executable).  Now, changes to the implementation of classes can be made without
affecting SWIG itself.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4872 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-08 03:49:09 +00:00
Art Yerkes
d2cd68c7cc Typedef_mptr test (with runme).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4871 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-06 16:19:28 +00:00
Art Yerkes
a1ffa6afda Added minherit test + runme.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4870 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-06 15:16:32 +00:00
Art Yerkes
0f99021074 All test cases work.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4868 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-06 04:29:38 +00:00
Art Yerkes
0d37f3609d Three test cases remaining. Gotta fix em all!
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4867 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-06 04:01:56 +00:00
Art Yerkes
d70fd338be Four failed test cases remaining.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4866 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-06 02:04:00 +00:00
Art Yerkes
2289a0009a Fixed two test cases.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4865 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-06 01:42:57 +00:00
Logan Johnson
615ff6cc1b *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4863 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-04 23:36:13 +00:00
Matthias Köppe
34ea7f03ef Merged first chunk of Guile changes contributed by John Lenz.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4858 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-03 22:12:50 +00:00
Logan Johnson
997070860e Modified how the SWIG_DIRECTOR_EXCEPTION class (and its subclasses) are
implemented for the Ruby module. Now the SWIG_DIRECTOR_EXCEPTION object
stores a reference to the Ruby exception instance.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4856 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-03 17:54:53 +00:00
Logan Johnson
6db7df0733 Fixed array typemaps.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4850 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-02 22:13:52 +00:00
Logan Johnson
7740019f91 Added include of <assert.h> for Ruby's director.swg.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4847 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-02 19:35:15 +00:00
Art Yerkes
fdf7d97330 Added <assert.h>. I forgot it and GCC-3.3 no longer includes it from
any other header I use.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4845 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-02 02:36:46 +00:00
William S Fulton
c3b517df76 Removed varin typemaps for SWIGTYPE[] (dimensionless arrays).
These were useless as they just produced a setter that gave a runtime error.
Exposes some missing varin SWIGTYPE[ANY] typemaps - they show up in the test-suite.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4843 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-01 22:59:10 +00:00
William S Fulton
00a4f2ee32 Removed globalin and memberin typemaps for dimensionless arrays
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4842 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-01 22:54:53 +00:00