| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Fixes #2090
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
| |
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/
|
|
|
|
|
| |
03ef3ecb6e86aa78a64119f30e683ee474ddb56 added support for ID PERIOD ID
in an expression.
|
|
|
|
|
|
|
| |
Note that it's necessary to use the naming scheme we already document
to do this.
Fixes https://sourceforge.net/p/swig/bugs/889/
|
|
|
|
|
|
| |
The prefix is now only removed at the start.
Fixes https://sourceforge.net/p/swig/bugs/1136/
|
|
|
|
| |
Fixes #231
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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/
|
|
|
|
| |
This should have been in 6f4adde4b4dccbd31725aeda1c9e17b9178a5550
|
|\
| |
| | |
Add missing includes to library and test cases
|
| | |
|
| |
| |
| |
| | |
Many of these tests implicitly required the target language library files to include the headers upstream.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
CAML_SAFE_STRING is on by default in current Ocaml versions, and was
stopping SWIG-generated wrappers from compiling.
Fixes #2083
|
| |
| |
| |
| |
| |
| |
| | |
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/
|
| |
| |
| |
| | |
Fixes https://sourceforge.net/p/swig/bugs/1330/
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
Fixes https://sourceforge.net/p/swig/bugs/1147/
|
| |
| |
| |
| | |
We're not supposed to assert for this, as mentioned in #1488.
|
| | |
|
|\ \
| | |
| | |
| | |
| | | |
Fixes #655
Fixes #1488
|
| | | |
|
| | | |
|
|/ / |
|
| | |
|
| |
| |
| |
| | |
Fixes #676 #677
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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/
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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).
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| |
| | |
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".
|
| |
| |
| |
| | |
[skip ci]
|
|\ \
| | |
| | |
| | |
| | | |
* doc-work2-v2:
Improve documentation on %rename
|
| | |
| | |
| | |
| | |
| | | |
Add documentation on %rename of names replacing previous %renames of
the same name, and how to replace methods in classes using %rename.
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | | |
* cmake-docs:
Add CXX flag
Updated and verified CMake build docs
|
| | | | |
|
| |/ / |
|
| | |
| | |
| | |
| | | |
Fixes #1697
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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).
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Previously there was no warning or error, no files were produced,
but exit status was 0.
Fixes #346
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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).
|