summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused Printf parametersphp-codegen-improvementsOlly Betts2021-12-181-2/+2
|
* Make some generated variables staticOlly Betts2021-12-171-2/+2
|
* Improve naming of zend_class_entry structsOlly Betts2021-12-172-34/+35
| | | | | | | Previously the zend_class_entry for Foo was named SWIGTYPE_Foo_ce, but this can collide in some cases - e.g. if there's a class named p_Foo then its zend_class entry will be SWIGTYPE_p_Foo_ce, but that's the same as the swig_type_info for a class named p_Foo_ce.
* Fix source code comment typoOlly Betts2021-12-171-1/+1
|
* Improve generated object handlersOlly Betts2021-12-172-69/+95
| | | | | | | | | | Do more initialisation at module load time. Use a shared set of handlers for cases when the C/C++ object is destroyed with free(). Most of the code in the free_obj and create_object handlers is the same for every wrapped class so factor that out into common functions.
* Make some generated functions staticOlly Betts2021-12-171-4/+4
|
* Rename php_fetch_object with swig_ prefixOlly Betts2021-12-172-5/+5
| | | | | We shouldn't be using symbols starting `php` as that risks collisions with future symbols defined by PHP.
* Tweak source whitespace to match SWIG conventionsOlly Betts2021-12-152-69/+68
|
* [php] Simplify creating overload dispatch nameOlly Betts2021-12-151-8/+2
|
* Fix transposed outputs in internals docOlly Betts2021-12-151-12/+12
|
* [lua] Fix maybe-uninitialized warning in generated codetytan6522021-12-151-1/+1
|
* [php] Tidy up code which processes in typemapsOlly Betts2021-12-131-23/+21
| | | | | | The only functional change is that we now recover after WARN_TYPEMAP_IN_UNDEF better (or at least like most of the other SWIG backends do).
* Make DOH Char macro more robustOlly Betts2021-12-131-1/+1
| | | | | | | | | For example, `Char(foo)[0]` now works to get the first character of DOH String `foo`. Previously this gave a confusing error because it expanded to `(char *) Data(foo)[0]` and the `[0]` binds more tightly than the `(char *)`.
* [php] Remove redundant in typemap for boolOlly Betts2021-12-131-1/+0
| | | | | | This typemap which would wrap C++ bool as PHP int is later overridden by another which wraps it as PHP bool. The current result is what we want so just remove the redundant one.
* [php] Add runme for long_long testcaseOlly Betts2021-12-131-0/+61
|
* Simplify PHP backend codeOlly Betts2021-12-131-13/+1
|
* Update PHP source commentOlly Betts2021-12-131-1/+1
| | | | We no longer wrap anything as a PHP resource.
* Remove unused code from PHP backendOlly Betts2021-12-131-47/+0
| | | | These are leftovers from the work on wrapping using only PHP's C API.
* Fix removeNode() to really unset previousSiblingOlly Betts2021-12-101-1/+1
| | | | | There was a typo in attribute name so we attempted to remove the non-existent attribute prevSibling instead.
* [php] Remove unused variableOlly Betts2021-12-101-2/+1
| | | | | SWIG_module_entry hasn't actually been used for any of git history which is over 19 years.
* [php] configure: Check for php8.1 binaryOlly Betts2021-12-081-1/+1
|
* [php] Fix two incorrect PHP 8 conditionalsOlly Betts2021-12-082-5/+5
| | | | | | | | 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.
* Merge pull request #2116 from vstinner/python311William S Fulton2021-12-071-0/+4
|\ | | | | Add Python 3.11 support: use Py_SET_TYPE()
| * Add Python 3.11 support: use Py_SET_TYPE()Victor Stinner2021-12-061-0/+4
| | | | | | | | | | | | | | | | | | 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
* | Add Octave 6 to changes fileWilliam S Fulton2021-12-051-0/+5
| |
* | Whitespace consistency fix in CI-linux-install.shWilliam S Fulton2021-12-051-3/+3
| |
* | GHA: Test Octave 6.4William S Fulton2021-12-052-4/+11
| |
* | Additional changes due to name changes in octave-6 * is_map to isstruct, ↵Robert Fries2021-12-051-0/+18
| | | | | | | | is_object to isobject
* | Octave module lets examples and tests work with Octave-6 * Try-catch ↵Robert Fries2021-12-053-9/+83
| | | | | | | | 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
* | Allow swig wrapped modules to compile with -BsymbolicRobert Fries2021-12-052-0/+10
| |
* | [php] Ensure _runme.php calls check::done()Olly Betts2021-12-0510-0/+20
| | | | | | | | | | | | | | 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.
* | [php] Check fooCount() in newobject1_runme.phpOlly Betts2021-12-051-0/+7
| |
* | GHA: Test currently supported php versions 7.0-8.1William S Fulton2021-12-041-0/+10
|/
* Remove bom in Windows.htmlWilliam S Fulton2021-12-021-1/+1
|
* HTML doc fixesWilliam S Fulton2021-12-023-4/+5
|
* Add Python embedded interpreters fix to changes fileWilliam S Fulton2021-12-021-0/+3
|
* Merge branch 'fix-crash-2101'William S Fulton2021-12-023-217/+233
|\ | | | | | | | | | | * fix-crash-2101: Added extern "C" block that was removed in previous commit. Fixed crashes when using embedded Python interpreters.
| * Added extern "C" block that was removed in previous commit.John Senneker2021-12-011-0/+8
| |
| * Fixed crashes when using embedded Python interpreters.John Senneker2021-11-303-217/+225
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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().
* | [php7] Use destructor action if presentOlly Betts2021-12-022-9/+43
| | | | | | | | | | | | | | If there's a destructor, use its action instead of free(ptr) (for C)/delete ptr (for C++). Fixes #2108
* | Merge pull request #2111 from swig/remove-obsolete-js-supportOlly Betts2021-12-029-483/+13
|\ \ | | | | | | Remove obsolete js support
| * | [ci] Remove CI build for unsupported v8 3.14remove-obsolete-js-supportOlly Betts2021-12-021-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | [js] Remove code to handle v8 < 5.0Olly Betts2021-12-027-463/+10
| | | | | | | | | | | | | | | We require at least node v6 which means v8 5.0, so code to handle older v8 is no longer useful.
| * | [js] Update docs re v8 supportOlly Betts2021-12-021-17/+3
|/ / | | | | | | | | | | We require at least node v6 (which means v8 v5.0) since 7ba19e758632c8aeddcf82ddf48a05f34e218bc9 so updated the manual to reflect this.
* | Merge branch 'fix_SWIG_V8_VERSION'William S Fulton2021-12-011-1/+4
|\ \ | | | | | | | | | | | | * fix_SWIG_V8_VERSION: [javascript][v8] SWIG_V8_VERSION generation method corrected.
| * | [javascript][v8] SWIG_V8_VERSION generation method corrected.Hirokazu MORIKAWA2021-05-011-1/+4
| | | | | | | | | | | | | | | | | | "SWIG_V8_VERSION" generation method was incorrectly fixed. Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
* | | GHA: Test node versions 6,8,10William S Fulton2021-12-011-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | 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)
* | | GHA: Add testing of node 17William S Fulton2021-11-271-6/+2
| | | | | | | | | | | | Also remove duplicate test of node 14
* | | Use JSC version available in Ubuntu 20.04 in the CI buildsVadim Zeitlin2021-11-272-2/+1
| | | | | | | | | | | | | | | | | | 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.
* | | Merge pull request #2100 from rex4539/typosWilliam S Fulton2021-11-2424-31/+31
|\ \ \ | | | | | | | | Fix typos