William S Fulton
2946576efb
Workaround for Octave crashing at extit in the mods and multi_import testcases
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12684 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-05-18 00:29:36 +00:00
William S Fulton
f35dd29dff
Apply #3300072 from Christian Delbaere to fix multiple module loading not always sharing variables across modules.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12680 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-05-17 18:12:53 +00:00
William S Fulton
74aa3f218f
%varargs - better documentation and remove additional argument generation which didn't work properly as a sentinel
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12666 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-05-14 00:13:43 +00:00
William S Fulton
6e87b73c40
reorder tests alphabetically
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12665 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-05-14 00:11:40 +00:00
William S Fulton
d2dd14e628
Python 3.2 portability fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12663 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-05-13 06:01:07 +00:00
Stefan Zager
a52612f845
Fixed PyGetSetDescr for python3.2.
...
Fixed memory management in special_variable_macros test.
Don't define asdict() for multimap.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12659 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-05-08 06:54:21 +00:00
William S Fulton
cba65bd524
revert 12657 - incorrect changes made
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12658 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-05-06 21:10:01 +00:00
William S Fulton
769b26d575
Fix %varargs when used with a numerical argument, which was emitting one more optional argument than documented
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12657 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-05-06 20:56:42 +00:00
William S Fulton
db9e973ab8
Rev 12650 - rename runtime component of varargs_typemap testcase
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12652 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-05-03 05:38:41 +00:00
Ian Lance Taylor
045861e9c5
Rename varargs_typemap test case to python_varargs_typemap, and move
...
to Python Makefile.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12650 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-05-02 21:11:15 +00:00
William S Fulton
8358fd401e
vc++ compile failure workaround in testcase
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12648 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-04-30 20:59:13 +00:00
Stefan Zager
e629b192e2
Fixed the argument counts passed to SWIG_Python_UnpackTuple for varargs.
...
Removed obsolete methods from std_map.i and pyiterators.swg.
Added builtin-check target to python test suite Makefile.
Fixed using_namespace_loop.i so that the generated wrappers will compile.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12644 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-04-29 18:25:16 +00:00
Stefan Zager
4b9ef9bc99
Bug 1498929: Access to member fields of map elements.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12643 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-04-25 21:12:33 +00:00
Stefan Zager
5fbcb711eb
Fix for bug 3286333: infinite recursion with mutual "using namespace" clauses.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12640 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-04-14 04:22:03 +00:00
Stefan Zager
8f07b3f851
Testcase and fix for bug 1163440: vararg typemaps.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12639 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-04-12 18:55:24 +00:00
Stefan Zager
71a7a52b16
Test case for bug 3285386
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12638 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-04-12 16:35:09 +00:00
Stefan Zager
cade0f6533
Fixed bug 3285386: parse error from 'operator T*&()'
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12637 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-04-12 16:34:31 +00:00
William S Fulton
fd666c1440
new %import test for vector
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12633 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-04-11 21:28:06 +00:00
David Nadlinger
f9def91f30
[D] Ported r12557 (char enum values).
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12630 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-04-10 16:10:42 +00:00
William S Fulton
93c1939370
Fix wrapping of const array typedefs which were generating uncompileable code
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12616 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-04-08 07:02:31 +00:00
Stefan Zager
96c76cf9c0
Added .PHONY targets
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12615 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-04-07 21:20:10 +00:00
Stefan Zager
8c290f56bf
Previous commit inadvertantly hosed this test; restored it.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12614 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-04-07 05:22:52 +00:00
William S Fulton
b2b9e2eb91
Python builtin - warning suppression/fixes for 'gcc -Wall' and cosmetic changes in generated code.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12609 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-04-05 20:39:44 +00:00
Stefan Zager
bc9a32a658
Merged from branches/szager-python-builtin
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12596 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-04-03 08:33:41 +00:00
Stefan Zager
0cdf8658c7
Final merge from trunk
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12595 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-04-03 07:37:35 +00:00
Stefan Zager
f759999f40
Merged trunk through revision 12591
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12592 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-04-03 03:14:19 +00:00
Stefan Zager
a403518d03
Restore director_basic test
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12591 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-04-02 21:40:39 +00:00
Stefan Zager
90fe22acf7
Fix for METH_O and -compactdefaultargs, in two parts:
...
- Don't mark a method as METH_O if it has compactdefaultargs
- In SWIG_Python_UnpackTuple, allow for a non-tuple 'args'.
Added compatibility for python versions 2.3 and 2.4. These are only
partially supported; inheriting from wrapped types looks problematic.
Versions older that 2.3 are unlikely ever to work.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12590 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-04-02 21:40:00 +00:00
William S Fulton
f24d1b99b1
Add in missing wrappers for friend functions for some target languages
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12588 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-04-01 23:06:40 +00:00
William S Fulton
12e1ce4d1a
Better debugging info for C# test cases
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12587 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-04-01 22:56:58 +00:00
Stefan Zager
769f6648c8
Added test case for python richcompare operators.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12577 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-31 03:55:42 +00:00
William S Fulton
a886b71a47
test case fix
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12567 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-29 22:21:08 +00:00
William S Fulton
60a1c5eed3
Apply patch 3224663 for Tcl - NULL value fixes and performance improvements for classes with many methods.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12563 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-29 18:57:42 +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
39921e87d9
Merge from trunk.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12561 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-28 22:18:07 +00:00
Stefan Zager
5f935225ec
Merged from trunk.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12560 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-28 22:16:44 +00:00
William S Fulton
b13ec94386
SF bug #3195112 - fix wrapping of enums that are type char
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12557 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-26 15:28:31 +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
William S Fulton
f5feb6cc24
Fix regression introduced in swig-2.0.2 where filenames with spaces were not found when used with %include and %import
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12546 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-17 07:33:05 +00:00
William S Fulton
5f1c242f1a
Apply patch #3212624 fixing std::map Keys property.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12540 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-15 07:30:18 +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
Olly Betts
5d765893ed
Simplify test-suite/overload_return_type.i (checked that it still fails before
...
the fix it's a regression test for) and added _runme.php for it.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12538 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-14 11:58:58 +00:00
Olly Betts
c61cc387bc
Fix comment typo
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12537 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-14 09:49:27 +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
ff965c1aff
[D] std.algorithm.indexOf() was deprecated, use countUntil() instead.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12531 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-13 00:30:21 +00:00
William S Fulton
6d7acd2615
linker fix for smart_pointer_template_const_overload testcase
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12530 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-13 00:16:44 +00:00
William S Fulton
52e59d530d
gcc-4.5 warning fix
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12529 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-12 21:37:35 +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
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