William S Fulton
4b16ce4355
More director changes from Scott Michel - no more director code in normal wrappers plus other changes for classes in an inheritance chain
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5109 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-12 23:47:37 +00:00
William S Fulton
964f56d0d9
Support for std::string and const std::string &
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5105 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-12 21:13:48 +00:00
William S Fulton
542dd1c9d6
Delegates for returning strings to C# to solve memory leaking problem
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5104 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-12 21:12:58 +00:00
Luigi Ballabio
b924fd7937
Fixed Perl std::vector::at problem with gcc < 3.0
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5100 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-11 08:19:27 +00:00
Matthias Köppe
b416754856
Fix memory leaks in the generated wrapper code.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5098 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-10 11:22:12 +00:00
Matthias Köppe
2622befbfc
[Chicken] Use C_mk_bool rather than C_mkbool. This fixes
...
the wrapping of boolean values for Chicken 1.10 and newer.
Reported by Dave <hundo@yahoo.com> / Felix Winkelmann
<felix@proxima-mt.de>.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5094 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-09 12:35:55 +00:00
William S Fulton
2dd28752dc
Minor director fixes from Scott Michel
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5084 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-06 15:37:25 +00:00
William S Fulton
ef6254e816
Missing assert.h for directors
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5077 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-04 23:27:31 +00:00
William S Fulton
029cd11a67
Directors implementation contributed by Scott Michel.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5074 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-04 23:12:20 +00:00
William S Fulton
b12b6a73b0
New typecheck
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5073 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-04 20:33:08 +00:00
William S Fulton
c9bc204231
char * wrapping fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5070 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-03 22:08:46 +00:00
Dave Beazley
ec6d8dbd46
Fixes for partial specialization change.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5062 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-01 20:00:05 +00:00
Tiger Feng
75ca26902b
*** empty log message ***
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5057 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-01 18:19:41 +00:00
Dave Beazley
0662bb44e0
Fixed [ 786394 ] Patch for generated perl code does not compile under RedHat9
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5055 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-01 18:13:33 +00:00
Dave Beazley
dd60c77db0
Fixed [ 791579 ] (unsigned) long long handled incorrectly
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5053 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-01 18:02:03 +00:00
Dave Beazley
62c3f3642a
Fixed [ 798205 ] Segfault in SWIG_ConvertPtr.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5046 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-01 17:11:13 +00:00
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