Karl Wette
695b88f1ac
Merge pull request #460 from opoplawski/octave4
...
Support for octave 4.0.0
2015-07-17 09:32:28 +02:00
William S Fulton
5a282f3ac3
c++11 test case fixes
2015-07-10 21:50:35 +01:00
Orion Poplawski
1d5d224328
Fix default_constructor_runme.m test
2015-07-10 11:59:45 -06:00
William S Fulton
3718b810c7
Don't generate constructor wrappers if a base class has a private constructor
...
g++-5 errors out with this now with errors such as:
default_constructor_wrap.cxx:665:27: error: use of deleted function ‘FFF::FFF()’
result = (FFF *)new FFF();
^
default_constructor_wrap.cxx:314:7: note: ‘FFF::FFF()’ is implicitly deleted because the default definition would be ill-formed:
class FFF : public F {
^
default_constructor_wrap.cxx:301:4: error: ‘F::~F()’ is private
~F() { }
^
default_constructor_wrap.cxx:314:7: error: within this context
2015-07-07 20:15:55 +01:00
William S Fulton
1514e19efb
Test-suite fixes for c++11 compilation by g++-5.1
2015-07-06 20:07:23 +01:00
William S Fulton
d325eeee84
Fix incorrect test case code
2015-07-06 19:50:22 +01:00
William S Fulton
fea1bbb188
Testcase workaround for Solaris
2015-07-05 17:16:37 +01:00
William S Fulton
af5906f915
parent_class testcase name warning fixes for PHP
2015-07-05 09:29:47 +01:00
William S Fulton
81f0050135
Perl5 carrays testcase fix
...
Number of loops is different since seg fault fix in e543299
2015-07-04 23:23:57 +01:00
William S Fulton
41fd7c17e0
Merge branch 'appveyor-check-test-suite'
...
* appveyor-check-test-suite:
Appveyor testing expanded
Fix array overrun in li_carrays testcase
Warning fixes in generated Python code for 64bit Visual C++ on Windows.
Warning fixes in generated C# code for 64bit Visual C++ on Windows.
Warning fixes for 64bit visual c++ on Windows
Warning fixes in generated Java code for 64bit Visual C++ on Windows.
Warning fixes for 64bit visual c++ on Windows
C# gc tests failure fix
Add a space between literal and string macro
2015-07-04 21:34:42 +01:00
William S Fulton
e543299d97
Fix array overrun in li_carrays testcase
2015-07-04 20:53:49 +01:00
William S Fulton
12dbbf13cc
Correct testcase use of typename to be inside a template II
2015-07-04 15:07:38 +01:00
William S Fulton
2b4dda39bb
Warning fixes in generated Python code for 64bit Visual C++ on Windows.
2015-07-03 20:59:25 +01:00
William S Fulton
c767b33c3f
C# gc tests failure fix
...
Sometimes the GC just won't run the finalizers, so we output a warning
instead of throwing an error, so now the test-suite will pass but with a
warning if the number of objects is not as expected.
li_std_auto_ptr was failing during Appveyor testing
An equivalent change was put into the corresponding Java runtime tests a
while back.
2015-07-03 20:59:24 +01:00
William S Fulton
335572170b
Correct testcase use of typename to be inside a template
2015-07-03 20:59:23 +01:00
William S Fulton
05397cf6a2
Fix syntax error when the template keyword is used in types
...
For example:
std::template vector<int> v;
2015-07-02 19:23:37 +01:00
Olly Betts
f1be7ad3ee
Merge pull request #452 from ngladitz/lua-char-typemap
...
lua: push characters as unformatted 1-character strings
2015-07-02 09:35:06 +12:00
Nils Gladitz
ca208cfe35
lua: push characters as unformatted 1-character strings
...
Since Lua 5.3 the "%c" format character in lua_pushfstring will produce
the string "<\XXX>" (XXX being a decimal code sequence) when
given unprintable characters.
Use lua_pushlstring instead to reproduce the old behavior.
2015-07-01 12:24:12 +02:00
Olly Betts
6528e380cb
Fix or workaround PEP8 warnings
2015-06-30 01:36:07 +12:00
Olly Betts
822b2355c0
Improve handling of whitespace in %pythoncode
...
Previously SWIG looked at the indentation of the first line and removed
that many characters from each subsequent line, regardless of what those
characters were. This was made worse because SWIG's preprocessor removes
any whitespace before a '#'. Fixes github issue #379 , reported by Joe
Orton.
2015-06-29 22:12:38 +12:00
William S Fulton
6890dfa881
Fix parse errors for C++11 type aliasing
...
Recently introduced by the fix for C++11 type aliasing seg fault - 117f6d00
2015-06-22 07:04:34 +01:00
Ian Lance Taylor
11d8403c3c
[Go] Fix member variables in base classes to handle CWRAP_NATURAL_VAR
...
correctly. Add a test case for the problem.
Fixes #339 .
2015-06-20 17:42:44 -07:00
Ian Lance Taylor
c6b3088e58
[Go] Add Makefile testing support for changes in upcoming Go 1.5 release.
...
No effect on the SWIG program itself.
2015-06-19 14:29:38 -07:00
William S Fulton
efa84dab7c
Fix warning display of types associated with 'using' and templates.
2015-06-09 07:59:49 +01:00
William S Fulton
117f6d0026
Fix C++11 type aliasing seg fault.
...
Closes #424
2015-06-09 07:59:22 +01:00
William S Fulton
b8e1a66a38
Add new feature "python:cdefaultargs"
...
Controls default argument code generation to obtain the default
arguments from the C++ layer instead of the Python layer.
2015-05-28 20:11:57 +01:00
William S Fulton
986a13f1a0
Fix Python typedef bool default arguments that are not booleans.
...
Includes code optimisation in PYTHON::convertValue().
Closes #327
2015-05-27 20:55:56 +01:00
Ian Lance Taylor
5bca063536
[Go] Fix bug with ignored destructor--generated code did not compile.
2015-05-18 09:53:13 -07:00
William S Fulton
1e19e4bd45
li_boost_shared_ptr_bits testcase fix for languages without shared_ptr support
2015-05-14 21:09:08 +01:00
William S Fulton
54e2317b24
Fix shared_ptr of classes with private constructors and destructors.
...
Usually these use a custom deleter passed to the shared_ptr.
This also fixes the "unref" feature when used on classes with private destructors.
2015-05-14 19:03:06 +01:00
William S Fulton
0f94ea9208
Example and test-suite makefile tidy up
...
Python output is less verbose if pep8 is not available (tweaks for patch #416 )
2015-05-11 00:09:40 +01:00
William S Fulton
2348d8377f
Merge branch 'yazug-python_test_suite_pep8_whitespace_cleanup'
...
* yazug-python_test_suite_pep8_whitespace_cleanup:
autopep8 cleanup of Examples/test-suite/python
2015-05-10 18:44:14 +01:00
William S Fulton
21aef52194
Merge branch 'yazug-python_examples_pep8_whitespace_cleanup'
...
* yazug-python_examples_pep8_whitespace_cleanup:
Fixup 2 additional whitespace warnings pep8 found
Add pep8 check for Examples/python
autopep8 cleanup of Examples/python whitespace
2015-05-10 18:43:37 +01:00
William S Fulton
6c1630b152
Fix Java multi-argument typemaps (char *STRING, size_t LENGTH)
...
Now they can be applied to a wider range of types.
Closes #385 .
2015-05-10 13:35:51 +01:00
William S Fulton
b4c441f62e
Remove unused std_string.i from callback examples
2015-05-10 11:49:28 +01:00
Jon Schlueter
b77f3afafb
autopep8 cleanup of Examples/test-suite/python
...
automated cleanup of python pep8 whitespace compliance
2015-05-08 21:35:52 -04:00
Jon Schlueter
b909d0c680
Fixup 2 additional whitespace warnings pep8 found
...
E241 multiple spaces after ','
cleanup in enum/runme.py and constants/runme.py
2015-05-08 10:35:04 -04:00
Jon Schlueter
ae8554bb4c
Add pep8 check for Examples/python
...
build step as part of build process for make check-python-examples
warnings from pep8 are not treated as failures.
using same initial ignore list as used for test-suite pep8
2015-05-08 08:46:06 -04:00
Jon Schlueter
7770715457
autopep8 cleanup of Examples/python whitespace
...
automated cleanup only of the Examples/python example code
2015-05-08 08:46:06 -04:00
Olly Betts
c2972b8bf0
[Python] Deal with an integer as the default value of a bool
...
parameter in the C++ prototype. Fixes github #327 , reported by
Greg Allen.
2015-05-07 16:25:32 +12:00
Olly Betts
8fc7796643
Merge pull request #403 from LindleyF/master
...
Zero-initialize swig_override in the director constructor.
2015-05-07 13:26:04 +12:00
Olly Betts
b19d506db7
Suppress warning 325 "Nested class not currently supported (Foo
...
ignored)" when Foo has already been explicitly ignored with
"%ignore".
2015-05-05 18:07:49 +12:00
William S Fulton
428b6176df
Add support for friend templates, including operator overloading.
...
Closes #196 .
2015-05-05 06:48:25 +01:00
Ian Lance Taylor
e044dc4405
[Go] Fix Go multimap example to use Swig_AllocateString and swigCopyString.
2015-05-04 17:16:44 -07:00
Lindley French
3ce7867a0a
Added missing untracked files.
2015-05-04 15:27:51 -07:00
Lindley French
bd0fa56705
Added director_ref test.
2015-05-04 15:22:14 -07:00
Ian Lance Taylor
48263f4802
[Go] Make sure that arguments for which use memcpy when calling C are
...
still live after the call. This ensures that they will not be
collected if the GC runs during the call.
2015-05-04 15:11:31 -07:00
William S Fulton
140782054a
Fix unresolved symbols in testcase
2015-05-02 00:25:15 +01:00
William S Fulton
cf29b90a2b
Fix comments and newlines within operator definitions
...
Fix handling of conversion operators where the operator is split over multiple lines or
has comments within the operator type.
Also fix similar problem with normal operators which gave a syntax error if split over
multiple lines or had a comment within the operator declaration.
Closes #401
2015-05-01 19:22:38 +01:00
Olly Betts
50ba1ea6fa
Adjust testcase for unknown directive error
...
Fixes testcase failure caused by fix for issue #394 .
2015-04-30 15:27:12 +12:00