Commit graph

2,523 commits

Author SHA1 Message Date
Olly Betts
06e8329c48 No need to add . to LD_LIBRARY_PATH for PHP.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12522 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-07 23:01:26 +00:00
Olly Betts
571204c98f Fix typo which stopped %.test convenience helper from running multitests.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12519 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-07 03:14:24 +00:00
William S Fulton
28af783d18 Templated smart pointers overloaded with both const and non const operator-> generated uncompilable code when the pointee was a class with either public member variables or static methods.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12512 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-02 22:30:05 +00:00
William S Fulton
90847fb49e Solaris warnings/errors testcase fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12505 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-20 19:29:50 +00:00
William S Fulton
77110db863 Sun studio warning suppression in tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12500 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-20 13:02:21 +00:00
Ian Lance Taylor
7ac265ff3d For Go: Fix handling of INPUT variables when using typemaps.i. This
fixes cases where the gotype typemap is used to produce a simple Go
type for a non-simple C/C++ type.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12498 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-20 05:48:25 +00:00
Ian Lance Taylor
6c02fa5729 More varargs overload testing for Go.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12497 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-20 04:47:17 +00:00
Ian Lance Taylor
ebe2840756 Fix new varargs_overload test for Go.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12495 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-20 04:40:32 +00:00
Ian Lance Taylor
bb3caf14a2 Add Go execution test for new rename_simple test.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12494 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-20 04:40:00 +00:00
Ian Lance Taylor
0c8c5e7614 Fix handling of protected methods in Go when using directors.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12492 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-20 03:52:04 +00:00
William S Fulton
643f603475 Fix C code in test case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12491 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-20 00:37:54 +00:00
William S Fulton
4458ce66d0 Fix link error in test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12490 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-20 00:27:39 +00:00
William S Fulton
a77b30e664 Fix link error in test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12489 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-20 00:24:57 +00:00
Ian Lance Taylor
21ca5a854c Adjust for the elimination of the "float" and "complex" types.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12487 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-19 20:22:33 +00:00
William S Fulton
23a5fecc60 Additional %varargs and overloading testing
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12486 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-19 19:20:37 +00:00
William S Fulton
4447395ad3 Modify octave exception checking test to take account of older (3.0) versions prefixing with 'error: ', but not in newer (3.2) versions
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12484 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-19 17:11:05 +00:00
William S Fulton
964532ed86 Modify octave exception checking test to take account of newlines being added in older (3.0) versions, but not in newer (3.2) versions
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12483 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-19 17:07:03 +00:00
William S Fulton
95de0a3437 Rename symbol in test case as the name is clashing in some way with new versions of Octave (3.2.4)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12482 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-19 16:20:38 +00:00
William S Fulton
e019b40f7d Fix Lua warning suppression for overload_extend testcase
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12478 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-19 12:39:44 +00:00
William S Fulton
90bcaa3117 Add Octave test of global constants when accessed from a function reported by Alan W Irwin as previously not working
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12476 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-19 01:16:47 +00:00
William S Fulton
81ae06d960 Rename covariant_return.i testcase as it is not testing covariant return types
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12475 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-18 23:18:42 +00:00
William S Fulton
873d07d1e5 Fix #3184549 - vararg functions and function overloading when using the -fastdispatch option.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12474 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-18 21:25:42 +00:00
Olly Betts
bf7c9e9a42 [PHP] An overloaded method which can return an object or a
primitive type no longer causes SWIG to segfault.  Reported by Paul
Colby in SF#3168531.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12471 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-18 06:39:51 +00:00
William S Fulton
94e141cbd0 Warning suppression
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12468 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-17 22:43:28 +00:00
William S Fulton
0913f41fb4 Change preprocessing error for tokens appearing after #else and #end to warning. Add some missing warning documentation and a couple of warning messages tidy up.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12467 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-17 21:54:13 +00:00
William S Fulton
efd06d0668 Preprocessing now errors out if extra tokens appear after #else and #end. Add preprocessor errors when preprocessor expressions are missing
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12464 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-16 20:48:48 +00:00
William S Fulton
1fab53b204 [Ocaml] Apply patch #3151788 from Joel Reymont. Brings Ocaml support a up to date (ver 3.11 and 3.12), including std::string.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12460 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-14 07:22:06 +00:00
William S Fulton
e0ee14c3ba Fix Fix #1927852 - #include directives don't preprocess the file passed to it
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12457 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-13 13:53:14 +00:00
William S Fulton
16ba0aca53 Fix preprocessor breakages introduced in rev 12441 which was fixing defined() being expanded outside of #if and #elif preprocessor directives
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12455 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-12 23:27:50 +00:00
William S Fulton
63af0a2d72 Fix #1940536, overactive preprocessor which was expanding defined(...) outside of #if and #elif preprocessor directives.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12441 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-07 07:29:55 +00:00
William S Fulton
65f377c422 Hack for testcase to compile under PHP 5.3 / gcc-4.4
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12440 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-05 23:04:05 +00:00
William S Fulton
a5837dd7e6 [C#] SF #3085906 - Possible fix running test-suite on Mac OSX.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12435 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-05 12:58:29 +00:00
William S Fulton
4f616b5942 SF #3127633 Fix infinite loop in recursive typedef resolution.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12433 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-05 01:09:40 +00:00
William S Fulton
f4c74bc500 R - SF #3168676 Fix %rename not working for member variables and methods. Add new simple rename testcase with runtime tests for C# and R
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12432 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-04 23:42:06 +00:00
William S Fulton
1918e2a844 Make R unittests pass failure to the Make system, otherwise failures are masked and won't be seen
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12431 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-04 23:40:06 +00:00
William S Fulton
a0b869da38 Remove runtime warnings in overloading php example
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12422 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-01 19:58:44 +00:00
William S Fulton
e7e542ffc9 li_boost_shared_ptr.i testcase - fix for missing %shared_ptr highlighted by new smart pointer warning 520
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12421 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-01 19:14:14 +00:00
William S Fulton
af4873f879 Linker errors fixed for member_funcptr_galore testcase
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12420 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-01 07:17:51 +00:00
William S Fulton
4a73d986dd Any 'using' statements in the protected section of a class were previously ignored with dirprot mode, certainly with Java and C#. Also directors - a call to a method being defined in the base class, not overridden in a subcalss, but again overridden in a class derived from the first subclass was not being dispatched correcly to the most derived class - affecting non-scripting languages. Fix for C# is based on recent fix for D.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12419 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-01 07:02:50 +00:00
William S Fulton
640cce2c50 Fix typecheck typemaps for SWIGTYPE *const&
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12413 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-30 00:42:27 +00:00
William S Fulton
17ad110543 Add li_typemaps_apply to tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12410 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-29 21:53:16 +00:00
David Nadlinger
b9d12afa7c [D] Test C++ references in »d_nativepointers«; normalized indentation.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12407 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-29 21:32:11 +00:00
William S Fulton
3d822b6032 expand protected using testcase
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12404 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-28 19:50:57 +00:00
William S Fulton
2f0dc16b2e Fix C# typemaps.i so that %apply works doesn't break function returns using the same types, for example, %apply int &INPUT { int & } won't break 'int &foo(int &x);'
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12400 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-24 19:27:06 +00:00
William S Fulton
2a449306f1 Fix D test-suite clean
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12399 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-18 06:53:59 +00:00
William S Fulton
a440369e35 Move a couple of runme files which into the correct directories
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12397 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-17 21:25:04 +00:00
William S Fulton
5d99aa7864 Remove svn:executable property
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12396 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-17 21:20:29 +00:00
William S Fulton
3d7799fe0d New warning when the smartptr feature is missing in some classes in an inheritance chain. Errors test-suite now uses Python instead of Tcl as testing language
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12395 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-17 21:12:35 +00:00
Ian Lance Taylor
ef3644f052 Add string & length typemap for Go.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12394 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-14 21:31:36 +00:00
William S Fulton
ef865e06d5 Added some missing multi-argument typemaps: (char *STRING, size_t LENGTH) and (char *STRING, int LENGTH) - Java patch is from Volker Grabsch. Elements of the primitive_types.i testcase for this moved into char_binary.i. Documentation for this enhanced.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12393 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-14 19:06:43 +00:00