summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Let us see what the fallout is, no promises though ;)enable-more-warnings-in-ciJustus Winter2022-02-031-2/+2
|
* [Python] Sort out handling of self parameterOlly Betts2022-02-032-9/+25
| | | | | | | | | | When not using -builtin, the self parameter is now still made available so that user typemaps can use it. Fixes #967. When using -builtin, fix -Wunused-parameter warnings in the generated wrapper code. See #801. Based on a commit peeled out of #801 by teythoon.
* CHANGES.current: Add entry for recent changeOlly Betts2022-02-031-0/+4
|
* [python] Workaround MSVC2022-related bugOlly Betts2022-02-031-0/+7
| | | | Fixes #2090
* Fix function prototypes of generated pointer functionsJustus Winter2022-02-032-4/+4
| | | | | | | | | | Previously, the emitted constructors were incomplete prototypes. When compiling the wrapper code using gcc 6 and -Wstrict-prototypes, the following warnings were emitted: warning: function declaration isn’t a prototype [-Wstrict-prototypes] See #801
* Fix -Wstrict-prototypes warning in generated PHP wrappersOlly Betts2022-02-031-1/+1
|
* Allow method calls in expressionsOlly Betts2022-02-033-1/+73
| | | | | | This allows default parameter values containing method calls to be parsed and handled - e.g. `x->foo(3,4)` and `y.z()`. Fixes #660 and https://sourceforge.net/p/swig/bugs/1081/
* Uncomment line in testcase which now worksOlly Betts2022-02-031-1/+1
| | | | | 03ef3ecb6e86aa78a64119f30e683ee474ddb56 added support for ID PERIOD ID in an expression.
* Document calling extend methods from C/C++Olly Betts2022-02-031-0/+5
| | | | | | | Note that it's necessary to use the naming scheme we already document to do this. Fixes https://sourceforge.net/p/swig/bugs/889/
* [Ruby] Fix remove of prefix from method nameOlly Betts2022-02-024-2/+32
| | | | | | The prefix is now only removed at the start. Fixes https://sourceforge.net/p/swig/bugs/1136/
* Allow object reference in C++ trailing return typeOlly Betts2022-02-023-0/+14
| | | | Fixes #231
* [scilab] Name init function name to avoid collisionClement David2022-02-023-2/+6
| | | | | | | | Use SWIG_<module>_Init() function to init the module rather than <module>_Init() as the latter can collide with a function being wrapped. Fixes #745 Fixes #1739
* [Java] Note use of %ignore with %nativeOlly Betts2022-02-011-0/+5
| | | | | | | This is needed if you're wanting to effectively replace the generated JNI wrapper for a C/C++ function. Fixes https://sourceforge.net/p/swig/bugs/368/
* [Tcl] Add changed file missed recent commitOlly Betts2022-02-011-0/+10
| | | | This should have been in 6f4adde4b4dccbd31725aeda1c9e17b9178a5550
* Merge pull request #1398 from swig-fortran/missing-includesOlly Betts2022-02-0125-50/+106
|\ | | | | Add missing includes to library and test cases
| * Move <string.h> fragment to swigfragmentsSeth R Johnson2019-01-066-6/+14
| |
| * "Include what you use" for testsSeth R Johnson2019-01-0617-31/+61
| | | | | | | | Many of these tests implicitly required the target language library files to include the headers upstream.
| * Fix missing include in SWIG typemapSeth R Johnson2019-01-064-17/+35
| |
* | Add CHANGES entry for #2083Olly Betts2022-02-011-0/+4
| |
* | [Ocaml] Fix to work with CAML_SAFE_STRINGOlly Betts2022-02-011-1/+1
| | | | | | | | | | | | | | CAML_SAFE_STRING is on by default in current Ocaml versions, and was stopping SWIG-generated wrappers from compiling. Fixes #2083
* | [Tcl] Fix std_vector typecheck typemapsOlly Betts2022-02-012-12/+19
| | | | | | | | | | | | | | In some cases the typecheck typemap would try to access the first element of an empty Tcl list. Fixes https://sourceforge.net/p/swig/bugs/1309/
* | [Tcl] Document objects aren't destroyed on exitOlly Betts2022-02-011-1/+9
| | | | | | | | Fixes https://sourceforge.net/p/swig/bugs/1330/
* | [ocaml] Improve the Qt exampleOlly Betts2022-02-011-11/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Drop a method which has been deprecated then removed in Qt (but isn't actually used in the example anyway) and clean up the steps a bit. The example still doesn't build for me as the final step fails with: File "_none_", line 1: Error: Module `Dynlink' is unavailable (required by `Camlp4') I know next to nothing about ocaml, so that may be something I've failed to install, but I couldn't work out what. I think the Qt library linking needs updating too - there doesn't seem to be a single `-lqt` now, but I don't use Qt either.
* | [R] Fix CopyToR() generated for struct in namespaceOlly Betts2022-01-315-1/+25
| | | | | | | | Fixes https://sourceforge.net/p/swig/bugs/1147/
* | [python] Replace uses of assert in testsuiteOlly Betts2022-01-303-27/+39
| | | | | | | | We're not supposed to assert for this, as mentioned in #1488.
* | Add CHANGES entry for #655Olly Betts2022-01-301-0/+3
| |
* | Merge branch 'fschlimb/using-fixes'Olly Betts2022-01-306-3/+101
|\ \ | | | | | | | | | | | | Fixes #655 Fixes #1488
| * | Coding style tweaksOlly Betts2022-01-303-7/+7
| | |
| * | adding support for structs, docuFrank Schlimbach2022-01-302-6/+7
| | |
| * | better handling of using directivesFrank Schlimbach2022-01-306-3/+100
|/ /
* | Add CHANGES entry and regression test for #676Olly Betts2022-01-294-0/+35
| |
* | [Go] Fix overloaded functions with noncapitalized class as parameter typeShengqiu Li2022-01-291-1/+5
| | | | | | | | Fixes #676 #677
* | Remove redundant NULL checks before free()/delete (#2184)Olly Betts2022-01-2917-51/+44
| | | | | | | | | | | | | | | | | | Remove redundant NULL checks before free()/delete The ISO C and C++ standards guarantee that it's safe to call these on a NULL pointer, so it's not necessary for the calling code to also check. Fixes https://sourceforge.net/p/swig/feature-requests/70/
* | Ruby: Fix warnings in generated code about missing parameter in variadic macroThomas Reitmayr2022-01-299-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The Ruby C API function 'rb_funcall' is used in various places in generated code for invoking a Ruby method without parameters. The C function uses a variadic parameter list for the arguments passed to Ruby, therefore in these cases the list of variadic parameters is empty. As an optimization Ruby may implement the 'rb_funcall' function as a macro which however will not accept an empty list of arguments for '...' as of C99 and C++11. In order to prevent compiler warnings, this commit replaces all such occurrences with a call to 'rb_funcall2' (which in its current name 'rb_funcallv' is invoked by the 'rb_funcall' macro anyway, at least for Ruby 2.6.6).
* | Update CMake build to use NuGet Bison3sethg2022-01-291-3/+3
| |
* | Talk about namespaces and unignoringCorey Minyard2022-01-291-0/+16
| | | | | | | | | | | | | | | | | | | | | | It was not obvious to at least one person that namespaces need to be unignored just like classes and methods. Add an explicit reference to that in the docs. Also add something to unignore all classes in the example that shows how to ignore all classes, as that might not be obvious. Fixes #193
* | Add an example for unignoring everythingCorey Minyard2022-01-291-0/+2
| | | | | | | | | | | | | | | | | | In the example for ignoring everything, it didn't show how to undo the ignore all, and the obvious '%rename("") ""' didnt work. '"%rename("%s") ""' is the right way to do that, so add it to the example. Fixes #2173
* | Fix the recent %rename docsCorey Minyard2022-01-291-7/+8
| | | | | | | | | | | | | | | | The example I recently added about renaming didn't compile. Here's the fix. There was also a use of the term "override" which should have been changed to "replace".
* | Move docs on replacing c++ class methods to C++ sectionWilliam S Fulton2022-01-273-53/+64
| | | | | | | | [skip ci]
* | Merge branch 'doc-work2-v2'William S Fulton2022-01-272-3/+74
|\ \ | | | | | | | | | | | | * doc-work2-v2: Improve documentation on %rename
| * | Improve documentation on %renameCorey Minyard2022-01-262-3/+74
| | | | | | | | | | | | | | | Add documentation on %rename of names replacing previous %renames of the same name, and how to replace methods in classes using %rename.
* | | HTML formatting fixesWilliam S Fulton2022-01-273-32/+31
| | |
* | | Merge branch 'cmake-docs'William S Fulton2022-01-271-41/+38
|\ \ \ | | | | | | | | | | | | | | | | | | | | * cmake-docs: Add CXX flag Updated and verified CMake build docs
| * | | Add CXX flagsethg2022-01-261-1/+1
| | | |
| * | | Updated and verified CMake build docssethg2022-01-261-41/+38
| |/ /
* | | [python] Fix GCC -Wunused-variable with -builtinOlly Betts2022-01-271-1/+1
| | | | | | | | | | | | Fixes #1697
* | | Try to fix Bison portability issueOlly Betts2022-01-271-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | YYEOF works as a token for "end of file" on my dev box but fails in CI. I assume it must be a Bison version difference. Based on the Bison manual, I'm trying this fix (which also works on my dev box).
* | | Update out-of-date docs re _runme3.pyOlly Betts2022-01-271-2/+2
| | |
* | | Issue error for missing ; after %constantOlly Betts2022-01-273-0/+8
| | | | | | | | | | | | | | | | | | | | | Previously there was no warning or error, no files were produced, but exit status was 0. Fixes #346
* | | [python] Remove unused bogus fallback macroOlly Betts2022-01-271-1/+0
|/ / | | | | | | | | | | | | | | | | | | | | | | | | This fallback version of PyString_AS_STRING() for Python 3 makes use of PyUnicode_AS_STRING, but I can find no evidence that ever existed in Python - all references I've found are to SWIG or SWIG-generated code. The only uses of PyString_AS_STRING() in SWIG generated code are for Python 2 #if-branches, so this fallback is never used by SWIG. Because it doesn't work it can't be usefully used in user interface files either, so let's remove it to avoid potential user confusion (such as #987).