Commit graph

1,918 commits

Author SHA1 Message Date
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
William S Fulton
6d564eb55d remove duplicate SWIGR macro
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11020 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-30 10:46:41 +00:00
Joseph Wang
67e2785cb7 change as(...,"integer") to as.integer to force conversion into integers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11015 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-29 22:25:55 +00:00
William S Fulton
b054bd4129 couple of minor Perl fixes from Ling Li
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11012 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-29 00:13:19 +00:00
William S Fulton
0f89bff13a Compiler warning fix in Perl out typemap for std::vector
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11011 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-29 00:11:51 +00:00
William S Fulton
62472ba466 Add boost::intrusive_ptr wrappers from Mike Rowbotham
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11008 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-28 20:32:44 +00:00
William S Fulton
e4c4dedc82 SwigValueWrapper - remove two constructors which are not required by the code SWIG generates
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11007 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-28 20:16:31 +00:00
William S Fulton
b190c10bf2 add strong exception guarantee to SwigValueWrapper
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11006 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-28 18:41:16 +00:00
William S Fulton
e6f5cdac9f Fix #2153773 - %nojavaexception - disabling and clearing Java checked exceptions
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10998 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-23 07:44:59 +00:00
William S Fulton
7adb84f448 Fix #2432801 - Make SwigValueWrapper exception safe for when copy constructors throw exceptions
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10997 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-22 21:43:48 +00:00
William S Fulton
f9393a0f06 Apply patch #2440046 which fixes possible seg faults for member and global variable char arrays when the strings are larger than the string array size.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10994 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-21 00:29:48 +00:00
William S Fulton
06b2eca75e remove last vestiges of php4 and encourage use of -php rather than -php5
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10969 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-06 23:15:20 +00:00
William S Fulton
dfd94424ba remove SWIG_TypeCheck_Template so that the code within it is debuggable
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10966 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-06 17:18:38 +00:00
William S Fulton
ffdf269634 minor formatting fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10965 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-06 17:12:05 +00:00
Haoyu Bai
8f84447860 Commited SF#2158938: change all SWIG symbols start with Py to a new name.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10961 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-03 18:43:44 +00:00
William S Fulton
93f0390322 UTL - Fix some incorrect acceptance of types in the STL, eg a double * element passed into a vector<int *> constructor would be accepted, but the ensuing behaviour was undefined. Now the type conversion correctly raises an exception
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10958 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-28 23:35:46 +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
cd43bd063d Apply patch #2263850 to fix ruby/file.i ... rubyio.h filename change in ruby 1.9.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10944 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-23 22:29:07 +00:00
William S Fulton
f5fbd95871 Apply patch #2319790 from Johan Hake to fix shared_ptr usage in std::tr1 namespace.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10942 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-23 21:59:00 +00:00
William S Fulton
bfd9e5f3e3 Add patch #2152691 from MATSUURA Takanori which fixes compiles using the Intel compiler
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10928 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-11 22:56:36 +00:00
Olly Betts
fccd1e294a Fix indentation. Use %{ %} in a couple of typemaps to avoid adding needless
{ } to the generated code.  Use memcpy() instead of memmove() where the
destination is freshly allocated so there's no possibility of overlap.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10887 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-10-01 11:54:31 +00:00
Olly Betts
0f0c13204e Fix non-standard indentation.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10886 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-10-01 05:28:45 +00:00
Mikel Bancroft
7682833048 [allegrocl] Various fixes to the generated C wrapper code (enums, constants, function declarations), as I progress through the test-suite.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10885 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-09-30 19:45:13 +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
Olly Betts
7ef2b73a6d [PHP5] Fill in typemaps for SWIGTYPE and void * (SF#2095186).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10881 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-09-25 07:11:36 +00:00
Mikel Bancroft
e88b502bab [allegrocl] Make type and namespace wrapping more compatible with other modules. cpp test-suite work.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10878 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-09-22 18:41:10 +00:00
Olly Betts
03429576fc [PHP5] Add typemaps for long long and unsigned long long.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10876 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-09-19 03:20:59 +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
7ec3c4ae81 minor typo and formatting improvements
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10868 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-09-18 20:16:50 +00:00
William S Fulton
6588eb61f4 pointer display correction
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10867 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-09-18 20:16:03 +00:00
Olly Betts
16c8749768 [PHP5] Change the default input typemap for char * to turn PHP
Null into C NULL (previously it was converted to an empty string).
The new behaviour is consistent with how the corresponding output
typemap works.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10864 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-09-18 14:02:15 +00:00
Mikel Bancroft
cc88c24c3f [allegrocl] Fix handling of forward references. Remove code breaking typical code generation. See ChangeLog for more details on the latter.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10860 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-09-17 19:13:12 +00:00
Haoyu Bai
3d8ddfc442 Merged the Python 3.0 support branch. The merging progress is not so smooth, so hope this commit won't make anything broken.
This is the (incomplemete) log produced by svnmerge.py:

Merged revisions 10405-10409,10420-10422,10426,10438,10445,10451,10454-10465,10467,10473-10475,10485,10488-10489,10493-10495,10497,10509-10510,10513-10514,10517,10520,10525,10528-10529,10533-10535,10554-10557,10570,10573,10593,10614,10666-10669,10673,10678,10687,10690,10704-10706,10731,10744,10750-10752,10755,10759,10770,10775-10776,10813,10819 via svnmerge from 
https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-bhy



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10834 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-09-11 17:18:07 +00:00
Richard Boulton
761ef2b98f [Python] Commit patch #2089149: Director exception handling mangles
returned exception.  Exceptions raised by Python code in directors
are now passed through to the caller without change.  Also, remove
the ": " prefix which used to be added to other director exceptions
(eg, those due to incorrect return types).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10827 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-09-10 10:08:21 +00:00