William S Fulton
ebed6508e4
Nested class improvements - Fixed inconsistency in handling C++ nested classes - sometimes they were treated as forward declarations, other times as if C nested struct was parsed. Added the nestedworkaround feature for C++ nested class handling. Document improved nested class handling. Numerous C and C++ nested struct/class/union test cases added.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11734 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-11-11 00:30:34 +00:00
Joseph Wang
b279cd3dde
add std_map
...
fix compact mode
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11731 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-11-10 02:32:29 +00:00
Joseph Wang
e351dfceaf
first pass at making fcompact work with R
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11722 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-11-04 03:48:17 +00:00
Olly Betts
70e8072612
[Python] Fix potential memory leak in initialisation code for the generated
...
module.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11717 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-11-02 06:31:45 +00:00
William S Fulton
132376bade
Fix std::vector of const pointers
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11704 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-10-20 18:22:16 +00:00
William S Fulton
a2229a45fc
Fix memmove regression
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11688 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-09-11 18:53:14 +00:00
William S Fulton
719cfe68bf
add some useful info for assert around SWIG_CAST_NEW_MEMORY
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11686 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-09-07 06:17:40 +00:00
Olly Betts
fddbb30848
Revert removal of assertion.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11680 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-09-03 11:31:39 +00:00
William S Fulton
6edbe9cdc2
extra white space helps disambiguate the expression which some compilers/tools complain about - patch from David Fletcher
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11672 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-29 10:09:01 +00:00
Olly Betts
415d2b6fe9
[Perl] Remove bogus assertion (patch from David Fletcher).
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11671 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-29 06:53:25 +00:00
William S Fulton
3932d02a2a
fix SWIG naming convention
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11663 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-21 00:25:11 +00:00
Olly Betts
2b4c962359
[Perl] Add "#undef do_exec" to our clean up of Perl global namespace pollution.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11620 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-17 12:06:08 +00:00
William S Fulton
fc68afcf73
Octave: Caught exceptions display the type of the C++ exception instead of the generic 'c++-side threw an exception' message
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11595 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-16 22:05:47 +00:00
William S Fulton
4516c1d3f3
Fix exception handling when %catches is used in C#
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11583 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-15 23:22:20 +00:00
Xavier Delacour
b81cb3bff9
try not to require -api option in octave
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11577 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-15 01:19:28 +00:00
William S Fulton
55170f0f88
Add Ruby missing methods for vector<bool> specialization
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11576 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-15 00:17:21 +00:00
William S Fulton
06c06f8742
remove redundant if not __cplusplus for directorin typemap - directors are always c++
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11575 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-14 22:47:11 +00:00
William S Fulton
10edc69383
SWIG_ConvertPtrAndOwn() into the runtime for Perl
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11572 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-14 21:05:06 +00:00
Miklos Vajna
6f80e2f7a6
PHP: Add directorout typemap for primitive type const refs
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11559 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-14 04:22:03 +00:00
William S Fulton
45359dc12c
Add SWIGTYPE *& typemaps for PHP
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11556 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-14 01:14:49 +00:00
Olly Betts
3675a7baf7
Add min and max as built-in functions.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11555 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-14 01:00:36 +00:00
William S Fulton
cc43f20f6d
PHP fix const char\*\& typemaps and add in char_strings runtime test based on Java version
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11552 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-13 23:31:19 +00:00
William S Fulton
42d7f3bb10
add php typecheck typemaps for const reference for primitives
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11551 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-13 22:39:20 +00:00
William S Fulton
d2316a8189
PHP std::vector wrappers overhaul modelling on Java std_vector.i. Work around empty rename warning problem. Add capacity and reserve(). Remove need for specialize_std_vector macro.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11550 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-13 22:07:34 +00:00
William S Fulton
627d9faffd
Add PHP const ref typemaps for primitive types
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11549 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-13 21:41:23 +00:00
William S Fulton
3076cbcdc0
Fix seg fault in SWIG_Python_ConvertFunctionPtr() for invalid values
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11537 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-12 00:22:47 +00:00
Miklos Vajna
ac8f104d7b
PHP: Add more comments in SWIG_ZTS_SetPointerZval()
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11536 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-11 22:53:32 +00:00
William S Fulton
60e20c6ec5
fix %valuewrapper macro
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11514 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-07 21:50:21 +00:00
William S Fulton
22c0b83cef
fix vector of templated types
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11508 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-05 22:17:06 +00:00
Miklos Vajna
e27c32d885
PHP: fix PHP 5.3 support
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11502 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-05 09:26:25 +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
Olly Betts
110562d364
[PHP] Fix generated code to work with PHP 5.3.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11498 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-04 15:37:32 +00:00
Miklos Vajna
a9f9b7cbbf
PHP: fix for the li_math testcase
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11496 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-04 10:32:25 +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
Olly Betts
0d539c8048
[Python] Add missing locks to std::map wrappers. Patch from
...
Paul Hampson in SF#2813836.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11465 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-29 03:34:22 +00:00
Olly Betts
1f01eb5d7d
[PHP] Fix memory leak in PHP OUTPUT typemaps. Reported by Hitoshi
...
Amano in SF#2826322.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11464 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-29 02:27:54 +00:00
Olly Betts
c321421bc5
[PHP] Update warnings about clashes between identifiers and PHP
...
keywords and automatic renaming to work with the PHP5 class
wrappers. Fixes SF#1613679.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11460 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-28 13:12:06 +00:00
Miklos Vajna
0249eea389
Merge https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-vmiklos/
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11434 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-22 11:08:29 +00:00
Xavier Delacour
68d0177d6c
more fixes for octave 3.2
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11389 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-12 21:09:50 +00:00
Xavier Delacour
cdc9de8210
small fixes to make octave module compatible with octave 3.2
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11388 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-12 20:23:19 +00:00
Olly Betts
949ea9b580
[PHP] Update the list of PHP keywords - "cfunction" is no longer a
...
keyword in PHP5 and PHP 5.3 added "goto", "namespace", "__DIR__",
and "__NAMESPACE__".
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11368 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-05 05:40:50 +00:00
Olly Betts
9e919ef866
Removed unused struct tag.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11362 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-05 04:06:39 +00:00
Olly Betts
7f5586a370
[Tcl] To complement USE_TCL_STUBS, add support for USE_TK_STUBS
...
and SWIG_TCL_STUBS_VERSION. Document all three in the Tcl chapter
of the manual. Based on patch from SF#2810380 by Christian
Gollwitzer.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11353 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-03 14:17:03 +00:00
Olly Betts
734dafd405
Fix grammar in comment and error message.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11352 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-03 11:58:37 +00:00
William S Fulton
481fead9fc
Fix -Wallkw commandline option
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11345 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-02 18:28:50 +00:00
Olly Betts
4e1763ba69
[Ruby] Undefine close and connect macros defined by Ruby API
...
headers as we don't need them and they can clash with C++ methods
being wrapped. Patch from Vit Ondruch in SF#2814430.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11333 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-06-30 11:50:14 +00:00
Olly Betts
45611ebd57
[Ruby] Fix to handle FIXNUM values greater than MAXINT passed for a double parameter.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11320 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-06-26 01:49:33 +00:00
Robert Stone
1dc5175753
reference.i improvements, testcase coverage. language specific interface support for test-suite.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11247 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-06-05 18:47:30 +00:00
Robert Stone
5f1e95ff67
bugfix for Lib/perl5/reference.i (test-suite enhancements coming soon).
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11244 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-06-02 21:13:03 +00:00