Olly Betts
48bb7e0e95
Simplify PHP backend code
2021-12-13 09:27:58 +13:00
Olly Betts
7d70402306
Update PHP source comment
...
We no longer wrap anything as a PHP resource.
2021-12-13 09:27:58 +13:00
Olly Betts
bf68b377e6
Remove unused code from PHP backend
...
These are leftovers from the work on wrapping using only PHP's C API.
2021-12-13 09:27:58 +13:00
Olly Betts
4467c94fe9
Fix removeNode() to really unset previousSibling
...
There was a typo in attribute name so we attempted to remove the
non-existent attribute prevSibling instead.
2021-12-10 18:34:21 +13:00
Olly Betts
fd013c344a
[php] Remove unused variable
...
SWIG_module_entry hasn't actually been used for any of git history
which is over 19 years.
2021-12-10 17:10:35 +13:00
Olly Betts
c60507ef70
[php] configure: Check for php8.1 binary
2021-12-08 13:10:38 +13:00
Olly Betts
c0c7a8dba0
[php] Fix two incorrect PHP 8 conditionals
...
The correct macro to test is PHP_MAJOR_VERSION so these two PHP 8 cases
weren't ever used, which hid that the PHP8 version of the code was
broken in one of them.
Highlighted in #2113 .
2021-12-08 13:10:38 +13:00
William S Fulton
7246cfa6c6
Merge pull request #2116 from vstinner/python311
...
Add Python 3.11 support: use Py_SET_TYPE()
2021-12-07 20:32:31 +00:00
Victor Stinner
e902ab5160
Add Python 3.11 support: use Py_SET_TYPE()
...
On Python 3.9 and newer, SwigPyBuiltin_SetMetaType() now calls
Py_SET_TYPE(). Py_TYPE() can no longer be usd as an l-value on
Python 3.11:
* https://docs.python.org/dev/c-api/structures.html#c.Py_SET_TYPE
* https://docs.python.org/dev/whatsnew/3.11.html#c-api-changes
2021-12-06 23:17:33 +01:00
William S Fulton
e0935404a8
Add Octave 6 to changes file
2021-12-05 22:31:05 +00:00
William S Fulton
5ada46bcce
Whitespace consistency fix in CI-linux-install.sh
2021-12-05 22:26:25 +00:00
William S Fulton
3947df87a2
GHA: Test Octave 6.4
2021-12-05 22:24:51 +00:00
Robert Fries
983b91694f
Additional changes due to name changes in octave-6 * is_map to isstruct, is_object to isobject
2021-12-05 22:19:46 +00:00
Robert Fries
81f9e6600f
Octave module lets examples and tests work with Octave-6 * Try-catch replacement for check of error_state * Add execute method in addition to call * Replace oct_mach_info with octave::mach_info * Call from interpreter: global_varval global_assign * Assign a global name requires locating the stack which requires interpreter to tree evaluator to callStack * Do not use discard_error_messages or discard_warning_messages
2021-12-05 22:19:46 +00:00
Robert Fries
852eab7db3
Allow swig wrapped modules to compile with -Bsymbolic
2021-12-05 22:19:40 +00:00
Olly Betts
883b42dc70
[php] Ensure _runme.php calls check::done()
...
This function doesn't do anything currently so these missing calls are a
latent issue. It could be used for e.g. memory leak checking in the
future though, and it's potentially a useful place to add code when
debugging.
2021-12-05 12:40:44 +13:00
Olly Betts
ee3c9bd697
[php] Check fooCount() in newobject1_runme.php
2021-12-05 12:40:44 +13:00
William S Fulton
8432d3f89b
GHA: Test currently supported php versions 7.0-8.1
2021-12-04 09:35:51 +00:00
William S Fulton
5bdc20781b
Remove bom in Windows.html
2021-12-02 11:53:13 +00:00
William S Fulton
a5f85beb2d
HTML doc fixes
2021-12-02 11:38:41 +00:00
William S Fulton
e2384796f0
Add Python embedded interpreters fix to changes file
2021-12-02 09:01:31 +00:00
William S Fulton
be51cb6a6e
Merge branch 'fix-crash-2101'
...
* fix-crash-2101:
Added extern "C" block that was removed in previous commit.
Fixed crashes when using embedded Python interpreters.
2021-12-02 09:01:18 +00:00
Olly Betts
c25df74807
[php7] Use destructor action if present
...
If there's a destructor, use its action instead of free(ptr)
(for C)/delete ptr (for C++).
Fixes #2108
2021-12-02 19:15:34 +13:00
Olly Betts
51f586bc4c
Merge pull request #2111 from swig/remove-obsolete-js-support
...
Remove obsolete js support
2021-12-02 18:09:30 +13:00
Olly Betts
bebb3d4c21
[ci] Remove CI build for unsupported v8 3.14
...
We only support v8 5.0 and later now.
libv8-dev is no longer packaged in newer Ubuntu releases, so it
seems there isn't an easy way to update this to test a supported
v8 version, but really v8 via node is the configuration people will
actually use anyway.
2021-12-02 14:31:28 +13:00
Olly Betts
7c97bd5ab3
[js] Remove code to handle v8 < 5.0
...
We require at least node v6 which means v8 5.0, so code to handle
older v8 is no longer useful.
2021-12-02 14:04:25 +13:00
Olly Betts
e30dfeaab9
[js] Update docs re v8 support
...
We require at least node v6 (which means v8 v5.0) since
7ba19e7586 so updated the manual to
reflect this.
2021-12-02 14:01:27 +13:00
John Senneker
160b8c5da3
Added extern "C" block that was removed in previous commit.
2021-12-01 15:15:24 -05:00
William S Fulton
f17b6bda93
Merge branch 'fix_SWIG_V8_VERSION'
...
* fix_SWIG_V8_VERSION:
[javascript][v8] SWIG_V8_VERSION generation method corrected.
2021-12-01 18:22:29 +00:00
William S Fulton
26d693105a
GHA: Test node versions 6,8,10
...
Test the documented minimum version 6 and some later versions
as was done on Travis.
Using ubuntu-18.04 as I couldn't get these versions to work on newer
ubuntu-20.04 (some horrid c++ compilation errors)
2021-12-01 18:21:07 +00:00
John Senneker
ebe14e6e2a
Fixed crashes when using embedded Python interpreters.
...
Fixes #2101 . There are 3 related changes made here:
1. Move the SWIG_globals() singleton into pyrun from pyint so it
is visible to SWIG_Python_DestroyModule(). The static globals
varlink has been extracted out of the function so that it can
be set to NULL in SWIG_Python_DestroyModule(), which fixes the
issue described in #2101 . (Now when the second interpreter
starts up, the Swig_Globals_global pointer will be NULL, so it
knows it has to create a new one.)
2. Remove a Py_DECREF on the globals varlink. The decrement is now
performed by DestroyModule(), so there's no need to do it in
SWIG_init().
3. Fixed similar issue with SWIG_Python_TypeCache().
2021-11-30 16:13:17 -05:00
William S Fulton
0304bdb82b
GHA: Add testing of node 17
...
Also remove duplicate test of node 14
2021-11-27 13:56:49 +00:00
Vadim Zeitlin
6a56426f8f
Use JSC version available in Ubuntu 20.04 in the CI builds
...
Use the newer OS and JavaScript Core library versions for the CI build,
we don't have to remain with the old version here, as the newer one
works too.
2021-11-27 13:51:34 +00:00
William S Fulton
a39c2695f2
Merge pull request #2100 from rex4539/typos
...
Fix typos
2021-11-24 18:41:26 +00:00
William S Fulton
3354345255
GHA: switch ocaml testing to ubuntu-18.04
2021-11-17 22:27:00 +00:00
William S Fulton
9f8e9109be
Update CI system wrt experimental languages
2021-11-17 22:18:06 +00:00
William S Fulton
07f18bef36
GHA: Test experimental languages - mzscheme and ocaml
...
These are allowed to fail and they won't fail the
overall build (like they did on Travis).
Implemented via the continue-on-error flag that Github Actions provides.
2021-11-17 21:23:59 +00:00
Dimitris Apostolou
f586d920f7
Fix typos
2021-11-17 07:07:02 +02:00
William S Fulton
ac9f819f6e
Don't run appveyor when modifying Github Actions CI files
2021-11-16 19:48:22 +00:00
William S Fulton
0ec35cf24e
GHA: Test Scilab 6.0 on ubuntu-18.04
...
6.1 on ubuntu-20.04 not yet working
2021-11-16 19:48:22 +00:00
William S Fulton
dbab08ec21
Scilab testing: don't hang on error
2021-11-16 19:48:22 +00:00
William S Fulton
9f5ad6debd
Scilab JAVA_HOME environment fix
...
This might be needed on Github Actions as well as Travis??
2021-11-16 19:48:22 +00:00
William S Fulton
2582e3fc75
GHA: Add in Scilab testing
2021-11-15 23:03:02 +00:00
William S Fulton
63733a3b5c
Short struct name in cpp11_final_override for Scilab
2021-11-15 22:56:29 +00:00
William S Fulton
99954d6d4e
Shorten testcase variable names for Scilab 6 to work
2021-11-15 22:45:56 +00:00
William S Fulton
b53b2f1a27
Shorter names in cpp11_rvalue_reference3 testcase for Scilab
2021-11-15 22:13:27 +00:00
William S Fulton
606491326e
Scilab compilation fix when wrapping C++11 enum classes
2021-11-15 20:19:12 +00:00
William S Fulton
75cacc1325
CC and CXX override improvements in examples
...
Use the overridden CC and CXX compiles when linking
when overriding at make time.
Previously the following would use CC and CXX specified at
configure time when linking:
make CC=gcc-11 CXX=g++-11
2021-11-15 19:55:26 +00:00
William S Fulton
e6b6fa93aa
Fix guile examples for C11 and later conformance
2021-11-15 19:25:41 +00:00
William S Fulton
47d39ed3d8
GHA: Add Guile to c++11,c++14,c++17 testing
2021-11-15 08:17:32 +00:00