Commit graph

2,157 commits

Author SHA1 Message Date
William S Fulton
7ba19e7586 Document node v12 support and minimum is now v6
Code to remove support for node v0.10 upto v6 is still to be removed.
2021-02-24 22:22:36 +00:00
Zackery Spytz
c12ab1f012 Fix attribution error for Python buffers fix in CHANGES.current
[skip ci]

Closes #1940.
2021-02-01 20:41:54 +01:00
William S Fulton
638ca8152d complex can now be used as an identifier
Remove final vestiges of 'complex' keyword.

Closes #252
2020-10-10 16:07:55 +01:00
William S Fulton
8edb047785 Update changes file with complex fixes 2020-10-10 15:27:22 +01:00
William S Fulton
0034b3572e Update changes file 2020-10-07 22:42:56 +01:00
William S Fulton
b84cd9c53e Update changes file 2020-10-07 22:29:56 +01:00
William S Fulton
c1b004f4fa Add access modifier support for interface feature
Add ability to change the modifiers for the C# and Java
interface generated when using the %interface macros.

For C# use the 'csinterfacemodifiers' typemap.
For Java use the 'javainterfacemodifiers' typemap.

For example:

  %typemap(csinterfacemodifiers) X "internal interface"

Closes #1874
2020-09-25 18:54:25 +01:00
William S Fulton
c8ac73513b changes file entry for C# wchar_t csvarout fix 2020-09-24 22:39:01 +01:00
William S Fulton
b018c32f9d Fix crashes in swig_connect_director during director class construction.
Occurs when using the director class from multiple threads - a race condition
initialising block scope static variables.

Block scope static variables are guaranteed to be thread safe in C++11,
so the fix is guaranteed when using C++11. However, most modern compilers
also fix it when using C++03/C++98.

Closes #1862
2020-08-28 18:23:47 +01:00
William S Fulton
e774fe5cfd Python 3.9 support for -builtin
Add missing initializer for member ‘_heaptypeobject::ht_module’ to complete
Python 3.9 support.
2020-08-27 20:22:39 +01:00
William S Fulton
9c50887daa Python 3.9 support
Remove PyEval_InitThreads() call for Python 3.7 and later as Python calls
it automatically now. This removes a deprecation warning when using Python 3.9.

https://docs.python.org/3/c-api/init.html#c.PyEval_InitThreads
2020-08-27 19:37:26 +01:00
William S Fulton
ec2b47ef2a Remove need for Python 2to3
All Python examples and tests have been written to be both Python 2 and Python 3
compatible, removing the need for 2to3 to run the examples or test-suite.

The 2to3 executable is not always available and even when available does not
always work, e.g. with pyenv. An alternative would be to use the lib2to3 Python
module instead, but this isn't available in some older versions of Python 3.

