Commit graph

14,913 commits

Author SHA1 Message Date
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
1677881e01 Remove typemap for illegal type
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12477 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-19 01:23:07 +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
049e51c282 Remove pointless special casing of zero-length strings, remnant of a series
of changes Marcelo made here.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12472 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-18 08:44:44 +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
Olly Betts
3cee7b7b3e [PHP] Fix invalid erase during iteration of std::map in generated
director code.  Reported by Cory Bennett in SF#3175820.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12469 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-18 05:30:26 +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
4ac99b5f96 Documentation numbering update
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12466 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-17 21:51:10 +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
7ad6066fdf Retrospectively add note about earlier fix for better typedef resolution fixing some STL issues.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12463 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-15 22:29:00 +00:00
William S Fulton
c12853c65c [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@12462 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-15 07:41:26 +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
7d700cc999 patch #3176274 - Ruby typecheck typemap for time_t.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12459 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-13 22:19:46 +00:00
William S Fulton
fb6f48dda4 Apply patch #3171793 from szager - protected director methods failing when -fvirtual is used.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12458 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-13 16:33:12 +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
ac42dd8153 remove duplicate UTL char * typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12456 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-13 01:27:02 +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
5f8c936569 Fix some eroneous typecheck rankings for php
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12439 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-05 22:58:32 +00:00
William S Fulton
9ad833abed Add mzscheme tip from bug #2942899
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12438 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-05 15:45:36 +00:00
William S Fulton
00fadeebdc SF #2942899 Add user supplied documentation to help getting started with MzScheme.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12437 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-05 14:35:16 +00:00
William S Fulton
1f46e84212 SF #2942899 Add user supplied documentation to help getting started with MzScheme. Update chapter name to MzScheme/Racket accounting for the rename of MzScheme to Racket.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12436 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-05 14:30:36 +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
ae0683a2d3 SF #3173367 Better information during configure about Boost prerequisite for running the test-suite. BOOST_CPPFLAGS can only be used though once common.mk is created at configure time.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12434 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-05 12:47:56 +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
74883f1dd7 [PHP] SF #3166423 Recent PHP versions no longer define zend_error_noreturn - calls to this have been replaced with zend_error.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12430 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-04 20:25:59 +00:00
William S Fulton
7fe18eaacb SF #3141139 better callback documentation
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12429 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-04 19:50:55 +00:00
William S Fulton
867e6a9986 [clisp] SF #3148200 Fix segfault parsing nested unions.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12428 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-04 19:43:24 +00:00
William S Fulton
0be280bf72 Add link to runtime information developer doc
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12424 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-03 07:20:34 +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
96609f350e Document behaviour of --without-<lang> options
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12414 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-30 00:46:31 +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
David Nadlinger
0731ad0a6a [D] Docs: Mention the "pre", "post" and "terminator" din typemap attributes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12412 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-29 23:04:06 +00:00
David Nadlinger
0efe5294ed [D] Docs: Cosmetic fix to $imcall HTML anchor name.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12411 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-29 23:03:51 +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
828fac25cb [D] Don't break function return types in typemaps.i.
This fixes the new "li_typemaps_apply" testcase as done for C# in r12400.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12409 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-29 21:32:36 +00:00
David Nadlinger
de53ede681 [D] Fix byte/ubyte confusion in typemaps.i.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12408 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-29 21:32:23 +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
David Nadlinger
160ee9c937 [D] Support for C++ references to primitive types.
I am not sure why these typemaps were missing before since I included code for this in the C++ part of the feature, but please let me know if I missed some case where this could break generated code.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12406 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-29 21:31:53 +00:00
David Nadlinger
85ed05c241 [D] Tiny typo fix.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12405 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-29 21:31:40 +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