Commit graph

281 commits

Author SHA1 Message Date
William S Fulton
f4fac221fa - Compliance with ISO/IEC 14882:1998(E) 17.4.3.1.2 -> eg double underscores removed
- Potential member variable and method name clashes remove by preceding with 'swig'
- consistent use of C++ booleans for the swig_disown flag across and within the modules that use this it in director code.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5139 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-22 22:55:17 +00:00
William S Fulton
9da574aae9 __DIRECTOR__ renamed Swig::Director
SWIG_DIRECTOR_EXCEPTION renamed Swig::DirectorException (similarly for derived classes)


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5138 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-22 20:13:42 +00:00
William S Fulton
7ee01311b2 typemap name changes:
inv => directorin
outv => directorout
argoutv => directorargout


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5137 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-20 23:52:28 +00:00
William S Fulton
eeca9ccf6a directorin typemap renamed javadirectorin
directorout typemap renamed javadirectorout


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5135 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-20 16:13:19 +00:00
William S Fulton
a7933a75b0 First round of director mods
- Removed asserts
- The unused __DIRECTOR__ base class default constructor removed. I've used the conventional approach of having no default constructor rather than a private one (declaring it private doesn't serve any useful purpose when this constructor is not wanted).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5132 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-20 15:11:38 +00:00
William S Fulton
ebb9ed7277 Various director fixes submitted by Scott Michel
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5128 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-19 23:19:47 +00:00
Logan Johnson
5c3f981c51 Fix for the std_pair.i library file for Ruby.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5125 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-19 22:03:57 +00:00
Logan Johnson
87a1b982e3 Add (and use) the SWIG_POINTER_EXCEPTION and SWIG_POINTER_DISOWN flags
for the Ruby runtime support. Have not actually implemented support for
"disowning" Ruby pointers yet.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5122 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-19 18:47:27 +00:00
William S Fulton
8cc4a4bb95 char * fix for directors (from Scott Michel)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5118 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-18 19:19:01 +00:00
William S Fulton
7b1bedc0fd 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/SWIG@5109 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-12 23:47:37 +00:00
William S Fulton
1d30534a99 Support for std::string and const std::string &
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5105 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-12 21:13:48 +00:00
William S Fulton
3915cf6ecb Delegates for returning strings to C# to solve memory leaking problem
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5104 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-12 21:12:58 +00:00
Luigi Ballabio
768fa03144 Fixed Perl std::vector::at problem with gcc < 3.0
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5100 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-11 08:19:27 +00:00
Matthias Köppe
138a0a9dae Fix memory leaks in the generated wrapper code.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5098 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-10 11:22:12 +00:00
Matthias Köppe
90d51fb354 [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/SWIG@5094 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-09 12:35:55 +00:00
William S Fulton
173dd1cc45 Minor director fixes from Scott Michel
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5084 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-06 15:37:25 +00:00
William S Fulton
3b3ea6e650 Missing assert.h for directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5077 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-04 23:27:31 +00:00
William S Fulton
c8d535b30b Directors implementation contributed by Scott Michel.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5074 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-04 23:12:20 +00:00
William S Fulton
9abd2e7915 New typecheck
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5073 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-04 20:33:08 +00:00
William S Fulton
7f8ad1dec2 char * wrapping fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5070 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-03 22:08:46 +00:00
Dave Beazley
109f9b61fe Fixes for partial specialization change.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5062 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-01 20:00:05 +00:00
Tiger Feng
3634731948 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5057 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-01 18:19:41 +00:00
Dave Beazley
c5b153d169 Fixed [ 786394 ] Patch for generated perl code does not compile under RedHat9
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5055 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-01 18:13:33 +00:00
Dave Beazley
c167f57cb8 Fixed [ 791579 ] (unsigned) long long handled incorrectly
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5053 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-01 18:02:03 +00:00
Dave Beazley
fb447a777a Fixed [ 798205 ] Segfault in SWIG_ConvertPtr.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5046 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-01 17:11:13 +00:00
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