David Nadlinger
892caec201
[D] Fixed a bug in the loop breaking code for directors leading to a superclass implementation erroneously being called.
...
The situation in which this would previously happen is illustrated in the new "director_alternating" test case. Currently broken for C# and Java.
Thanks to Jimmy Cao for reporting this.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12380 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-08 21:05:49 +00:00
William S Fulton
8f1bde9d81
Fix expansion in array typemaps
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12347 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-12-14 21:38:36 +00:00
Vadim Zeitlin
f6cab0170a
Ignore non-matching regex renames when searching renames list.
...
Skip over %renames with non-matching %(regex)s expansion when looking for the
one to apply to the given name. This allows to have multiple anonymous renames
using regex as now the first _matching_ one will be used instead of always
using the first one and ignoring all the rest of them.
Extend unit tests to verify that applying two anonymous %renames does work as
expected.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12293 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-11-16 14:09:39 +00:00
William S Fulton
c9ede7e622
Fix unary scope operator (::) (global scope) regression introduced in 2.0.0. The mangled symbol names were incorrect, sometimes resulting in types being incorrectly treated as opaque types.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12264 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-10-13 05:48:59 +00:00
William S Fulton
3219746776
Apply patch #3066958 from Mikael Johansson to fix default smart pointer handling when the smart pointer contains both a const and non-const operator->.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12240 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-10-03 13:12:00 +00:00
Vadim Zeitlin
f89181d4c8
Fix the rename_pcre_encoder unit test for Python.
...
Due to a bug in the way %rename() directives without a name currently work,
the second %rename in rename_pcre_encoder.i overrides the first one and the
function wxDoSomething() is not renamed to DoSomething() any more. Remove the
test for this renaming that doesn't work to at least let the rest of the test
to pass.
Also test that SetXXX() functions from the .i file really are renamed to
putXXX() as expected.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12217 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-09-11 11:44:26 +00:00
Vadim Zeitlin
0b2561f300
Add a test case for the regex encoder inside %rename.
...
Simple unit test checking that %rename("%(regex:...)") works as expected.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12171 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-07-22 17:00:59 +00:00
Vadim Zeitlin
1f939323a4
Fix PYTHONPATH value when running Python tests outside source directory.
...
PYTHONPATH needs to include the current directory and not (just) the source
directory as the SWIG-generated files are produced here and not under the
source directory when the top build directory is different from it.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12166 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-07-22 16:59:08 +00:00
William S Fulton
568607c5ea
Fix wrapping of function pointers and member function pointers when the function returns by reference
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12157 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-07-16 18:45:22 +00:00
William S Fulton
2d8b51684d
remove svn:executable property
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12156 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-07-16 17:39:11 +00:00
William S Fulton
cca92f4188
Fix #3024875 - shared_ptr of classes with non-public destructors. This also fixes the 'unref' feature when used on classes with non-public destructors.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12155 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-07-07 18:19:01 +00:00
William S Fulton
e2ce97f397
Add the ability for special variable macros to call other special variable macros. Also added additional diagnostics when using -debug-tmsearch. Add tests for std::vector of shared_ptr.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12059 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-05-26 23:22:49 +00:00
William S Fulton
5ff1e34ee6
fix my perl keyword warning
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12012 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-05-07 18:13:15 +00:00
William S Fulton
03bd7005bb
Fix typemap delete regression introduced in rev 11838
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12008 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-05-03 22:58:27 +00:00
William S Fulton
efd200ffe2
Typemap matching rules enhancement for non-default typemaps. Previously all qualifiers were stripped in one step, now they are stripped one at a time starting with the left most qualifier.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12007 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-05-02 21:35:02 +00:00
Haoyu Bai
2450c4b108
fix regression of Python constructor renaming introduced by py3k work
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11997 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-04-25 14:07:14 +00:00
William S Fulton
a743d54665
Fix segfault when using Python's -threads options and exceptions are thrown
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11980 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-04-08 06:46:18 +00:00
William S Fulton
09a801dd9e
Change %extend example which said that char arrays were problematic to wrap, when in fact they are not
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11764 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-12-02 22:16:48 +00:00
William S Fulton
2bd190dbf1
Revert support for %extend and memberin typemaps added in swig-1.3.39. The memberin typemaps are ignored again for member variables within a %extend block. Documentation inconsistency reported by Torsten Landschoff.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11762 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-12-02 00:01:31 +00:00
William S Fulton
7cb4e902d5
Fix parsing of enum declaration and initialization
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11752 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-11-17 19:31:13 +00:00
William S Fulton
7fd36f5bd6
Fix parsing of struct declaration and initialization
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11750 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-11-17 18:45:53 +00:00
William S Fulton
7ae45bc020
Fix #2310483 - function pointer typedef within extern C block.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11742 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-11-14 15:55:23 +00:00
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
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
49935ee952
Fix director exception testcase since exception message recently changed slightly
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11678 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-09-02 22:35:55 +00:00
William S Fulton
9d6e826bd8
Test std::map in all languages
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11658 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-20 23:21:07 +00:00
William S Fulton
b75c606205
Fix for r11557 rename of max to maximum
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11628 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-17 23:07:16 +00:00
William S Fulton
b5de6aabe5
more efficient python test-suite clean
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11591 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-16 20:02:22 +00:00
Olly Betts
84215444eb
Rename max() to maximum() as max() is a built-in function in PHP.
...
Testcases overload_template and overload_template_fast now pass for PHP.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11557 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-14 01:33:23 +00:00
Miklos Vajna
451f71d7b1
remove unnecessary extra semicolons in the tesuite
...
Basically just style cleanup, "fi;" or "fi; \" -> "fi".
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11523 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-09 22:52:08 +00:00
William S Fulton
56c5b52c1d
remove unnecessary extra shells being spawned in the test-suite
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11522 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-09 22:39:51 +00:00
Miklos Vajna
9d5b0d7bf4
Python: cleanup in the template_typedef_import testcase
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11513 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-06 19:57:55 +00:00
William S Fulton
41d3c98993
fix $typemap() when the type contains template parameters
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11506 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-05 21:40:49 +00:00
Miklos Vajna
88a934d7f0
PHP: fix for the wrapmacro testcase
...
'max' is a built-in function in PHP, so let's rename it to 'maximum'
instead.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11495 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-04 09:32:12 +00:00
William S Fulton
bbcfa0b089
() for multi-argument typemaps
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11481 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-30 17:42:18 +00:00
William S Fulton
75aa67b99c
rename special_variable_functions testcase to special_variable_macros
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11475 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-30 06:15:50 +00:00
William S Fulton
bf0ee4471c
(method, typelist) special variable macro fixed/enhanced and made official
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11470 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-29 20:50:39 +00:00
William S Fulton
9064b08651
better way to provide custom commandline options for individual tests
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11356 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-03 22:23:43 +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
William S Fulton
267ffd6ce6
move std::multimap tests from li_std_map.i into new li_std_multimap.i
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11210 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-12 17:24:01 +00:00
William S Fulton
90b1578d65
add test for optimal attribute in out typemap
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11199 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-04-30 06:12:32 +00:00
Haoyu Bai
0c5979a8d8
Fix problem caused by thread not properly terminated in director_thread test. This was cause crash in Python 3
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11161 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-03-19 16:56:01 +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
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
afd67f8c67
Fix SF#2552488: indentation adjust of %pythonappend and %pythonprepend
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11100 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-31 14:37:54 +00:00
Haoyu Bai
be7fdab62e
Fix SF#2552048. Remove the 'self' parameter in Python proxy code for static member function.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11099 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-31 13:38:39 +00:00
William S Fulton
ecdd24a508
yet better pointer string comparison
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11056 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-11 21:37:54 +00:00
William S Fulton
3d8f569466
another portability fix
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11055 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-11 21:32:42 +00:00
William S Fulton
cca31dde4f
more portable pointer in a string comparison
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11054 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-11 17:57:21 +00:00