Olly Betts
ba3773e1be
preproc.i: Shorten classname for scilab
...
Errors were:
../../../../../../Examples/test-suite/scilab/../preproc.i:400: Error: Wrapping functions names for member 'tcxMessageTestSlashSlash.mHeader' will exceed 24 characters, please rename the container of member 'tcxMessageTestSlashSlash'.
../../../../../../Examples/test-suite/scilab/../preproc.i:408: Error: Wrapping functions names for member 'tcxMessageBugSlashSlash.mBid' will exceed 24 characters, please rename the container of member 'tcxMessageBugSlashSlash'.
2018-03-08 06:10:08 +13:00
Olly Betts
538ce62775
Add CHANGES.current entry for previous fix
2018-03-07 14:50:42 +13:00
Olly Betts
d5e012f70f
Add test coverage for // comment fix
2018-03-07 14:49:08 +13:00
Luca Longinotti
30719feaf9
Fix handling of // comments inside macro arguments
...
/* */ are already handled correctly.
This completes the fix from commit
624ec3e1b7 related to swig/swig#974 .
2018-03-07 14:49:08 +13:00
William S Fulton
d4badb3e1d
Travis OSX Python 3 build fix for recent changes in brew
2018-03-03 14:31:03 +00:00
William S Fulton
e435f3b93b
Document command-line options file support in changes file
2018-02-18 21:12:10 +00:00
William S Fulton
e9ee1014e7
Merge branch 'JPEWdev-via-file'
...
* JPEWdev-via-file:
Add documentation for option files
Add option file support
Terminate options when passed via env var
2018-02-18 20:58:20 +00:00
William S Fulton
7fbdd21b49
Javascript - Fix compilation error wrapping std::complex via std_complex.i
...
Closes #1187
2018-02-11 11:12:24 +00:00
William S Fulton
449ba627f5
Typo fix in SWIGPlus.html docs
2018-02-07 23:07:22 +00:00
Simon Marchetto
1647135369
[scilab] fix compilation (checked with the additional compiler options)
2018-02-01 14:31:52 +01:00
Simon Marchetto
7a9ee39412
[Scilab] fix compilation error
2018-02-01 10:09:35 +01:00
Simon Marchetto
862501480e
add type name argument in SWIG_ptr() function to cast from pointer adress to typed pointers
2018-01-30 16:34:31 +01:00
William S Fulton
72964a1faf
Don't accept some invalid preprocessor code
...
Whitespace or non-numeric characters are required after a preprocessor
directive that requires an expression.
2018-01-16 08:07:37 +00:00
William S Fulton
532999f4f2
Improve error message when preprocessor expressions result in a floating point constant
...
Instead of a syntax error, the error is now:
Warning 202: Error: 'Floating point constant in preprocessor expression'
2018-01-15 08:09:14 +00:00
William S Fulton
ea5b55ecf4
Fix floating point division by zero in preprocessor expressions.
...
Closes #1183
2018-01-15 07:51:18 +00:00
William S Fulton
07a30249f4
Fix seg fault parsing invalid exponents
...
Add error message when exponents are incomplete,
for example 5e and 5.e
2018-01-14 19:36:09 +00:00
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
Joshua Watt
bc89aad59f
Add documentation for option files
2018-01-12 15:01:45 -06:00
Joshua Watt
e9b4d3378b
Add option file support
...
Arguments may be passed using an option file prefixed with the '@'
character. Processing of option files is the same as for the same
feature in gcc.
2018-01-12 15:01:45 -06: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
Joshua Watt
7eff4e7c1d
Terminate options when passed via env var
...
The C standard requires that argv be terminated with a NULL pointer
(that is, argv[argc] == NULL). There are several places in the swig
codebase that require this to check for missing arguments. However,
SWIG_merge_envopt() was not keeping the NULL terminator, resulting in
argument parsing failures (typically program aborts) when arguments were
passed via the SWIG_FEATURES environment variable.
2017-12-04 09:28:17 -06: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