William S Fulton
15ebf3df03
Fix assertion handling defaultargs
...
Occurs when using %extend for a template class and the extended methods
contain default arguments.
Closes #611
2016-05-07 12:33:29 +01:00
William S Fulton
b0ba1cae76
html doc fixes
...
[skip ci]
2016-05-06 07:36:58 +01:00
William S Fulton
bf24c11645
Correct default arg link in Python docs
...
[skip ci]
2016-05-06 07:36:53 +01:00
William S Fulton
c4b7605638
Add changes entry for Python operator/ fixes
2016-05-05 23:06:35 +01:00
William S Fulton
5e6ab1d61d
Merge branch 'ejulien-python_operator_overload_test_suite'
...
* ejulien-python_operator_overload_test_suite:
Add __str__ to operator_overload testcase for python builtin
Python operator_overload runtime testcase cleanup
Work around a limitation of the Python binding generator related to the += family of operators.
Fix Python 3 division member operator when -builtin is not used.
Fix class member division operator.
Remove the PY3BUILTIN switch as its behavior can be achieved with the existing SWIG_FEATURES=-builtin switch.
Implement the operator overload test suite for Python.
Conflicts:
Examples/test-suite/operator_overload.i
2016-05-05 23:01:35 +01:00
William S Fulton
9ceee4ba87
Correct documentation link for Typemap delimiters
2016-05-05 21:12:54 +01:00
William S Fulton
e7f9a3e8f4
Add __str__ to operator_overload testcase for python builtin
...
Just for debugging the testcase with -builtin
2016-05-05 21:10:52 +01:00
William S Fulton
a09ef99606
Python operator_overload runtime testcase cleanup
...
Remove C test code comment ... this code is in operator_overload.i already
2016-05-05 20:28:22 +01:00
Vadim Zeitlin
b97612f1d6
Make check-failing-test make macro more hygienic
...
Minor fix to avoid using the variable defined outside of the macro in its
expansion.
See #665 .
2016-05-03 17:23:25 +02:00
William S Fulton
3efdbc8f2e
Don't issue unnecessary base class ignored message
...
Don't warn about base class being ignored when the derived class is
itself ignored.
Closes #669
2016-05-02 22:50:09 +01:00
William S Fulton
e28b7f1fcf
Workaround cgo declarations after statements in Go Travis tests
...
These should be fixed when go-1.7 is released
2016-05-02 21:28:12 +01:00
William S Fulton
8666b99e74
Test Go 1.5 on Ubuntu Trusty on Travis
...
1.5 is the default version on Trusty (VER=1.5 added just for display on Travis)
2016-05-02 21:24:48 +01:00
William S Fulton
06657a9814
Merge pull request #668 from dnwillia-ansys/fix-gcc-warnings
...
Remove gcc warnings when using -Wconversion in SWIG_UnpackData.
2016-05-02 00:19:22 +01:00
William S Fulton
57f1c378b2
Remove JNI checks due to numerous spurious warnings in some versions of jdk-1.8
...
Was happening with openjdk-1.9 on Ubuntu 16.04 Xenial Xerus and also seen in jdk-1.8 on Fedora 23 (jdk-1.8.0_65-b17)
2016-05-01 17:35:55 +01:00
William S Fulton
cc15fcebd0
Fix java testcase for jdk-1.9
...
Package.getName() returns an empty string instead of null in jdk-1.9
exposing bug in use of replaceAll whose 1st arg is a regex expression.
2016-05-01 16:32:15 +01:00
William S Fulton
6db5556456
Add Lua 5.3 testing on Travis
2016-05-01 12:43:47 +01:00
William S Fulton
07b2f5ac09
Detect newer versions of Lua during configure
2016-05-01 11:53:29 +01:00
William S Fulton
e952a19a3d
Fix examples for lua 5.3
2016-05-01 11:52:02 +01:00
William S Fulton
a8110e3761
Correct Python docs example
...
Fix PyTuple_SetItem in argout typemap
Fix from Bob Hood on swig-user mailing list
[skip ci]
2016-04-30 12:58:22 +01:00
Dan Williams
7bcf3ddc89
Remove gcc warnings when using -Wconversion. Right side of expressions are signed char.
2016-04-27 10:55:22 -04:00
William S Fulton
e0728f582a
Merge pull request #665 from vadz/check-failing
...
Add check-failing target to check that failing tests still do fail
2016-04-21 07:01:46 +01:00
Vadim Zeitlin
9a7114cc38
Add check-failing target to check that failing tests still do fail
...
This is useful to remove the tests which pass after the latest fixes from the
list of the failing tests.
2016-04-20 19:55:29 +02:00
Vadim Zeitlin
3aafd9373f
Merge branch 'allow-failing-tests'
...
Closes #661 .
2016-04-20 01:52:32 +02:00
Vadim Zeitlin
4f222aa78e
Show the number of passed tests in "make check"
...
This is especially useful when some tests are disabled by using
FAILING_XXX_TESTS variables.
2016-04-20 01:52:22 +02:00
Vadim Zeitlin
3b58402cb2
Complain about any new shift/reduce conflicts in the grammar
...
Uncomment the "%expect" statement, there are no known Bison versions for which
it doesn't work and it's useful to fail the build if any new conflicts are
introduced.
Closes #478 .
2016-04-20 01:50:04 +02:00
Ian Lance Taylor
ef4d7628a9
[Go] Fix use of goout typemap in non-cgo mode.
2016-04-18 20:35:29 -07:00
Ian Lance Taylor
0f54384ee3
[Go] Fix use of goout typemap when calling base method by
...
forcing the "type" attribute to the value we need.
2016-04-18 15:30:06 -07:00
Vadim Zeitlin
79b665f9ff
Add a possibility to disable failing test cases
...
Allow defining FAILING_{C,CPP,MULTI_CPP}_TESTS variables to exclude some tests
from the unit tests suite. This is useful to disable tests failing for some
language only.
2016-04-18 20:51:30 +02:00
Ian Lance Taylor
9cd3e28c4e
[Go] Fix "in" typemap for char *&.
2016-04-17 22:20:28 -07:00
Ian Lance Taylor
223c2a4835
[Go] Fixes for Go 1.6: avoid returning Go pointers from
...
directors that return string values; add a trailing 0 byte
when treating Go string as C char*.
2016-04-17 17:52:09 -07:00
William S Fulton
f1d1d7b490
Merge pull request #654 from vadz/naming-formats-refactor
...
Refactor naming formats code to reduce duplication
2016-04-13 06:59:49 +01:00
joequant
bddf4892c4
Merge pull request #645 from richardbeare/RCharacterVectorSupport
...
R character vector support
2016-04-12 19:33:34 +08:00
Vadim Zeitlin
891565a3ca
Refactor several Swig_name_xxx() functions into a single one
...
All Swig_name_{construct,copyconstructor,destroy,disown}() functions were
almost exactly identical, just replace them with a single make_full_name_for()
function to avoid code quadplication.
2016-04-11 16:50:41 +02:00
Vadim Zeitlin
3d7806bbe6
Refactor code accessing naming_hash
...
No real changes, but avoid repeating the same snippet of code, looking up
something in a hash and falling back to the default value if it's not present
there, in many places and use a simple wrapper get_naming_format_for()
function instead.
The wrapper function is also marginally more efficient than the old code as it
avoids creating the naming hash just to check if the key is in it -- we can be
pretty sure it isn't, if the hash hadn't existed before.
2016-04-11 16:39:44 +02:00
William S Fulton
ec2c67f59b
Merge pull request #647 from smarchetto/master
...
[Scilab] #552 pointer type tracking: fix doc and CHANGES
2016-04-06 21:51:03 +01:00
Simon Marchetto
988717c140
scilab: fix space
2016-04-06 15:06:46 +02:00
Simon Marchetto
db29b6a005
scilab: update CHANGES with pointer type tracking
2016-04-06 15:03:53 +02:00
Simon Marchetto
6c254d1ebb
scilab: fix doc (pointer type tracking)
2016-04-06 13:22:59 +02:00
Simon Marchetto
9f4ad6e7dc
scilab: fix pointer type name
2016-04-06 13:22:59 +02:00
Olly Betts
4890a70c37
CHANGES.current: Note fix isn't python-specific
...
Fixes https://github.com/swig/swig/issues/615
2016-04-05 18:42:46 +12:00
Richard Beare
f7b794a4f3
run test and copying typemaps to std::string
2016-04-05 10:06:42 +10:00
Richard Beare
720c4d3dfc
added R string vector to C++ std::vector of strings
2016-04-05 09:39:47 +10:00
William S Fulton
a97441613e
Merge branch 'ahnolds-py_gettar'
...
* ahnolds-py_gettar:
update changes file for attribute fix
Add python AttributeError test for non-existent attribute
Fixing python attribute lookup
Conflicts:
CHANGES.current
2016-04-02 18:06:03 +01:00
William S Fulton
f19fd513ea
update changes file for attribute fix
2016-04-02 18:04:25 +01:00
William S Fulton
333a46f07d
Add python AttributeError test for non-existent attribute
2016-04-02 18:03:08 +01:00
William S Fulton
80e3ebf0d1
html doc fixes
2016-04-02 13:47:23 +01:00
William S Fulton
355f2623c7
Improve documentation for multi-argument typemaps and overloading
2016-04-02 13:44:44 +01:00
William S Fulton
bbd1b8ed05
Add tests for Python -builtin -O and compactdefaultargs and update changes file
2016-04-02 11:29:54 +01:00
Ling Li
79bb343ffe
Fix single arguments using python -builtin -O with %feature("compactdefaultargs")
...
Setattr argcount for non-default-args and non-varargs functions.
Fixes #607
Closes #610
2016-04-02 11:29:43 +01:00
William S Fulton
1d62790928
Fix assertion for some languages when wrapping a C++11 enum class that is private in a class.
...
Also don't wrap private enums for a few languages that attempted to do so.
Closes #594 .
2016-03-31 20:27:36 +01:00