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
William S Fulton
2cafaf9d43
Fix #1988296 - Multiple module director linking issue
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10809 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-09-02 23:01:37 +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
86913e26e3
Fix another perl global namespace pollution
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10803 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-09-01 20:00:28 +00:00
Joseph Wang
553135885c
change Rf_warning to warning. Looks like a typo
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10801 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-08-31 16:07:43 +00:00
John Lenz
adf1e5373d
add assert.h to fix chicken build of external runtime (ext_test testsuite)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10727 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-08-02 08:49:43 +00:00
John Lenz
6870f7a623
Commit patch 2019314
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10726 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-08-02 08:28:02 +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
Olly Betts
b2cea3c42a
[PHP] For std_vector.i and std_map.i, rename empty() to is_empty()
...
since "empty" is a PHP reserved word. Based of patch from Mark Klein
in SF#1943417.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10650 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-07-04 01:22:11 +00:00
Olly Betts
1e6d6b2708
[PHP] The SWIG cdata.i library module is now supported.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10647 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-07-03 23:55:33 +00:00
Olly Betts
fbfda8f7d2
Make testcase li_typemaps work for PHP.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10640 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-07-03 06:05:34 +00:00
Olly Betts
30cdd1f71e
Make t_output_helper() static.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10639 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-07-03 06:04:24 +00:00
Olly Betts
3d3bc01a2f
Rename php4*.swg to php*.swg.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10635 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-07-03 00:37:38 +00:00
Olly Betts
7dfd9aae31
WARN_* constants are user visible, so keep existing WARN_PHP4_* for
...
backward compatibility, but add preferred forms WARN_PHP_* and use
these ourselves.
Rename Lib/php4 to Lib/php, Source/Modules/php4.cxx to Source/Modules/php.cxx.
Add typemaps for const reference so Examples/test-suite/apply_signed_char.i
works.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10633 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-07-03 00:09:56 +00:00
William S Fulton
db820edd23
Suppress unused methods warning for VC++
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10559 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-06-22 22:12:43 +00:00
William S Fulton
a1590359c9
Another fix for the JVM hanging on exit problem when using directors
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10550 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-06-22 00:09:11 +00:00