Mark Rose
94e1afc19d
Complex director typemap fixes (python)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5026 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-30 08:08:43 +00:00
Mark Rose
ec6251e86d
Abstract directors and typemap fixes.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5024 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-30 05:03:34 +00:00
William S Fulton
dbb7096b05
Support for throwing C# exceptions from C/C++
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5019 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-29 20:05:15 +00:00
William S Fulton
f2a45a16d7
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/SWIG@5018 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-29 20:03:26 +00:00
William S Fulton
4a8e40a3ae
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/SWIG@5017 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-29 20:02:10 +00:00
William S Fulton
017b28a8be
Cleaned up new warnings introduced by prev patch
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5012 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-22 22:26:39 +00:00
William S Fulton
2f38702eb6
Reworked std::string typemaps.
...
Fixes various string in std namespace problems.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5010 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-19 12:42:09 +00:00
William S Fulton
61e4fa4202
vector<std::string> specialization added
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5008 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-19 09:55:49 +00:00
Luigi Ballabio
8c6a8371d1
Allow for strings with embedded zeros
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5005 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-17 12:00:17 +00:00
Luigi Ballabio
62741dd03e
Typemap for size_t applied to std::size_t
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5004 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-17 11:52:31 +00:00
Dave Beazley
2292d549fd
Fixed [ 787432 ] long param handled as int
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4996 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-15 17:47:33 +00:00
Mark Rose
ce452b8b8d
Director typemap cleanup and return by value
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4989 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-11 02:38:45 +00:00
Dave Beazley
8564ddabf0
Improvements to array handling.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4979 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-07 16:16:00 +00:00
William S Fulton
c21485f071
Minor warning fix
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4975 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-07 08:31:10 +00:00
William S Fulton
8a54131cd2
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/SWIG@4974 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-04 22:32:02 +00:00
William S Fulton
c10e825141
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/SWIG@4971 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-07-31 21:44:35 +00:00
Dave Beazley
13142e8184
Improved error message. Contributed by Zooka.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4964 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-07-28 22:04:15 +00:00
Logan Johnson
b5b115f451
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/SWIG@4963 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-07-28 14:20:24 +00:00
Luigi Ballabio
dcb94e7d4a
std::pair added (but not very much tested)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4959 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-07-10 12:42:42 +00:00
William S Fulton
a7fa8d86cc
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/SWIG@4933 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-29 21:52:26 +00:00
William S Fulton
56fecc2b0f
Destructor syntax for finalize method
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4916 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-20 21:18:26 +00:00
Matthias Köppe
30bcf4d0d1
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/SWIG@4912 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-18 13:16:23 +00:00
Matthias Köppe
36055df144
(SWIG_Guile_Init): Cast some strings to char* to avoid const-ness warnings.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4911 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-17 08:51:42 +00:00
William S Fulton
ad50ad8545
Few more JCALLx macros
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4906 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-13 08:27:33 +00:00
William S Fulton
152b65e518
protected/private destructors fix
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4903 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-12 19:47:24 +00:00
William S Fulton
4667d7bf2a
C# typemap name change twiddle
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4897 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-12 12:32:08 +00:00
William S Fulton
2837d84df9
Corrected comment on the type typemaps
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4896 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-12 12:30:17 +00:00
William S Fulton
b983da351d
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/SWIG@4890 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-11 19:52:27 +00:00
William S Fulton
6b4726769b
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/SWIG@4884 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-10 23:09:47 +00:00
William S Fulton
965af85915
Dispose method now prevents finalizer from being called
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4883 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-10 22:15:09 +00:00
Matthias Köppe
f2ddd864a3
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/SWIG@4881 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-10 21:58:02 +00:00
Matthias Köppe
568be8990a
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/SWIG@4880 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-10 21:54:01 +00:00
William S Fulton
191a2cc071
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/SWIG@4877 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-10 21:43:58 +00:00
William S Fulton
9cccf88afa
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/SWIG@4876 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-10 21:40:26 +00:00
Tiger Feng
3a8c2f2a94
*** empty log message ***
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4875 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-10 21:12:35 +00:00
Art Yerkes
dd64ccf0ae
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/SWIG@4872 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-08 03:49:09 +00:00
Art Yerkes
f45fd1a36e
Typedef_mptr test (with runme).
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4871 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-06 16:19:28 +00:00
Art Yerkes
7f9f4144ce
Added minherit test + runme.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4870 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-06 15:16:32 +00:00
Art Yerkes
0f445779b9
All test cases work.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4868 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-06 04:29:38 +00:00
Art Yerkes
f31bcd2a0e
Three test cases remaining. Gotta fix em all!
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4867 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-06 04:01:56 +00:00
Art Yerkes
e50fa50772
Four failed test cases remaining.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4866 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-06 02:04:00 +00:00
Art Yerkes
10af7694d7
Fixed two test cases.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4865 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-06 01:42:57 +00:00
Logan Johnson
0081cb26ef
*** empty log message ***
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4863 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-04 23:36:13 +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
Logan Johnson
8ee20885b1
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/SWIG@4856 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-03 17:54:53 +00:00
Logan Johnson
97f74f2b48
Fixed array typemaps.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4850 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-02 22:13:52 +00:00
Logan Johnson
1e59adf5c7
Added include of <assert.h> for Ruby's director.swg.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4847 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-02 19:35:15 +00:00
Art Yerkes
3d43e16dc2
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/SWIG@4845 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-02 02:36:46 +00:00
William S Fulton
a951a86659
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/SWIG@4843 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-01 22:59:10 +00:00
William S Fulton
06267e8a55
Removed globalin and memberin typemaps for dimensionless arrays
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4842 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-01 22:54:53 +00:00