summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix PHP_EXTENSION value for examplesphp-stop-using-dlOlly Betts2021-03-241-1/+1
| | | | Found by ferdynator in #1529.
* [ci] Only test PHPOlly Betts2021-03-231-422/+0
|
* php: Stop using dl()Olly Betts2021-03-234-28/+13
| | | | | | | | With modern PHP it only works with the CLI version of PHP, so it's better to direct users to load the extension via "extension=" in php.ini. Suggested by ferdynator in #1529.
* Don't pass -q when running CLI PHP in testsuiteOlly Betts2021-03-231-1/+1
| | | | | This suppressed output of HTTP headers with PHP < 4.3, but in more recent versions it doesn't do anything for CLI PHP.
* php: Omit closing ?> in manual and examplesOlly Betts2021-03-23100-135/+0
| | | | | PSR-12 says "The closing ?> tag MUST be omitted from files containing only PHP".
* Travis non-default C/C++ standards flags tweakWilliam S Fulton2021-03-221-3/+3
| | | | | | | When testing on Travis, don't turn off maximum compiler warnings, just enhance them with the chosen standard. This is now possible since recently dropping the -ansi flags in the maximum compiler warnings. Effectively we are now testing the later standards as before but also adding -pedantic.
* Test gcc-10.2 on Focal FossaWilliam S Fulton2021-03-221-0/+3
|
* Stop trying to disable PHP safe_mode in testsuiteOlly Betts2021-03-221-1/+1
| | | | | PHP no longer supports safe_mode (since PHP 5.4) so this doesn't do anything for any PHP version we currently support!
* template template parameters patch tidyupWilliam S Fulton2021-03-225-33/+61
| | | | | | | - Document change in CHANGES file - Minor tweaks and whitespace fixes in stype.c - Enhance testcase - Synchronise Java and Python runt test in testcase
* Fix handling of Template template parametersWilliam S Fulton2021-03-224-7/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes #1977 Fixes #1603 Squashed commit of the following: commit 61f794184e127e4a4b46fb306b2dfea71f7cd7bb Author: goto40 <pierre.bayerl@googlemail.com> Date: Sat Mar 20 15:20:25 2021 +0100 added python version for second part of testcase commit bb80e236b8a7033d1ee45e392352ec0539730db3 Author: goto40 <pierre.bayerl@googlemail.com> Date: Sat Mar 20 15:10:14 2021 +0100 reworked comment in fixed code commit 5a94bcc481ea1c068b62a3dbc6cbc2032c9896db Author: goto40 <pierre.bayerl@googlemail.com> Date: Sat Mar 20 15:07:34 2021 +0100 removed new unittests; I switched to the official test cases commit 36603f3c8dd27ee7b27d4a40804a844e1964b5aa Author: goto40 <pierre.bayerl@googlemail.com> Date: Sat Mar 20 15:05:33 2021 +0100 removed new unittests; I switched to the official test cases commit 1f20ea00d22e6c59edb9ae69d6bb31aacab09c4b Author: goto40 <pierre.bayerl@googlemail.com> Date: Sat Mar 20 14:39:19 2021 +0100 adapted testcase commit ab492794c0f26a27761b205fe1d67e2e9aa1f5b6 Author: goto40 <pierre.bayerl@googlemail.com> Date: Sat Mar 20 14:29:10 2021 +0100 fixed test commit 9b5dd0c8f9b110a3492753b466e707d7f786c909 Author: goto40 <pierre.bayerl@googlemail.com> Date: Sat Mar 20 13:04:06 2021 +0100 C99 compatible comments commit 1a89425ac8c85d68c6af1974e07573b9468d421e Author: goto40 <pierre.bayerl@googlemail.com> Date: Sat Mar 20 11:41:48 2021 +0100 added extra checks to prevent accidental partial matches commit 20e76f511ac139c8ea2a9a7fd89c29391579665f Author: goto40 <pierre.bayerl@googlemail.com> Date: Thu Mar 18 21:42:56 2021 +0100 minor commit 0e383bbb764f9a019f62b9f620f80908dead50d2 Author: goto40 <pierre.bayerl@googlemail.com> Date: Thu Mar 18 21:41:45 2021 +0100 cleanup commit b644767121440c77f4caeb45f672e3c698ee9d78 Author: goto40 <pierre.bayerl@googlemail.com> Date: Thu Mar 18 21:39:43 2021 +0100 cleanup commit 2574468c0f9352040759e680214b40ee59b03650 Author: goto40 <pierre.bayerl@googlemail.com> Date: Thu Mar 18 21:38:35 2021 +0100 cleanup commit 9dc7f1ed30171649e8a70b12ff4f76d93e545074 Author: goto40 <pierre.bayerl@googlemail.com> Date: Thu Mar 18 21:35:28 2021 +0100 removed ide files commit a442a9df460c52d4dbf7adf8e4f0c5bc5ad3b0cf Author: goto40 <pierre.bayerl@googlemail.com> Date: Thu Mar 18 21:32:36 2021 +0100 removed printf commit da4c6e91e3b70e72e89cf09dfabfef7416274637 Author: goto40 <pierre.bayerl@googlemail.com> Date: Thu Mar 18 21:29:02 2021 +0100 possible fix found commit 6fad8d40e36195be422d5822e6f49d610e3ab693 Author: goto40 <pierre.bayerl@googlemail.com> Date: Thu Mar 18 21:01:11 2021 +0100 found difference between good/bad case... next: analyze why replacement did not work here... commit 72a7693340358d2067e63c5489191917ccb818dd Author: goto40 <pierre.bayerl@googlemail.com> Date: Wed Mar 17 22:43:08 2021 +0100 ideintified location where the template-template type is inserted in the final type (with the missing specialization). commit 1b53312c07ab0696d9cade144bdbad1c84ebf6a3 Author: goto40 <pierre.bayerl@googlemail.com> Date: Wed Mar 17 22:28:19 2021 +0100 more notes (to be reverted) commit a9a0b589389784e0e95dc6f9edd27c78a16b481d Author: goto40 <pierre.bayerl@googlemail.com> Date: Wed Mar 17 22:19:16 2021 +0100 some experiments (to be reverted) commit 0e7a24bbd5944d6e4f5c96ffd03003465f6d80f5 Author: goto40 <pierre.bayerl@googlemail.com> Date: Wed Mar 17 21:46:20 2021 +0100 added some notes commit 2f77911a12a38735cadeb93223981f3a6d9e7450 Author: goto40 <pierre.bayerl@googlemail.com> Date: Tue Mar 16 22:01:01 2021 +0100 comment changed commit 2cb7213b06f9b912c0ba56350ec6c318edba1ffb Author: goto40 <pierre.bayerl@googlemail.com> Date: Tue Mar 16 21:55:47 2021 +0100 renamed example template parameters to easily distinguish them. commit ff457d73977e05adf84b095bcfa1dccd21203c48 Author: goto40 <pierre.bayerl@googlemail.com> Date: Tue Mar 16 21:21:10 2021 +0100 added reset parser functionality (required for unittests, to reset parser) commit 617bbde3b4b3d9dd16d3a2d85041fc78a87ae81f Author: goto40 <pierre.bayerl@googlemail.com> Date: Tue Mar 16 20:47:41 2021 +0100 adjusted test for simple templates commit beb7e7f77cedd4ecfa4165534781d417710aff7e Author: goto40 <pierre.bayerl@googlemail.com> Date: Mon Mar 15 07:41:17 2021 +0100 added note how it should be... commit 7b3328431ce41f7ec05657c69d3cb1a886cb8437 Author: goto40 <pierre.bayerl@googlemail.com> Date: Sun Mar 14 17:07:24 2021 +0100 found a place which is maybe problematic for the template_template problem (#1603) commit 46c2443d15a6288318723b7e730687791475cf7b Author: goto40 <pierre.bayerl@googlemail.com> Date: Sun Mar 14 16:11:56 2021 +0100 unitests: reset parser for each testcase commit b3a0f1516ffdbf9f0fbb2d8362e2375fd1893c3f Author: goto40 <pierre.bayerl@googlemail.com> Date: Sun Mar 14 15:30:47 2021 +0100 first experiment with templates commit 32a11c6c77b840f11b9e926edd465e6a7108267f Author: goto40 <pierre.bayerl@googlemail.com> Date: Sun Mar 14 14:31:17 2021 +0100 wip commit 37b805ba6eaadb4a34a929204d539f555f8313be Author: goto40 <pierre.bayerl@googlemail.com> Date: Sun Mar 14 14:21:05 2021 +0100 integrated unittests in ctest commit 79f7bee168ecfbd2f2f5feeb9ca43fb7113bc2a4 Author: goto40 <pierre.bayerl@googlemail.com> Date: Sun Mar 14 14:18:26 2021 +0100 wip: new test created; problem: not in c++ mode commit 345d503d557d67fa431f528e637bac5816f50ab1 Author: goto40 <pierre.bayerl@googlemail.com> Date: Sun Mar 14 14:08:09 2021 +0100 cleanup test code commit 0a26adec10435af36bfad4e1f6a073460c63fbc6 Author: goto40 <pierre.bayerl@googlemail.com> Date: Sun Mar 14 14:05:24 2021 +0100 some more tests (first steps with c++ code) commit 6f628e0fa9e2659f5a7ca08b9954e81d4cd4f012 Author: goto40 <pierre.bayerl@googlemail.com> Date: Sun Mar 14 12:56:41 2021 +0100 experiments commit c4a13bf3e12cd83886cbc54e32194bf916a643d3 Author: goto40 <pierre.bayerl@googlemail.com> Date: Sat Mar 13 18:18:01 2021 +0100 first experiment commit 7d265861052f205d48b1ccec8ab0fe053de19858 Author: goto40 <pierre.bayerl@googlemail.com> Date: Sat Mar 13 17:23:13 2021 +0100 setup catch2 framework (w/o tests)
* Add note about Node v14 also supportedWilliam S Fulton2021-03-211-2/+2
|
* Add some missing changes file entriesWilliam S Fulton2021-03-211-0/+6
|
* Fix entry date in CHANGES.currentOlly Betts2021-03-211-1/+1
|
* Merge branch 'php8-support'Olly Betts2021-03-2114-27/+82
|\ | | | | | | Fixes #1929, Fixes #1978
| * Update CHANGES.current and RELEASENOTES re PHP8Olly Betts2021-03-212-0/+6
| |
| * Clarify what SWIGPHP7 meansOlly Betts2021-03-211-1/+1
| |
| * Temporary hack so testsuite passes for PHP8Olly Betts2021-03-191-0/+4
| |
| * Add initial support for PHP8Olly Betts2021-03-1911-27/+72
| | | | | | | | | | Testcase director_overload2 is failing, but the rest of the testsuite passes.
* | Test a different C# keyword renameWilliam S Fulton2021-03-201-1/+1
| | | | | | | | | | | | | | | | | | Worked around warning in java jdk-15: warning: 'sealed' may become a restricted type name in a future release and may be unusable for type declarations or as the element type of an array Adding sealed to the list of automatically renamed keywords in Java does not seem prudent.
* | Appveyor MinGW only works now on Visual Studio 2019 imageWilliam S Fulton2021-03-201-0/+1
| |
* | Appveyor yaml correctionWilliam S Fulton2021-03-201-3/+2
| |
* | Modernise C++11 compiler support detection in autotoolsWilliam S Fulton2021-03-205-139/+978
| | | | | | | | | | Replace AX_CXX_COMPILE_STDCXX_11 with AX_CXX_COMPILE_STDCXX from autoconf archive.
* | Remove -ansi from default compilation flagsWilliam S Fulton2021-03-202-3/+6
| | | | | | | | Closes #1610
* | Remove redundant Appveyor allow_failuresWilliam S Fulton2021-03-201-3/+1
| |
* | Added windows build instructions for MSYS2Erik Smistad2021-03-192-2/+56
| |
* | Suppress Visual C++ warning in cpp_typedef testcaseWilliam S Fulton2021-03-191-0/+3
| |
* | Changes file entry for Java long long arraysWilliam S Fulton2021-03-191-0/+3
| |
* | Merge branch 'java-jlong-cleanup'William S Fulton2021-03-192-14/+2
|\ \ | | | | | | | | | | | | | | | * java-jlong-cleanup: Lib/java/arrays_java.i: use actual C/C++ type in JAVA_ARRAYS_TYPEMAPS. Lib/java/javahead.swg: clean up jlong handling.
| * | Lib/java/arrays_java.i: use actual C/C++ type in JAVA_ARRAYS_TYPEMAPS.Andy Polyakov2021-03-191-2/+2
| | | | | | | | | | | | | | | | | | long long[] map was using JNI type as C/C++ type. General spirit of JAVA_ARRAYS_TYPEMAPS is to cast individual array elements, not to rely on potentially incompatible pointer casts.
| * | Lib/java/javahead.swg: clean up jlong handling.Andy Polyakov2021-03-191-12/+0
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As for __int64 definition. __int64 is a non-standard Visual-C-specific type used in win32/jni_md.h. It is defined by other Win32 compilers in one way or another, obviously for compatibility. It's more appropriate to give the compiler a chance to make necessary arrangements instead of reinventing the wheel. This, giving a chance, can be achieved by including virtually any standard header. Since jni.h includes stdio.h, defining __int64 in javahead.swg is redundant. Since doing so actually triggers compilation errors on MinGW if a system header is included in the %begin section, it's arguably appropriate to omit it. As for #undef _LP64 removal. Undefining a pre-defined macro, which _LP64 is, is bad style, and if followed by inclusion of systems headers, it's actually error-prone. Log suggests that it was added to resolve a warning. I'm inclined to believe that it rather was a misunderstanding of some kind. Or a bug in warning subsystem of some particular compiler version, in which case it would have been more appropriate to advise users to ignore the warning.
* | Appveyor Windows testing changesWilliam S Fulton2021-03-191-9/+25
| | | | | | | | | | | | | | - Update jdk1.8->1.15 for x64 testing - Add Visual Studio 2017 (vc++ 15) testing - Add Visual Studio 2019 (vc++ 16) testing - Add python-3.7 and python-3.8 testing
* | Restore MinGW testing on AppveyorWilliam S Fulton2021-03-191-8/+8
|/ | | | Replace Python-2.7 testing with Java testing on MinGW
* Upgrade osx on Travis to fix unsupported platform errorsWilliam S Fulton2021-03-181-0/+1
|
* Merge pull request #1909 from treitmayr/ruby-additional-testsWilliam S Fulton2021-03-1838-36/+1097
|\ | | | | Add and improve Ruby test cases in the context of nesting and namespaces
| * Add justification for suppressing warnings in Ruby test caseThomas Reitmayr2021-03-161-16/+5
| | | | | | | | In the same file removed a useless class for comparing versions.
| * Add and improve Ruby test cases in the context of nesting and namespacesThomas Reitmayr2020-12-1638-36/+1108
| | | | | | | | | | | | | | | | | | This is done in preparation for adding namespace support to the Ruby part of SWIG. Some existing test cases were reorganized or duplicated for flat/nonflat nesting. For some a Ruby test script was added. Finally the ruby/Makefile.in was improved so that for test cases without an explicit test script, the generated wrapper library will be loaded by the Ruby interpreter to ensure loading works fine.
* | Improve PHP object creationOlly Betts2021-03-192-9/+11
| | | | | | | | | | | | | | | | Reportedly the code we were using in the directorin case gave segfaults in PHP 7.2 and later - we've been unable to reproduce these, but the new approach is also simpler and should be bit faster too. Fixes #1527, #1975
* | php: Fix char* typecheck typemap to accept NullOlly Betts2021-03-194-1/+25
| | | | | | | | | | | | The corresponding in typemap already does. Fixes #1655, reported by CJSlominski.
* | Test latest Go 1.16 on TravisWilliam S Fulton2021-03-171-0/+4
| |
* | Add ruby 3.0 testingWilliam S Fulton2021-03-172-4/+12
| | | | | | | | | | | | | | testflags tweak for C standard > c90 Only add -Wdeclaration-after-statement for > c90 as c99 allows declarations after a statement.
* | Travis: update ruby rvm installation for ruby-3.0William S Fulton2021-03-171-2/+2
| |
* | php: Fix overloaded directed methods with non-void returnOlly Betts2021-03-184-3/+34
| | | | | | | | | | | | | | We were treating such methods like constructors and assigning to the internal _cPtr, which just seems bizarrely wrong. Fixes #1900
* | [ci] Remove PHP 7.2 from allow_failuresOlly Betts2021-03-171-5/+0
| | | | | | | | | | The comment says "seg fault in director_basic testcase" but the this build is passing now.
* | Add php7.4 to list configure checks forOlly Betts2021-03-171-1/+1
| |
* | [ci] Add build for PHP 7.4Olly Betts2021-03-171-0/+4
| |
* | Conditionalise math.i for PHPOlly Betts2021-03-172-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | PHP already provides all the wrapped constants and all the wrapped functions except fabs() (PHP provides abs() instead). Rewrapping the constants causes warnings or errors (depending on PHP version) and the rewrapped functions seem to be hidden by the built-in versions, so only wrap fabs() for PHP. (Even a wrapper for fabs() seems of little use since abs() is already provided, but really math.i seems of little use more generally since any general purpose programming language will provide its own maths functions and constants - the key motivation here is to eliminate warnings and errors from running the testsuite.)
* | Update PHP director_basic expected classes+funcsOlly Betts2021-03-171-5/+2
| | | | | | | | | | Fixes warnings from test suite introduced in c2597023149353cf67797fbb55ba75b861eca85f.
* | Merge branch 'v8-context-aware-race-free-preparation'William S Fulton2021-03-117-47/+36
|\ \ | | | | | | | | | | | | | | | | | | | | | * v8-context-aware-race-free-preparation: Lib/javascript/v8: use ::Cast instead of To* when possible. Lib/javascript/v8/javascriptrun.swg: clean up pre-processor conditions. Lib/javascript/jsc/javascriptinit.swg: shortcut JSGlobalContextRef casts. Examples/test-suite/grouping.i: resolve compiler warning.
| * | Lib/javascript/v8: use ::Cast instead of To* when possible.Andy Polyakov2021-03-102-5/+5
| | | | | | | | | | | | | | | If type is checked with Is*, it's safe to use corresponding ::Cast, which is more optimal.
| * | Lib/javascript/v8/javascriptrun.swg: clean up pre-processor conditions.Andy Polyakov2021-03-104-30/+24
| | | | | | | | | | | | | | | Harmonize javascriptcode.swg javascripthelpers.swg and clarify documentation.