William S Fulton
084a3c7205
Run make beautify on python.cxx to fix code style to match style on szager-builtin branch
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12514 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-03 19:33:25 +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
a984b01cc5
Remove unnecessary header, which bizarrely broke the mingw build on linux
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12506 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-20 20:18:37 +00:00
William S Fulton
0a5ca9ccd6
Fix potential name clash in director class
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12501 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-20 13:47:14 +00:00
Ian Lance Taylor
a1c931f0a3
For Go: Recognize the SWIG varargs type.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12499 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-20 05:55:05 +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
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
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
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
Olly Betts
630e438c6a
[PHP] Address bug in PHP on some platforms/architectures which
...
results in zend_error_noreturn() not being available using
SWIG_ZEND_ERROR_NORETURN which defaults to zend_error_noreturn but
can be overridden when building the module by passing
-DSWIG_ZEND_ERROR_NORETURN=zend_error to the compiler. This may
result in compiler warnings, but should at least allow a module
to be built on those platforms/architectures (SF#3166423).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12479 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-19 13:28:43 +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
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
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
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
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
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
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
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
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
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
18a4f389f9
Update to support current Go releases.
...
The Go foreign function interface changed. This changes SWIG
accordingly, and also fixes a couple of bugs.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12389 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-11 18:46:50 +00:00
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
25c8689226
Use htmldoc's new --overflow option and fix overflow warnings in the pdf documentation generation
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12379 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-08 01:28:09 +00:00
David Nadlinger
91523f7510
[C#, D, Java] Check for collision of parameter names with target language keywords when generating the director glue code.
...
The situation in which the generated could would previously be invalid is illustrated in the new 'director_keywords' test case.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12358 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-12-30 15:40:17 +00:00
William S Fulton
9a0f7ed06c
Some more constness added to DOH and code comment consistency changes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12356 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-12-23 20:30:41 +00:00
William S Fulton
7f4283f684
Fix special variable not being expanded for csvarin typemaps when used for global variables
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12354 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-12-23 20:27:34 +00:00
William S Fulton
babfccc072
Remove accidental commit of CHANGES.current
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12350 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-12-15 22:00:23 +00:00
William S Fulton
1adc50e730
constify SwigType * in many places
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12349 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-12-15 21:55:08 +00:00
William S Fulton
bb2d758920
Use a SwigType instead of String where expected including call to SwigType_manglestr
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12348 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-12-15 20:37:40 +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
William S Fulton
c8c3e13065
function prototype in comment fix
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12337 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-12-08 19:35:52 +00:00
William S Fulton
5558d0092a
Remove bad usage of a String rather than SwigType for D directors
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12330 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-12-07 21:15:05 +00:00
William S Fulton
61fefd8cc4
Remove bad usage of a String rather than SwigType for csharp directors
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12325 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-12-07 20:12:17 +00:00
William S Fulton
02750e80a3
Fix #3127394 - use of network paths on Windows/MSys.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12322 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-12-06 20:43:56 +00:00
William S Fulton
d87c312fd0
Corrections to calls to SwigType_manglestr to use a genuine SwigType
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12320 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-11-29 07:49:42 +00:00
David Nadlinger
3477a9dff1
[D] Replaced the term "wrap D module" with "intermediary D module" (including names derived from it).
...
This was suggested by wsfulton on the mailing list in order to bring the D module in line with the C# one, the naming scheme of which is intended to be language-independent.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12319 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-11-28 23:12:03 +00:00
David Nadlinger
a22df2eca9
[D] Refer to the built-in Exception class using its fully-qualified name.
...
A C++ class called "Exception" could shadow the built-in one before, leading to compilation errors in the exception handling code.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12318 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-11-27 00:13:44 +00:00
William S Fulton
75ad4f57b9
Incorrect mangling leading to some cast errors in the Go director destructors
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12315 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-11-26 20:28:39 +00:00
William S Fulton
004643ff30
Fix mangling of PHP constructor wrapper when types use global scope or typedefs
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12309 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-11-25 20:39:11 +00:00
William S Fulton
e0c82f6f2b
portability fix
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12308 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-11-25 20:35:10 +00:00
David Nadlinger
e362f85431
[D] Use __cdecl instead of __stdcall on Windows as well to avoid special casing.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12303 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-11-22 00:33:26 +00:00
David Nadlinger
d69d8ff641
[D] Renamed the "dnativeconst" feature to "dmanifestconst".
...
This should make it clearer that it controls manifest constant generation, not handling of C++ const member functions.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12300 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-11-18 10:16:05 +00:00
David Nadlinger
03aefbc6e9
Added support for the D programming languge.
...
It is still a bit rough around some edges, particularly with regard to multi-threading and operator overloading, and there are some documentation bits missing, but it should be fine for basic use.
The test-suite should build and run fine with the current versions of DMD, LDC and Tango (at least) on Linux x86_64 and Mac OS X 10.6.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12299 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-11-18 00:24:02 +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
Vadim Zeitlin
953c4abaca
Use rename list and not hash for renames with regextarget attribute.
...
Renames which are regular expressions can't be put in the regex hash as they
don't literally match the real declarations names. Instead, put them in the
rename list against which we will match the declarations names later.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12292 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-11-16 14:09:09 +00:00