I had this problem on Ubuntu Bionic on Travis:

  checking Examples/python/callback
  pyenv: 2to3-3.8: command not found
  The `2to3-3.8' command exists in these Python versions:
    3.8
    3.8.1

Reference issues:
  https://github.com/pypa/virtualenv/issues/1399
  https://travis-ci.community/t/2to3-command-not-found-in-venv-in-bionic/4495
2020-08-15 18:04:58 +01:00
William S Fulton
143837ddf1 Update changes file 2020-08-13 16:26:50 +01:00
William S Fulton
ce4164b66d Add director comparison operator fix to changes file 2020-06-14 23:09:11 +01:00
William S Fulton
470d1926f8 Bump version to 4.1.0 2020-06-08 20:47:47 +01:00
William S Fulton
3c007e81d6 swig-4.0.2 release notes 2020-06-07 23:03:06 +01:00
William S Fulton
a70998889b Changes file updates 2020-06-07 11:32:16 +01:00
Karl Wette
d9c94848ec octave.cxx: fix exception raising for newer Octave versions
- Since (at least) Octave 5.1.0, the Octave error() function now raises a C++
  exception, which if uncaught immediately exits a SWIG wrapper function,
  bypassing any cleanup code that may appear after a "fail:" label.
- This patch adds a "try { ... } catch(...) { }" block around the contents of
  SWIG wrapper functions to first execute the cleanup code before rethrowing any
  exception raised.
- It is backward compatible with earlier versions of Octave where error() does
  not raise an exception, which will still branch to the "fail:" block to
  execute cleanup code if an error is encountered.
2020-05-31 06:43:15 +10:00
William S Fulton
f5e1e689fc changes file update 2020-05-28 23:53:03 +01:00
Vadim Zeitlin
034a6d54ee Merge branch 'master' of https://github.com/vapier/swig
Use $PKGCONFIG instead of hard-coded pkg-config for JS test.

See https://github.com/swig/swig/pull/1796
2020-05-24 22:08:23 +02:00
William S Fulton
3a329566f8 Update changes file 2020-02-18 22:14:21 +00:00
William S Fulton
b465531141 Add conversion operator fix to changes file 2020-02-14 07:39:02 +00:00
William S Fulton
e631b226ca Add changes entry for vector<shared_ptr<>> memory leak fix 2020-02-13 19:23:37 +00:00
William S Fulton
012d0f7aa5 Update changes file 2020-02-06 19:09:00 +00:00
William S Fulton
a01e8474f6 Fixing setting this in Python when using __slots__
Don't attempt to use the class's __dict__ for setting 'this' when
a user has extended a class with:
    __slots__ = ['this'].
Was segfaulting. Now we fall back to a simple PyObject_SetAttr if the
usual approach to setting 'this' in __dict__ does not work.

Closes #1673 Closes #1674
2020-02-06 07:08:16 +00:00
William S Fulton
e321ee30f0 Changes file correction 2020-01-31 22:28:24 +00:00
William S Fulton
8c1c01f5e6 Add changes entry for Python string error checking fix 2020-01-31 19:18:23 +00:00
William S Fulton
a5d50729c1 Update changes file with python crash fix 2020-01-31 19:02:42 +00:00
William S Fulton
995b443948 Changes file update 2020-01-30 20:49:01 +00:00
William S Fulton
f0c9229287 Add changes entry about R attribute fix 2020-01-30 18:56:59 +00:00
William S Fulton
f971bbffc8 Add changes entry for upcasting of shared_ptr's 2020-01-24 19:54:52 +00:00
William S Fulton
6e240e8fba Fix segfault parsing varargs with -doxygen
Closes #1643
2020-01-16 19:16:35 +00:00
William S Fulton
19e7648d25 Add changes entries for recent doxygen improvements 2020-01-16 07:51:06 +00:00
William S Fulton
ae1e736c1b Memory leak fix handling empty /// doxygen comments 2020-01-16 07:47:53 +00:00
William S Fulton
0b57b60aec Add changes entry for improved doxygen support 2020-01-14 18:56:38 +00:00
William S Fulton
5ce839932c Merge branch 'OCaml-caml_named_value-const'
* OCaml-caml_named_value-const:
  [OCaml] Fix compilation errors with OCaml 4.09.0
2020-01-13 19:46:29 +00:00
William S Fulton
3759fcf999 Merge branch 'builtin-ctor-kwargs'
* builtin-ctor-kwargs:
  Python -builtin constructors silently ignored keyword arguments.
2020-01-13 19:29:47 +00:00
William S Fulton
67e8334ac8 Python -builtin constructors silently ignored keyword arguments.
Instead of silenty ignoring them, now a "TypeError: f() takes no keyword arguments"
exception is thrown if keyword arguments are used. Hence constructors and normal
methods/functions behave in the same way.

Closes issue #1595
2020-01-13 19:26:22 +00:00
William S Fulton
bc39311cc9 Add changes entry for missing python 3.8 field initializers 2020-01-05 22:45:16 +00:00
William S Fulton
dca59bb5f7 Add changes entry for Octave swig_this() fix for Windows 64bit 2020-01-05 11:14:16 +00:00
William S Fulton
6c476ba3cf Ruby 2.7 support 2020-01-05 10:38:15 +00:00
William S Fulton
9d1244c712 Add changes entry for Ruby -globamodule fix 2019-12-30 23:52:39 +00:00
Zackery Spytz
02862fb278 [OCaml] Fix compilation errors with OCaml 4.09.0
caml_named_value() was modified to return a const value* in OCaml
4.09.0.

Closes #1686.
2019-12-29 22:41:43 -07:00
William S Fulton
aa47b4c438 Fix some C++11 identifiers with special meaning parsing problems
Fix parsing of C++11 identifiers with special meaning (final and override) when
they are used as part of the scope name of an identifier, such as a namespace name.

Closes #1679
2019-12-10 19:26:05 +00:00
William S Fulton
6fb345feb2 'out' or 'ref' usage in a cstype typemap in directors
'out' / 'ref' was not always stripped out in parts of the
director code generation.

Issue #1628
2019-11-26 19:32:34 +00:00
William S Fulton
cb5d7398b5 Fix bug in Python builtin support for keyword args
The fix is when using kwargs feature or -keyword.
The fix is in the argument error checking when wrapping zero
argument constructors only. Supplied keyword args were silently
ignored.

Issue #1595
2019-11-01 19:46:42 +00:00
William S Fulton
c48d11ac17 Bump version to 4.0.2 2019-08-22 06:55:39 +01:00
William S Fulton
1e36f51346 Add swig-4.0.1 summary to release notes 2019-08-20 22:34:03 +01:00
William S Fulton
dfcc11042f Add %native Javascript to changes file 2019-08-20 18:57:35 +01:00
William S Fulton
5c2e0b2c5e Add SWIG_JavaIllegalStateException to changes file 2019-08-20 07:12:58 +01:00