William S Fulton
cc9b811281
Add spaces to avoid unintended <: digraph in SWIG_STD_VECTOR_ENHANCED
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12083 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-06-01 23:36:08 +00:00
William S Fulton
d25121a0ed
Fix SWIG_STD_VECTOR_ENHANCED macro used in C# std::vector to work with commas
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12081 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-06-01 23:10:22 +00:00
William S Fulton
36c2e97a1c
Add std_shared_ptr.i and document shared_ptr library
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12077 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-06-01 19:03:55 +00:00
William S Fulton
a4febe7799
Fix #2957375 (C#) - SWIGStringHelper and SWIGExceptionHelper not always being initialized before use in .NET 4 as the intermediary class was not marked as beforefieldinit.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12044 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-05-23 22:24:36 +00:00
William S Fulton
9c53d41e0f
nspace fixes for smart pointers
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12038 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-05-23 00:29:58 +00:00
William S Fulton
3dfac02269
shared_ptr improvements so the proxy class does not need to be specified - SWIG_SHARED_PTR macro deprecated and replaced by %shared_ptr
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12037 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-05-22 23:57:19 +00:00
William S Fulton
12cfc251e4
Fix #2408232 . Improve shared_ptr and intrusive_ptr wrappers for classes in an inheritance hierarchy. No special treatment is needed for derived classes, the SWIG_SHARED_PTR_DERIVED macro is deprecated.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12036 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-05-22 22:49:47 +00:00
William S Fulton
964382336e
remove std::map specializations - not needed since the typemap matching rules were changed to follow type deducation used in template specialization
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11978 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-04-04 20:37:20 +00:00
William S Fulton
482c06c28c
Remove unnecessary vector of constant pointer specialization since the improved default typemap matching rules were introduced
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11961 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-04-01 23:30:26 +00:00
William S Fulton
bdb136d611
Change typemap matching rules for the default type (SWIGTYPE) to follow template partial specialization type deduction. Fixes some containers of const pointers. SWIGTYPE*& typemps removed and replaced with SWIGTYPE *const&.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11958 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-04-01 18:26:37 +00:00
William S Fulton
96f9879511
Fixes for nspace and derived classes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11930 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-03-09 21:15:34 +00:00
William S Fulton
4308dd03cf
SWIG license change - The Examples and Lib move to a very permissive license in the LICENSE file, removing the BSD license restrictions as agreed by committers since it was inadvertently introduced. Remove some examples where the impact of the license change is not clear.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11874 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-02-27 23:26:02 +00:00
William S Fulton
1de9c8b27f
Add a few comments about the smart pointer implementation
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11828 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-01-23 15:30:42 +00:00
William S Fulton
40ea6e5da4
use so that macros are no longer needed for std::map wrappers
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11501 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-04 17:58:17 +00:00
William S Fulton
fb505bf7c9
small tidy up
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11500 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-04 17:48:41 +00:00
William S Fulton
31ad548c6b
Deprecate SWIG_STD_VECTOR_SPECIALIZE_MINIMUM. Deprecate SWIG_STD_VECTOR_SPECIALIZE and replace with SWIG_STD_VECTOR_ENHANCED
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11493 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-03 18:17:14 +00:00
William S Fulton
4bfec466e8
trailing comma fix for ISOC89 compliance - patch from Ben Schmeckpeper
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11240 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-29 17:42:49 +00:00
William S Fulton
25bcb4d5e6
std::map C# improvements
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11236 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-26 17:08:53 +00:00
William S Fulton
3ffdfee64a
remove authors - these are in the CHANGES files and README files
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11235 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-26 06:31:04 +00:00
William S Fulton
9361144964
Add copy constructor to std::map and make more efficient by passing keys and mapped type by reference instead of value
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11234 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-26 06:28:20 +00:00
William S Fulton
7841adc675
Add std::vector copy constructor to proxy
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11233 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-26 06:23:39 +00:00
William S Fulton
07ed699ef3
use instead of self
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11231 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-22 06:11:45 +00:00
William S Fulton
30335a0198
std::map improvements based on patch from Yuval Baror
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11230 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-22 06:10:52 +00:00
William S Fulton
13cbd90553
Improved std::vector wrappers on the C# proxy side from Yuval Baror to implement IList<> instead of IEnumerable<> where possible.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11209 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-11 17:46:51 +00:00
William S Fulton
60f0c7e56b
Fix #2753469 - bool &OUTPUT and bool *OUTPUT typemaps initialisation.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11191 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-04-21 20:09:15 +00:00
William S Fulton
be73d28ad7
don't unnecessarily set swigCPtr to zero again if Dispose/delete called multiple times
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11179 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-03-31 12:23:47 +00:00
William S Fulton
6975ecd65c
std::vector<T> wrapper improvements for .NET 2 implementing IEnumerable<T>
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11156 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-03-18 23:30:57 +00:00
William S Fulton
df698a8d32
minor rewrite
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11154 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-03-16 21:39:36 +00:00
William S Fulton
956c57bb03
add in correct specialization for std::vector<bool> to follow C++ standard - to create compileable wrappers with vc++ and recent return by reference changes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11153 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-03-16 19:33:38 +00:00
William S Fulton
e7f8954bea
remove svn:executable property where applied incorrectly
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10951 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-26 21:54:49 +00:00
William S Fulton
25f6cebe46
typo fix
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10883 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-09-26 05:05:23 +00:00
William S Fulton
90a4d04d85
revert entry 2008-09-01 - C# Insert and InsertRange bounds checking
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10875 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-09-18 23:17:52 +00:00
William S Fulton
09915566bc
Add C# array typemaps provided by Antti Karanta.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10872 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-09-18 20:32:28 +00:00
William S Fulton
a83eebb369
Fix array bounds checking in C# std::vector wrappers
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10804 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-09-01 20:32:53 +00:00
William S Fulton
4887e7be7c
Fix director typemaps for pointers so that NULL pointers are correctly marshalled to C#/Java null in director methods
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10662 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-07-14 21:09:23 +00:00
William S Fulton
3463ced917
various warning fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10549 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-06-21 23:25:20 +00:00
William S Fulton
9c323f4a70
Add R keyword support. Rename keywords for successful compilation of Java and C# code. More consistent keyword warnings across the different languages.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10530 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-06-19 20:02:13 +00:00
William S Fulton
336b50b43d
Add the optimal attribute to the out typemap for more optimal code generation when returning objects by value
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10450 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-14 22:12:31 +00:00
William S Fulton
2cf3cb3dc9
char *& typemaps added
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10295 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-04 21:35:22 +00:00
William S Fulton
a025af2d2e
Remove some unnecessary casts
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10252 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-13 23:12:09 +00:00
William S Fulton
ed2bc825bd
minor member pointer fixes for last commit
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10077 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-30 22:21:19 +00:00
William S Fulton
3acd5c2d94
Fix member pointers on 64 bit platforms
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10073 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-29 23:07:01 +00:00
William S Fulton
62b2401d09
member function typemap fix for VC++
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10028 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-23 21:56:24 +00:00
William S Fulton
035cdf6f1a
Fix compilation problem for const methods and memory leak for plain member variables
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9976 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-09 23:51:03 +00:00
William S Fulton
12919429ad
shared_ptr typemaps added
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9963 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-07 00:28:11 +00:00
William S Fulton
23f8a0464c
throws typemaps for std::wstring using C# patch #1799064 from David Piepgrass
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9956 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-25 21:35:24 +00:00
Olly Betts
c836c81acb
When wrapping C++ code, generate code which uses
...
std::string::assign(PTR, LEN) rather than assigning
std::string(PTR, LEN). Using assign generates more efficient code
(tested with GCC 4.1.2).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9936 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-17 20:10:57 +00:00
William S Fulton
6e4d5b4b3a
Fix member pointer typemaps (32bit fix only though)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9890 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-08-10 11:16:59 +00:00
William S Fulton
a4eb259f31
member pointer fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9868 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-07-18 21:07:48 +00:00
William S Fulton
edd82d41f2
corrections for last commit
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9867 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-07-18 21:06:55 +00:00