| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
For consistency to previous fixes:
https://github.com/swig/swig/pull/208
https://github.com/swig/swig/issues/440
|
|
|
|
| |
Closes https://github.com/swig/swig/issues/446
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Use SWIGUNUSEDPARM rather than assigning a dummy value to the parameter
(which then causing warnings about an assignment whose value is never
used.
|
|
|
|
|
| |
Should give a clearer error if PHP7 bindings are compiled against
PHP5 or vice versa.
|
| |
|
|
|
|
|
|
|
|
| |
Leave PHP5 wrapping them as integers as this change could cause
incompatibilities.
Fixes issue https://github.com/swig/swig/issues/686 noted by Nishant
Gupta.
|
|
|
|
|
|
| |
PHP5's C extension API has changed substantially so you need to use
-php7 to specify you want PHP7 compatible wrappers.
Fixes https://github.com/swig/swig/issues/571
|
|
|
|
|
| |
Mainly to use a more normal constructor declaration and to enable
classes with more than one template parameter to be used as container types.
|
|\
| |
| |
| |
| | |
* m7thon-python23-division-operators:
[Python] improved wrapping of division operators
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The division operators `operator /` and `operator /=` are now
wrapped as `__truediv__` and `__itruediv__`, with alias methods
`__div__` and `__idiv__` generated for compatibility with Python 2.
This allows correct wrapping independent of the `-py3` flag, and
fixes these operators for Python 2 when using `from __future__
import division` (this was broken).
|
| | |
|
| |
| |
| |
| | |
Further security exploit refinements to a1771c
|
| |
| |
| |
| | |
This corrects for compilers that need stdio.h
|
| |
| |
| |
| | |
Closes #816
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
* myd7349-master:
Convert the Java runtime testcase cpp11_li_std_array_runme to C#
Add C++11 std::array interface file for C#
SWIG_STD_VECTOR_ENHANCED for std::wstring
|
| | | |
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
* tobilau-localref_wstring:
Added LocalRefGuard for wstrings
|
| | | | |
|
|/ / / |
|
| | | |
|
| | |
| | |
| | |
| | | |
Fix for clang compile error as the address of an array will never be NULL.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The metaclass (SwigPyObjectType) for SWIG objects was not defined in
a way that let importlib successfully import the Python wrappers.
The pickle module failed because it couldn't determine what module the
SWIG wrapped objects are in.
I've changed the definition of SwigPyObjectType using more normal
builtin type definitions. There are still some open questions:
- None of the builtin types, like swig_static_var_getset_descriptor and
SwigPyObject are added into any module. No call to PyModule_AddObject
is made, so isinstance cannot be used for any wrapped type, all of
which are derived from SwigPyObject.
Closes #808
|
| | |
| | |
| | |
| | | |
initialized
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
library file
[skip ci]
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
The new approach uses support functions and minimal code in the macros
to make debugging easier.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The closure names used for builtin slots are mangled with their functype so
that overloaded C++ method names can be used for multiple slots.
For example:
%feature("python:slot", "mp_subscript", functype="binaryfunc") SimpleArray::__getitem__;
%feature("python:slot", "sq_item", functype="ssizeargfunc") SimpleArray::__getitem__(Py_ssize_t n);
will generate closures:
SWIGPY_SSIZEARGFUNC_CLOSURE(_wrap_SimpleArray___getitem__) /* defines _wrap_SimpleArray___getitem___ssizeargfunc_closure */
SWIGPY_BINARYFUNC_CLOSURE(_wrap_SimpleArray___getitem__) /* defines _wrap_SimpleArray___getitem___binaryfunc_closure */
|
|\ \ \
| | | |
| | | | |
Add std::bad_cast to std_except.i
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This exception occurs when dynamic_cast<T&> fails.
Fixes #783.
|
|/ / /
| | |
| | |
| | |
| | |
| | | |
-builtin.
Previously iteration would stop at the first element that had a NULL pointer value.
|
| | |
| | |
| | |
| | | |
Fix SWIG_exception() macro to return from the current function.
Fixes #789, reported by Julien Dutriaux.
|
| | |
| | |
| | |
| | | |
Fixes github issue#240.
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
* xypron-532:
Csharp: CLS compliance - keyword rename
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
SWIG C# can be used to wrap native libraries as common language
interface compatible assemblies.
If you want to use the assemblies with other languages like
Visual Basic these assemblies should comply to the
Common Language Specification (CLS).
Lib/csharp/csharpkw.swg defines rename rules to avoid collisions
with keywords. Unfortunately these rules prepend an underscore.
Parameters starting with underscores are not CLS compliant.
Hence the rules should be changed to append the underscore
instead of prepending it.
Tested with
make check-csharp-test-suite
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Cc: Olly Betts <olly@survex.com>
|
|/ / / |
|
| | | |
|