William S Fulton
7f53260203
merge revisions 11872:11876 from trunk to gsoc2009-matevz branch - license changes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11905 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-03-06 00:51:54 +00:00
Matevz Jekovec
52149e219d
Removed decr-- Hash tables feature.
...
Added some comments.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11569 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-14 16:15:36 +00:00
Matevz Jekovec
94e94dce02
Added partial support for unordered_ STL types.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11451 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-25 19:14:17 +00:00
Matevz Jekovec
523817e4ee
Added initial support for hash tables unordered_ types.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11418 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-18 21:34:53 +00:00
William S Fulton
3e0fc9f7b9
minor format improvment
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11241 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-29 17:44:20 +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
baffa067dc
minor formatting
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11239 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-27 23:39:46 +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
Haoyu Bai
6c96148de5
fixed the wrong pointer value returned by SwigPyObject_repr()
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11213 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-14 15:58:09 +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
Olly Betts
feb1e6de94
Remove two accidentally committed debug fprintf() calls.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11197 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-04-29 23:59:06 +00:00
Olly Betts
1c91a4a9b9
int -> Py_ssize_t to fix 64 bit Python 3 failure to compile generated code
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11195 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-04-29 13:43:23 +00:00
Haoyu Bai
e8aa9d8703
fix of unclear comment regarding Python 3 tp_compare removal
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11194 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-04-29 12:05:33 +00:00
Olly Betts
6d8ea4f7fa
Fix comment typos
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11193 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-04-29 12:00:38 +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
Olly Betts
64843143f1
The default out typemap for char[ANY] now returns up to a zero byte, or the end
...
of the array if there is no zero byte. This is the same as Python does, and seems
more generally useful than the previous behaviour of returning the whole
contents of the array including any zero bytes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11176 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-03-30 02:22:14 +00:00
Haoyu Bai
a863d31e81
Fix the memory leak related to Python 3 unicode and char * conversion.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11160 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-03-19 15:26:57 +00:00
William S Fulton
f630911352
remove debug comment
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11158 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-03-19 00:04:28 +00:00
William S Fulton
51a723aa85
Add possibility of using when using shared_ptr and wrapping pointers
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11157 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-03-18 23:54:09 +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
e8e8527642
vc++ warning fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11152 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-03-16 17:42:30 +00:00
Haoyu Bai
94a788c30f
Remove an nonsense Py_INCREF.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11151 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-03-16 11:10:29 +00:00
William S Fulton
ed68b295a0
undef bind for win32, problem reported by vondruch
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11148 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-03-11 21:01:55 +00:00
Haoyu Bai
caa6f2b9fa
Fixes to support Python 3.0.1 and higher.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11143 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-03-02 17:56:29 +00:00
Haoyu Bai
c74c467a09
Fix SF#2637352, move declaration of SWIG_module before the call of SWIG_Python_FixMethods, since some C compiler don't allow declaration in middle of function body.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11140 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-02-28 14:02:02 +00:00
William S Fulton
efa11dee52
add new %begin directive for inserting code at top of wrapper file
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11133 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-02-20 07:52:24 +00:00
William S Fulton
a1933f7bbc
Fix make partialcheck-ocaml-test-suite
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11132 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-02-17 20:08:57 +00:00
William S Fulton
589eb8e509
Add %attributeval and %attributestring to attribute.swg library
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11128 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-02-13 22:42:45 +00:00
Haoyu Bai
03e840f3ec
changed the mapped 'SIZE' of buffer interface from the length of raw buffer to number of items in the buffer. So it would be easier to use with type other than 'char'
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11125 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-02-10 14:21:43 +00:00
William S Fulton
6d03b7ce6a
update old syntax to new _dim0
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11124 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-02-08 22:54:58 +00:00
William S Fulton
a4906b8182
remove gcc warning when using -Wunreachable-code
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11117 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-02-07 23:44:12 +00:00
Robert Stone
6574067b72
Fix SF#2564192
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11110 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-02-05 15:47:42 +00:00
Mark Gossage
e604e46b17
[Lua] Added contract support for requiring that unsigned numbers are >=0
...
Rewrote much of Examples/Lua/embed3.
Added a lot of to the Lua documentation.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11061 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-13 01:42:25 +00:00
Joseph Wang
809bbb89e3
put in integer fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11059 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-12 08:57:16 +00:00
Joseph Wang
4b5c817793
Fix integer handling in r. unsigned values where getting handled
...
incorrected as reals leading to crashes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11052 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-11 00:08:37 +00:00
Xavier Delacour
0b837574b0
Octave: fix carrays regression caused by operator suffix change.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11050 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-10 02:17:58 +00:00
Xavier Delacour
b6e44f2427
Octave: add {save,load}_{ascii,binary,hdf} functions that silently do nothing;
...
give default operator mappings a more conventional suffix;
fix test li_std_string_extra.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11047 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-10 00:20:46 +00:00
Xavier Delacour
8b857aa9c1
Fix octave tests li_std_pair_extra, arrays_global, grouping, struct_value, unions.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11046 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-09 23:38:14 +00:00
William S Fulton
3f03858862
minor formatting
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11044 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-08 23:29:33 +00:00
William S Fulton
e2679a6fd3
correct return type for PyUnicode_GetSize
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11041 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-08 19:20:51 +00:00
William S Fulton
c577ac1a31
Rename embedded smart pointer in SwigValueWrapper in order to avoid conflicts with the template type
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11038 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-07 21:10:46 +00:00
William S Fulton
f9c640cd11
fix up namespaces so that boost, std or std::tr1 can be used for shared_ptr/intrusive_ptr
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11029 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-05 17:19:32 +00:00