William S Fulton
4f948d01d6
Merge branch 'illegal_state_except'
...
* illegal_state_except:
[Java] Add support for throwing IllegalStateException
2019-08-20 07:06:46 +01:00
William S Fulton
1e8dad2084
Add note to changes file about Lua tostring change
2019-08-19 07:57:17 +01:00
William S Fulton
87a0dd2d90
Merge branch 'sjml-patch-1-lua-print'
...
* sjml-patch-1-lua-print:
removing unnecessary bits
closer match to Python's output
typo
actually seeing both is useful
matching code conventions
Lua userdata print pointing to wrapped memory
2019-08-19 07:48:23 +01:00
Brad Kotsopoulos
85edc6de99
[Java] Add support for throwing IllegalStateException
2019-08-18 23:33:11 -04:00
Ian Lance Taylor
62136ff782
Fix Go version check and Go in-tree example tests
...
Fixes #1607
2019-08-09 14:06:45 -07:00
Ian Lance Taylor
6b108c19e1
Restore setting of GOVERSIONOPTION
...
Accidentally removed in last commit.
2019-08-08 22:59:57 -07:00
Ian Lance Taylor
7aafe3d8b2
Fix all Go tests to build with "go build"
...
Tested against Go 1.6 through Go 1.13beta1, and gccgo.
Fixes #1607
2019-08-08 14:30:50 -07:00
William S Fulton
5e2b8f3ec9
Merge branch 'python-stl-overloading'
...
* python-stl-overloading:
Python STL container method overloading fix
2019-08-08 18:58:49 +01:00
William S Fulton
bef1fab3e6
Add changes entry for %constant enum fix
2019-08-08 07:47:49 +01:00
William S Fulton
fb776e1900
Merge branch 'cshar-fix-enum-constants'
...
* cshar-fix-enum-constants:
Fix invalid code generated for "%constant enum EnumType ..." and add a test.
2019-08-08 07:44:21 +01:00
William S Fulton
86cb3a9532
Python STL container method overloading fix
...
Fix method overloading of methods that take STL containers of different types.
Due to some error handling that was not cleared during typehecking.
2019-08-06 19:36:14 +01:00
Shane Liesegang
49a8e28eb9
removing unnecessary bits
2019-08-02 23:10:19 +02:00
Shane Liesegang
fe758f3e05
closer match to Python's output
2019-08-02 23:05:53 +02:00
William S Fulton
87bf8ae7aa
Merge pull request #1604 from vadz/init-doc
...
Correct %init documentation for C#/Java
2019-08-01 19:58:03 +01:00
William S Fulton
3cc4b21163
Parameter name expansion fix for template functions.
...
Fix regression in 4.0.0 where a template function containing a parameter
with the same name as the function name led to the parameter name used in the
target language being incorrectly modified.
Closes #1602
2019-08-01 19:46:16 +01:00
Rokas Kupstys
06345e2aa5
Fix invalid code generated for "%constant enum EnumType ..." and add a test.
2019-08-01 08:55:07 +03:00
William S Fulton
0d76eb3b56
The errors testcases use -module to obtain a unique module name
...
Fixes parallel make where each invocation of swig was writing and
deleting the same file resulting in lots of the newly introduced
warning messages:
On exit, could not delete file xxx.py: No such file or directory
2019-07-31 00:08:49 +01:00
William S Fulton
2cf075558c
Replace all exit() with SWIG_exit()
...
For consistent cleanup on error
2019-07-31 00:08:49 +01:00
William S Fulton
b36ae64185
Remove all generated files on error.
...
Previously generated files were not removed,
potentially breaking Makefiles using file dependencies, especially when
-Werror (warnings as errors) was used.
2019-07-31 00:08:49 +01:00
William S Fulton
f69da524f0
Exit code change when using -Werror
...
Exit code is now sum of all errors, not just warnings as errors.
I'm can't think why the exit code wasn't like this in the first
place.
2019-07-31 00:08:49 +01:00
William S Fulton
98f29f8ad9
Remove deprecated DohClose in DOH
2019-07-31 00:08:49 +01:00
Vadim Zeitlin
a4432a68da
Correct %init documentation for C#/Java
...
For these languages, %init doesn't inject the code into the
initialization function (because there is none), but just puts it into
the global scope instead.
[skip ci]
2019-07-30 21:12:04 +02:00
Shane Liesegang
9c5b97ae36
typo
2019-07-28 00:43:01 +02:00
Shane Liesegang
b145c49375
actually seeing both is useful
2019-07-27 20:47:18 +02:00
William S Fulton
753c50afd7
Update docs on %typecheck precedence levels
2019-07-25 18:57:10 +01:00
William S Fulton
15a0681b11
Add note about wchar_t marshalling fix required for Windows
2019-07-25 18:57:10 +01:00
Vadim Zeitlin
0ff6893b2d
Make Python module source non-executable again
...
0f88f9997c (probably accidentally) changed
this file to be executable, undo this as it doesn't make sense for a
source file to have this mode.
See #1242 .
2019-07-24 20:10:35 +02:00
William S Fulton
c7aae28a99
Remove failing wchar c# test
2019-07-24 08:35:13 +01:00
William S Fulton
10f0329e4b
Add changes entry for C# std::wstring marshalling fix
2019-07-23 22:16:04 +01:00
William S Fulton
55b5552a6a
More C# wstring testing
2019-07-23 19:57:06 +01:00
William S Fulton
2d36b3468a
More C# wstring testing
2019-07-23 19:41:25 +01:00
William S Fulton
eb6efdb60b
C# wstring testing
...
Test code from issue #1530
2019-07-23 19:10:35 +01:00
smithx
03f7745364
fix undesirable wstring encoding at return value marshalling for C#
2019-07-22 19:11:21 +01:00
smithx
8f6d97ab8c
fix undesirable wstring encoding at return value marshalling for C#
2019-07-22 19:11:21 +01:00
William S Fulton
a9a7b03ba6
Split testcases li_std_wstring.i and li_std_wstring_inherit.i
...
Not many languages have support for std_wstring.i, so disable testing
for these languages until added.
2019-07-22 19:05:21 +01:00
Shane Liesegang
ac47e4b76a
matching code conventions
2019-07-20 07:09:24 +02:00
Shane Liesegang
0c2b454eb3
Lua userdata print pointing to wrapped memory
...
This is actually a fix to some functionality that I submitted many years ago. :) At the time I set the string conversion to output the userdata address, but since that points to an internal SWIG structure, it's way more useful to the user to point to the actual memory being wrapped in that userdata.
2019-07-20 07:05:38 +02:00
William S Fulton
5131096b80
li_std_wstring test rename to li_std_wstring_inherit
...
This testcase was only run in Ruby and Python and implements an
obscure feature where a C++ class inherits from a std::wstring.
The li_std_wstring test is left in place to be modified in next commit
for more regular wstring testing across all languages.
2019-07-18 19:49:50 +01:00
William S Fulton
d6ec7eb278
Update changes file with recent Python improvements
2019-07-18 07:59:34 +01:00
William S Fulton
835c732506
Merge branch 'py3.8'
...
* py3.8:
Use PyObject_GC_UnTrack in lieu of the old variant
2019-07-18 07:55:33 +01:00
William S Fulton
c8b1eed8ce
Merge branch 'annotation_quoting'
...
* annotation_quoting:
Examples: Unify string quoting in the Python sources
Test-suite: Unify string quoting in the Python sources
Tools: Unify string quoting in the Python sources
Generator: Unify string quoting in generated Python sources
Generator: Remove trailing whitespaces in the Python module
2019-07-18 07:23:06 +01:00
Christian Kellner
db9822788e
Use PyObject_GC_UnTrack in lieu of the old variant
...
The _PyObject_GC_UNTRACK[1] macro got deprecated in 3.6 and finally
removed in 3.8. Therefore use PyObject_GC_UnTrack instead.
[1] https://docs.python.org/3/c-api/gcsupport.html#c._PyObject_GC_UNTRACK
2019-07-17 11:15:17 +02:00
William S Fulton
53b425b638
Merge branch 'bugfix/616-csharp-bool-array'
...
* bugfix/616-csharp-bool-array:
Add changes entry to fix C# bool[]
Quieten failing bool[] testcase message
Skip failing bool[] test cases when running under mono
Change C# bool[] typemaps to marshall as 1-byte
2019-07-16 19:51:32 +01:00
William S Fulton
a7fa720c1f
Add changes entry to fix C# bool[]
2019-07-16 19:50:35 +01:00
William S Fulton
fc9c37192b
Quieten failing bool[] testcase message
2019-07-16 19:46:32 +01:00
Gareth Francis
15ad67c37f
Skip failing bool[] test cases when running under mono
2019-07-15 16:08:31 +01:00
Dmitry D. Chernov
f88ba7c182
Examples: Unify string quoting in the Python sources
2019-07-14 14:12:23 +10:00
Dmitry D. Chernov
fa5f519bf9
Test-suite: Unify string quoting in the Python sources
2019-07-14 12:58:21 +10:00
Dmitry D. Chernov
c4ad3480bd
Tools: Unify string quoting in the Python sources
2019-07-14 11:15:36 +10:00
Dmitry D. Chernov
c20b6f5b0e
Generator: Unify string quoting in generated Python sources
2019-07-14 11:08:17 +10:00