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
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