William S Fulton
9b0e06a8e8
Seg fault fix running uffi tests
2018-01-14 13:27:01 +00:00
William S Fulton
ab5559f51c
Fix out of bounds memory problems in handling simple macro arguments
...
Fixes handling macro in swigmacros.swg:
#define %arg(Arg...) Arg
AddressSanitizer error running Python test-suite.
2018-01-14 13:25:57 +00:00
William S Fulton
af8d176c40
java_throws testcase warning fix
2018-01-12 23:10:02 +00:00
William S Fulton
368cd3b52c
Add ToArray test for C# std::vector wrapper
2018-01-12 18:26:47 +00:00
William S Fulton
6227013da4
Merge branch 'master' of https://github.com/Liryna/swig into Liryna-master
...
* 'master' of https://github.com/Liryna/swig :
[C#] Add ToArray to std_vector.i
2018-01-12 18:02:33 +00:00
William S Fulton
6ec5d03947
Merge pull request #1142 from jder/csharp-doc-fix
...
Copy over Java documentation changes on possible GC issues to C# docs
2018-01-12 07:52:20 +00:00
William S Fulton
49af1907b8
Add missing Java throws clause for interfaces when using the %interface family of macros.
...
Fixes #1156 .
2018-01-12 07:34:32 +00:00
William S Fulton
c44adff7b9
Merge pull request #1177 from Sigill/sigabrt_rubyunlinkobject_fix
...
Do not abort when unlinking non-data ruby objects
2018-01-07 12:23:47 +00:00
William S Fulton
0d588d19ad
Fix out of source clean target in import_packages Makefile
2018-01-07 00:57:23 +00:00
William S Fulton
3066f8950c
Minor tweaks in import_packages Makefile
2018-01-06 23:19:04 +00:00
William S Fulton
b0c910ac96
Fix out of source import_packages Makefile
2018-01-06 23:12:52 +00:00
William S Fulton
830422a87b
Fix Makefile and skip testing python-2.4 for import_packages test
2018-01-05 20:17:08 +00:00
William S Fulton
6607acdf3a
Merge branch 'davedissian-redundant-typedef-fix'
...
* davedissian-redundant-typedef-fix:
Add more runtime typedef_classforward_same_name runtime testing
Fixed 'typedef class Foo Foo;' edge case by iterating through linked list.
Added test case for a forward declaration in a typedef with the same name
2018-01-06 15:27:52 +00:00
William S Fulton
aef25cff0c
Add missing default_arg_expressions.i testcase
2018-01-05 18:31:48 +00:00
William S Fulton
ef378407d0
Fix parsing of default argument expressions containing ->.
2018-01-05 07:58:25 +00:00
William S Fulton
cd9b7c3c34
std_basic_string.i fixes
...
- Remove python code from octave's std_basic_string.i
- Correctly return an error to fix error handling when using std::basic_string in
overloaded methods - issue #1171 .
2018-01-04 07:00:26 +00:00
William S Fulton
ce6960de92
Add more runtime typedef_classforward_same_name runtime testing
2017-12-31 16:37:27 +00:00
William S Fulton
0beec3cf73
Travis testing: use new deadsnakes repository for testing various python versions
...
See https://github.com/deadsnakes/issues/issues/53
2017-12-31 16:19:40 +00:00
William S Fulton
3c30dec661
Remove php5 generated files inadvertently checked in
2017-12-31 16:19:39 +00:00
William S Fulton
aff36823df
Complete switch from pep8 to pycodestyle for Python testing
2017-12-31 16:19:39 +00:00
William S Fulton
0b0aed6842
Fix pycodestyle 'E722 do not use bare except'
2017-12-31 16:19:39 +00:00
William S Fulton
d1e5f1e0c8
Switch to using pycodestyle instead of pep8
2017-12-31 16:17:59 +00:00
David Avedissian
3617e22fda
Fixed 'typedef class Foo Foo;' edge case by iterating through linked
...
list.
Suggested fix by wsfulton
2017-12-31 00:37:43 +00:00
David Avedissian
6b2bcfed0b
Added test case for a forward declaration in a typedef with the same
...
name
2017-12-27 16:36:45 +00:00
Cyrille Faucheux
a4884e45e1
Do not abort when unlinking non-data ruby objects
...
Fixes issue #1168 .
Remove a call to abort() (introduced by commit
0e725b5d9b ) made when SWIG_RubyUnlinkObjects()
is called on non T_DATA objects. It can happen when the destruction of T_DATA
objects is deferred: the Ruby GC first turn them to T_ZOMBIE, then calls their
free method (SWIG_RubyUnlinkObjects()).
2017-12-27 14:40:26 +01:00
William S Fulton
589b7237e9
Tweak Perl's director method's $result variable generation.
...
Use same code as other languages - no real change in output.
2017-12-19 07:49:16 +00:00
William S Fulton
717b7866d4
Perl - Add support for missing directorfree typemaps
...
Related to issue #1167 , to free up memory when returning reference types.
SWIG_Perl_AcquirePtr still needs implementing.
2017-12-14 07:51:45 +00:00
William S Fulton
e86c881a70
Fix directorout typemaps which were causing undefined behaviour when returning pointers by reference.
...
Closes #1167
2017-12-14 07:00:42 +00:00
Olly Betts
224bb9e023
[PHP] Use ZEND_MODULE_GLOBALS_ACCESSOR to access globals
...
This should make the generated code work with PHP 7.2.0.
2017-12-08 15:50:14 +13:00
William S Fulton
b0e29fbdf3
Add missing checks for failures in calls to PyUnicode_AsUTF8String.
...
Previously a seg fault could occur when passing invalid UTF8 strings (low
surrogates), eg passing u"\udcff" to the C layer (Python 3).
2017-12-04 20:14:04 +00:00
William S Fulton
069ce1f6e9
Merge branch 'java-director-exceptions'
...
* java-director-exceptions:
Add recent Java director enhancements to the changes file
Replace DirectorException::raiseJavaException with DirectorException::throwException
Improve Java director exception customization documentation
Add Swig::DirectorException directorthrows typemap for Java
Cosmetic whitespace improvement in generated code from throws typemaps.
Tidy up director_exception testcase
Changes to use common DirectorException class
Improved Java director exceptions documentation
Java director exception handling improvements
2017-11-29 20:32:40 +00:00
William S Fulton
bf21e80267
Add recent Java director enhancements to the changes file
2017-11-29 20:32:15 +00:00
William S Fulton
901f8357b0
Replace DirectorException::raiseJavaException with DirectorException::throwException
...
This is part of a plan to provide a common DirectorException api for
throwing the target language exception raised during a director method call.
2017-11-29 20:32:15 +00:00
William S Fulton
34712c0108
Improve Java director exception customization documentation
2017-11-29 20:32:15 +00:00
William S Fulton
406c7a732a
Add Swig::DirectorException directorthrows typemap for Java
...
For use with a global %catches(Swig::DirectorException)
2017-11-29 20:32:15 +00:00
William S Fulton
eef3e7aa8f
Cosmetic whitespace improvement in generated code from throws typemaps.
2017-11-29 20:32:15 +00:00
William S Fulton
91080872a8
Tidy up director_exception testcase
2017-11-29 20:32:15 +00:00
William S Fulton
923091da13
Changes to use common DirectorException class
...
Add director.swg for Go as was completely absent.
This is just the start of a common exception handling approach to directors.
An exception thrown in a Java director method will be propogated back to
Java via a C++ DirectorException.
DirectorException throws typemap for Java is fully working, all other languages need work.
DirectorException throws typemap for Perl added just to fix compilation errors.
Add director_exception_catches test.
2017-11-29 20:31:55 +00:00
Joseph C Wang
4e8c515d36
add new tests and coercion files for null fix #1124
2017-11-26 03:43:39 +08:00
Joseph C Wang
9c32a1e722
fix null changes to work with C90 compilers
2017-11-26 03:42:32 +08:00
Joseph C Wang
5525abfea8
add support files and regression tests for #1124
2017-11-25 01:37:14 +08:00
Joseph C Wang
0b97170f1d
fix #1124 - return R_NilValue for null pointer objects
...
This fixes #1124 and returns R_NilValue for null pointer objects
2017-11-24 23:43:02 +08:00
William S Fulton
077bb0b04f
Improved Java director exceptions documentation
2017-11-16 20:03:58 +00:00
William S Fulton
7aa28e37ec
Java director exception handling improvements
...
When a director method throws an exception and it is caught by DirectorException
and passed back to Java using DirectorException::raiseJavaException, the Java
stack trace now contains the original source line that threw the exception.
Director exception handling code improved slightly to add some missing
ExceptionClear calls before calling JNI code.
2017-11-10 19:50:22 +00:00
Jesse Rusak
77c653f078
Use actual swig output
2017-11-04 11:08:33 -04:00
Jesse Rusak
7c4f2462ff
Fix typo
2017-11-04 11:07:27 -04:00
Jesse Rusak
9259bed7fb
Copy over Java changes to C#
2017-11-04 10:47:23 -04:00
William S Fulton
7d6808daab
Small code simplification using SwigValueWrapper
...
Closes #1139
2017-11-03 07:11:12 +00:00
William S Fulton
8e733c0b92
Minor doc enhancement for %array_function
2017-11-02 19:01:18 +00:00
William S Fulton
e2679822b1
Doc corrections to make pep8 conformant
2017-11-02 07:41:54 +00:00