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
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
1213c5640a
Fix unused parameter warnings in python when using gcc's -W -Wall options
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10547 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-06-21 22:25:36 +00:00
William S Fulton
7743ae3973
remove unnecessary variable int the char **STRING_ARRAY out typemap
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10545 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-06-21 20:49:10 +00:00
William S Fulton
67f5931952
Fix crashing in the Ruby reject method in the STL wrappers
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10543 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-06-21 20:45:32 +00:00
William S Fulton
1d85e46697
add complete list of R reserved words
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10531 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-06-19 21:15:48 +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
Mark Gossage
de6d6ccaa8
[lua] bugfix 1938142 (bool& and bool* support)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10527 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-06-17 02:57:15 +00:00
Haoyu Bai
2dcb84a4c3
Fixed SF #1976978 , apply the macros for primitive types to std::wstring
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10508 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-30 13:53:33 +00:00
Haoyu Bai
1dfb0d7fad
Fixed SF #1971977 : typo in pycontainer.swg (related to -extranative option)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10504 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-28 17:27:48 +00:00
William S Fulton
8b42082f88
Apply patch from Petr Viktorin to fix some recent regressions in CFFI/CLOS
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10487 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-21 22:15:52 +00:00
Joseph Wang
43a6695de0
Fix problem that was causing breakage in pre-2.7 R
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10471 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-20 02:26:01 +00:00
Olly Betts
c2b682390f
Fix a few typos.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10468 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-19 20:23:50 +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
ed0e1c7d90
minor formatting change - copying the python version
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10449 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-14 22:10:31 +00:00
Olly Betts
20954f9bdc
Fix comment and documentation typos
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10446 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-14 14:53:10 +00:00
Olly Betts
d9c058a0fe
Remove unused variable.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10444 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-11 21:41:09 +00:00
Olly Betts
4bbd68181f
[PHP] Fix char * typemaps to work when applied to signed char * and
...
unsigned char * (uncovered by testcase apply_strings).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10434 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-10 11:01:09 +00:00
Xavier Delacour
1f38f3db67
Minor fixes:
...
Fix crashing bug when compiling with MSVC.
Fix print of packed type of void*.
Have namespaces always invoke members as statics/globals.
Make SWIG_init_user function static.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10427 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-08 23:56:40 +00:00
Joseph Wang
ebf910f755
remove numerical conversion in corecions
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10425 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-08 02:39:52 +00:00
William S Fulton
da8791792b
STL fixes when using %import rather than %include and the Solaris Workshop compiler
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10424 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-07 21:33:19 +00:00