| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
We shouldn't be using symbols starting `php` as that risks collisions
with future symbols defined by PHP.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
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).
|
|
|
|
|
|
|
|
|
| |
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 *)`.
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
| |
We no longer wrap anything as a PHP resource.
|
|
|
|
| |
These are leftovers from the work on wrapping using only PHP's C API.
|
|
|
|
|
| |
There was a typo in attribute name so we attempted to remove the
non-existent attribute prevSibling instead.
|
|
|
|
|
| |
SWIG_module_entry hasn't actually been used for any of git history
which is over 19 years.
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
|\
| |
| | |
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
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
is_object to isobject
|
| |
| |
| |
| | |
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
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
|/ |
|
| |
|
| |
|
| |
|
|\
| |
| |
| |
| |
| | |
* fix-crash-2101:
Added extern "C" block that was removed in previous commit.
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().
|
| |
| |
| |
| |
| |
| |
| | |
If there's a destructor, use its action instead of free(ptr)
(for C)/delete ptr (for C++).
Fixes #2108
|
|\ \
| | |
| | | |
Remove obsolete js support
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | |
| | | |
We require at least node v6 which means v8 5.0, so code to handle
older v8 is no longer useful.
|
|/ /
| |
| |
| |
| |
| | |
We require at least node v6 (which means v8 v5.0) since
7ba19e758632c8aeddcf82ddf48a05f34e218bc9 so updated the manual to
reflect this.
|
|\ \
| | |
| | |
| | |
| | | |
* fix_SWIG_V8_VERSION:
[javascript][v8] SWIG_V8_VERSION generation method corrected.
|
| | |
| | |
| | |
| | |
| | |
| | | |
"SWIG_V8_VERSION" generation method was incorrectly fixed.
Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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)
|
| | |
| | |
| | |
| | | |
Also remove duplicate test of node 14
|
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
|\ \ \
| | | |
| | | | |
Fix typos
|