summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* [perl] Require at least Perl 5.8.0perl-5.8-minimumOlly Betts2022-01-1811-130/+33
| | | | | | | | | As discussed and agreed in #1629, it's become hard to test with Perl 5.6 or earlier, such old versions are no longer in active use, and 4.1.0 is an appropriate time to make such a change. I've dropped the compatibility code that was obvious to me, but there's probably more that can be cleaned up now.
* [perl] Document explicitly not to use %OWNER directlyOlly Betts2022-01-181-4/+11
| | | | See #1771
* Fix missing HTML escaping in Octave docsOlly Betts2022-01-181-13/+13
|
* Fix PHP docs formatting issueOlly Betts2022-01-161-1/+4
|
* Add Python testcase for testing flatstaticmethod syntaxWilliam S Fulton2022-01-154-4/+123
| | | | | For testing legacy flattened static method access for when issue #2137 is applied.
* %callback and Python class access for C++ static member functions fixesWilliam S Fulton2022-01-144-15/+38
| | | | | | | | | | Fix access to C++ static member functions using Python class staticmethod syntax, such as Klass.memberfunction instead of Klass_memberfunction, when using -fastproxy and -builtin in combination with %callback. The docstring containing the callback pointers were not being patched during module initialisation.
* [Python] Add missing Python kwargs builtin supportWilliam S Fulton2022-01-144-2/+13
| | | | | | | | Accept keyword arguments accessing C++ static member functions when using -builtin and kwargs feature and Python class staticmethod syntax. The missing keyword argument support was only when using the class staticmethod syntax, not when using the flat static method syntax.
* Update Python tests to not use flatstaticmethod accessWilliam S Fulton2022-01-1422-74/+52
| | | | | | Use Python class staticmethod syntax to access C++ static member functions, such as Klass.memberfunction, instead of Klass_memberfunction. Examples and test-suite changes in preparation for issue #2137.
* Stop using Travis CI which doesn't work any longerVadim Zeitlin2022-01-105-576/+1
| | | | | | | | | | | | | Unfortunately Travis CI can't be used for building open source projects any longer in practice, as extra credits must be manually requested every time from Travis support, which is just infeasible, as this would need to be done every couple of days if not more often, and support reply time is anything from a couple of days to more than a month. So stop even trying to use it, as it doesn't work anyhow, and switch to using GitHub Actions only. Closes #2067
* GHA debug via ssh infoWilliam S Fulton2022-01-101-0/+4
|
* Merge pull request #2095 from vadz/extend-suffixWilliam S Fulton2022-01-082-12/+26
|\ | | | | Use suffix for static methods added by %extend
| * Use SWIG-specific for non-overloaded synthesized functions tooVadim Zeitlin2021-11-092-3/+15
| | | | | | | | | | | | | | | | This avoids conflicts between such functions, which are generated when using %extend to add static methods to an existing class, and the actual wrapper functions generated by the backend. This shouldn't result in any user-visible changes.
| * Refactor code in Language::staticmemberfunctionHandler()Vadim Zeitlin2021-11-091-9/+11
| | | | | | | | | | | | | | No real changes, just move the test for "code" to the outer scope to facilitate the upcoming changes. This commit is best viewed ignoring whitespace-only changes.
* | Building distribution fixes and pcre version displayWilliam S Fulton2022-01-082-7/+8
| | | | | | | | [skip-ci]
* | Add recent change to changes fileWilliam S Fulton2022-01-081-0/+6
| |
* | Support std::array in Golang (#2045)ERROR2022-01-043-1/+112
| | | | | | | | | | Support std::array in Golang Closes #2045
* | Remove obsolete code to set SWIG_V8_VERSIONOlly Betts2021-12-291-7/+1
| | | | | | | | | | | | | | We've dropped support for the old V8 versions which lacked version macros, and SWIG_V8_VERSION now gets automatically defined by Lib/javascript/v8/javascriptruntime.swg which will #undef it first if it's already defined.
* | Escape a literal > in PHP.htmlOlly Betts2021-12-291-1/+1
| |
* | [php] Add director_ownership_runme.phpOlly Betts2021-12-291-0/+28
| | | | | | | | | | | | This serves as a regression test for https://sourceforge.net/p/swig/bugs/1339/ which was presumably fixed by the change to use PHP's C API to wrap classes.
* | [python] Add 3.10 to Python versions in configureOlly Betts2021-12-241-1/+1
| |
* | [php] Improve wording in the manualOlly Betts2021-12-241-5/+8
| |
* | Clean up testcase source whitespaceOlly Betts2021-12-231-11/+9
| |
* | Remove redundant test casesOlly Betts2021-12-231-12/+0
| | | | | | | | | | | | | | With C++ comments changed to C comments, these are now identical to the two cases just above, aside from the `2` suffix on the names. Follow-on for #2027.
* | preproc_cpp test for testing preprocessor and C++William S Fulton2021-12-223-0/+41
| | | | | | | | | | Move C++ comment testing into here. See 7a9bf3307f9436c0f48eecd155c721c86a0f4058.
* | [php] Add missing runmes for overload_* testcasesOlly Betts2021-12-229-0/+363
| |
* | Remove C++ comments from preproc C testWilliam S Fulton2021-12-211-39/+38
| | | | | | | | Closes issue #2127
* | [php] Use SWIG_TypeCheckStruct to check typesOlly Betts2021-12-192-38/+18
| | | | | | | | | | | | | | We have the swig_type_info available and SWIG_TypeCheckStruct is more efficient because it uses a pointer comparison instead of the string comparison SWIG_TypeCheck uses (this change speeds up `make check-php-test-suite` by about 10%).
* | [php] Add overload_simple_runme.phpOlly Betts2021-12-181-0/+194
| |
* | [PHP] Add new PHP 8.1 keywordOlly Betts2021-12-183-0/+28
| | | | | | | | | | | | Add PHP keyword 'readonly' (added in 8.1) to the list SWIG knows to automatically rename. This keyword is special in that PHP allows it to be used as a function (or method) name.
* | TODO: Remove stale PHP entryOlly Betts2021-12-181-2/+1
| | | | | | | | | | Ref count destroying has worked for years (and is explicitly tested by swig_exception_runme.php).
* | [php] Always use <?php to start .php fileOlly Betts2021-12-182-2/+2
| | | | | | | | | | | | | | A few files had just <? which only works when the short_open_tag option is on. It is on by default (at least in current PHP versions) and we explicitly tell PHP not to read php.ini, but the PHP docs recommended to avoid it, and PHP can be built with --disable-short-tags.
* | [php] Add more checks to some PHP testcasesOlly Betts2021-12-183-1/+27
| |
* | [php] Actually implement abstract_inherit_runme.phpOlly Betts2021-12-182-8/+11
| | | | | | | | | | | | The previous version didn't really test anything useful. Now we check that trying to instantiate any of the abstract classes fails with the expected error.
* | Merge branch 'php-codegen-improvements'Olly Betts2021-12-183-96/+123
|\ \
| * | 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
| |