Stefan Zager
51ef340eed
Converted rest of slot outputting to use printSlot.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12583 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-31 21:26:12 +00:00
Stefan Zager
f1cb5b7ca6
Bug fix: missing quotation mark on autodoc string
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12582 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-31 20:37:23 +00:00
Stefan Zager
bc200998b1
Added usage message for -builtin, and tweaked -builtin docs.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12574 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-30 19:51:22 +00:00
Stefan Zager
3d444101d1
A slew of changes based on William Fulton's code review.
...
- Fixed naming conventions; SwigPyBuiltin is used a lot
- Removed use of std::vector
- builtin.swg isn't included if -builtin isn't specified
- Changed many feature names to use a "python:" prefix
- Eliminated static vars in std_pair.i
- Eliminated C++-style comments (//)
- Enabled autodoc and docstring with -builtin
- Fixed non-ansi generated C code
- Detect and complain if two incompatible swig modules are loaded
- Removed argcargvtest_runme3.py, and fixed argcargvtest_runme.py
so that 2to3 handles it better
- Removed anonymous namespaces
- Eliminated builtin_init typemaps; consolidated functionality into
SWIG_Python_NewPointerObj
- Eliminate printf warnings from %U conversion character by switching
to %S, which works just as well
- Fixed li_std_set_runme.py for python3, which returns set members in
a different order from python2
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12562 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-29 06:57:02 +00:00
Stefan Zager
93499e12af
Merged trunk up to revision 12551
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12552 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-24 05:46:05 +00:00
David Nadlinger
7709e0303a
[D] Added -d2 switch to usage information.
...
Previously, it was documented in the manual, but not present in the command line usage text.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12545 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-16 17:20:45 +00:00
David Nadlinger
ac375e90a8
[D] Whitespace cleanup.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12544 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-16 17:20:21 +00:00
Ian Lance Taylor
e63bc0ab13
Don't emit unused "fail" label.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12543 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-16 14:06:03 +00:00
Olly Betts
72fc8be46c
[PHP] Fix handling of overloaded methods/functions where some
...
return void and others don't - whether this worked or not depended
on the order they were encountered in (SF#3208299).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12539 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-14 12:33:56 +00:00
William S Fulton
a63d456f8a
Remove redundant code highlighted by warnings in gcc-4.6
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12536 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-14 07:22:08 +00:00
David Nadlinger
ce6516fb4c
[D] nspace support.
...
As for C# and Java, this doesn't work for free functions/variables yet.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12534 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-13 00:32:26 +00:00
David Nadlinger
a63cde3827
[D] Removed "-noproxy" switch from usage text.
...
I forgot to remove it from the list when I stripped the (undocumented and untested) code paths for it, which was even before the merge to trunk.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12533 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-13 00:31:13 +00:00
David Nadlinger
fb538c1b5b
[D] Avoid implicit cast warning when building for x86_64.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12532 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-13 00:30:51 +00:00
William S Fulton
c8b89bd075
Fix partial overloading warning messages appearing
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12527 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-11 22:36:59 +00:00
William S Fulton
5f4d8c6112
Fix SF #3194294 - corner case bug when 'NULL' is used as the default value for a primitive type parameter in a method declaration.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12525 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-09 22:31:08 +00:00
William S Fulton
b69b793d8e
Better consistency in usage display
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12524 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-09 21:42:38 +00:00
Olly Betts
24053d7789
[PHP] Don't use zend_error_noreturn() for cases where the function
...
returns void - now this issue can only matter if you have a function
or method which is directed and returns non-void.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12523 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-07 23:05:01 +00:00
William S Fulton
d008ab2bc6
Remove local mode editor setting - editors should be set up correctly for the whole of SWIG
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12517 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-03 19:42:43 +00:00
William S Fulton
cca5a76d91
Minor rewrites of some recent builtin changes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12516 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-03 19:39:48 +00:00
William S Fulton
908c37cef8
Coding style fixes for Python builtin changes added on the szager-builtin branch
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12515 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-03 19:34:18 +00:00
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
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
Stefan Zager
ea4cab8e4c
A small unicode fix.
...
A partial fix for the problem with overloading, varargs,
and fastunpack: with this fix, the wrappers will compile.
However, they still contain faulty logic and unreachable
code in the dispatch function.
The comprehensive fix would have to be in overload.cxx.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12465 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-17 05:52:18 +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
Stefan Zager
b5889b8b0f
Unicode fixes for python3.
...
Added a few more closure types.
Guard against operator overloads outside of a class declaration.
Incorporate fix for patch #3171793 .
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12446 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-09 08:59:09 +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
Stefan Zager
52a807ce95
Merged trunk up to revision 12426
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12427 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-03 19:30:45 +00:00
Stefan Zager
cd93c7362e
Applied patch #3171793 to fix -fvirtual. Mostly disabled python_abstractbase, since builtin types can't inherit from pure-python ABC's. Duck typing still works.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12426 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-03 18:10:39 +00:00
Stefan Zager
62fef1bf99
python3 support; passes all regressions.
...
Adding argcargvtest_runme3.py, because 2to3 can't handle it.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12425 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-03 07:21:37 +00:00
Stefan Zager
00b5fa9c47
Now passes regressions with '-O -builtin'. Almost all changes
...
are to accomodate -fastunpack.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12423 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-02 10:28:46 +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
Stefan Zager
9c796f0333
Merged changes from trunk up to revision 12416.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12417 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-30 05:24:00 +00:00
Stefan Zager
288c37f5bf
Regressions pass! With a few tweaks for unsupported features, primarily:
...
- Throwing wrapped types as exceptions is unsupported.
- Reverse comparison operators (e.g., __radd__) aren't supported.
Rationalized destructors.
Finished std::map implementation. Required fixes to typecheck for
SWIGTYPE* const&.
Need a little special handling of the swig_type_info for SwigPyObject
when multiple modules are loaded.
Fall back to SwigPyObject_richcompare if there's no operator overload.
"memberget" and "memberset" attrs are applied strangely; work around
them.
Added 'this' attribute.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12415 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-30 03:17:28 +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
Stefan Zager
d4b8048e9a
Stopped using template class SwigPyBuiltin, because it caused problems
...
when two typedef-equivalent types are wrapped as separate classes.
Now failing on refcount.cpptest.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12392 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-12 00:43:01 +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
Stefan Zager
8ac54d1d5e
Director issues should be mostly clean now.
...
Refactored some type initialization out of SWIG_init.
Use __all__ attribute of module to define public interface.
This is necessary to make available symbols starting with '_'.
Now dying on li_boost_shared_ptr. Looks like it's gonna be ugly.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12373 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-06 00:09:25 +00:00