summaryrefslogtreecommitdiff
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Zero initialize %array_functions and %array_classWilliam S Fulton2016-12-181-2/+2
|
* Zero initialize newly created arraysWilliam S Fulton2016-12-181-5/+5
| | | | | | For consistency to previous fixes: https://github.com/swig/swig/pull/208 https://github.com/swig/swig/issues/440
* Fix %array_class in carrays.i for Python -builtinTsutomu IKEGAMI2016-12-181-41/+1
| | | | Closes https://github.com/swig/swig/issues/446
* Added support for guile's native pointer typeBrian Caine2016-12-161-0/+3
|
* scilab: SWIG_ptr() accepts mlist typed pointers and converts them to pointersSimon Marchetto2016-12-151-17/+26
|
* SWIG_Tcl_ObjectDelete: Fix potential NULL pointer dereferencesOlly Betts2016-12-131-1/+2
|
* Fix comment typoOlly Betts2016-12-131-1/+1
|
* Remove dead assignmentOlly Betts2016-12-131-1/+0
|
* Remove pointless casting away of constOlly Betts2016-12-131-1/+1
|
* Suppress unused parameter warning properlyOlly Betts2016-12-131-2/+1
| | | | | | Use SWIGUNUSEDPARM rather than assigning a dummy value to the parameter (which then causing warnings about an assignment whose value is never used.
* Add explicit check for expected PHP versionOlly Betts2016-12-012-0/+10
| | | | | Should give a clearer error if PHP7 bindings are compiled against PHP5 or vice versa.
* [PHP] Fix minor misindentation in generated wrapperOlly Betts2016-12-012-2/+2
|
* [PHP7] Wrap bool constants as PHP booleansOlly Betts2016-11-302-1/+4
| | | | | | | | 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.
* [PHP] Add support for PHP7.Olly Betts2016-11-3032-565/+3665
| | | | | | 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
* Fix a few minor inconsistencies in the STL wrappersWilliam S Fulton2016-11-295-8/+8
| | | | | Mainly to use a more normal constructor declaration and to enable classes with more than one template parameter to be used as container types.
* Merge branch 'm7thon-python23-division-operators'William S Fulton2016-11-261-10/+22
|\ | | | | | | | | * m7thon-python23-division-operators: [Python] improved wrapping of division operators
| * [Python] improved wrapping of division operatorsMichael Thon2016-06-121-10/+22
| | | | | | | | | | | | | | | | | | | | 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).
* | Python: Fix mixed signedness warning for std::arrayDaniel Vollmer2016-11-231-4/+4
| |
* | Missing transient keywords in Java proxy classWilliam S Fulton2016-11-133-6/+6
| | | | | | | | Further security exploit refinements to a1771c
* | Fix #555 - Add stdio.hJoseph C Wang2016-11-121-0/+1
| | | | | | | | This corrects for compilers that need stdio.h
* | Python - fix compilation error when using -extranative and -builtin.William S Fulton2016-11-021-1/+1
| | | | | | | | Closes #816
* | Merge branch 'myd7349-master'William S Fulton2016-10-302-0/+228
|\ \ | | | | | | | | | | | | | | | | | | * 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
| * | Add C++11 std::array interface file for C#myd73492016-07-051-0/+227
| | |
| * | SWIG_STD_VECTOR_ENHANCED for std::wstringmyd73492016-07-041-0/+1
| | |
* | | Merge branch 'tobilau-localref_wstring'William S Fulton2016-10-301-12/+14
|\ \ \ | | | | | | | | | | | | | | | | * tobilau-localref_wstring: Added LocalRefGuard for wstrings
| * | | Added LocalRefGuard for wstringsTobias Lau2016-10-201-12/+14
| | | |
* | | | Add missing VOID_INT_PTR director typemapsWilliam S Fulton2016-10-231-1/+2
|/ / /
* | | Return to Python builtin tp_new initialization in init function.William S Fulton2016-10-151-1/+2
| | |
* | | Fix redundant NULL check in php typemapsWilliam S Fulton2016-10-151-6/+12
| | | | | | | | | | | | Fix for clang compile error as the address of an array will never be NULL.
* | | Cosmetic change to using SwigPyObjectWilliam S Fulton2016-10-141-2/+5
| | |
* | | Fix Python pickling and metaclass for builtin wrappersWilliam S Fulton2016-10-142-9/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | scilab: add runtime function SWIG_Scilab_TypeQuery() checks runtime is ↵Simon Marchetto2016-10-052-0/+26
| | | | | | | | | | | | initialized
* | | scilab: clean runtime code (move error functions..)Simon Marchetto2016-10-052-71/+70
| | |
* | | Add further documentation/info on the smartptr feature to the shared_ptr ↵William S Fulton2016-09-301-0/+7
| | | | | | | | | | | | | | | | | | library file [skip ci]
* | | scilab: remove compilation warningsSimon Marchetto2016-09-263-4/+3
| | |
* | | scilab: mlists that map pointers can be given a custom type nameSimon Marchetto2016-09-262-9/+11
| | |
* | | Rework Python builtin CLOSURE macrosWilliam S Fulton2016-09-251-227/+303
| | | | | | | | | | | | | | | The new approach uses support functions and minimal code in the macros to make debugging easier.
* | | More flexible python builtin slotsWilliam S Fulton2016-09-251-15/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 */
* | | Merge pull request #793 from q-p/bad_castWilliam S Fulton2016-09-2510-0/+22
|\ \ \ | | | | | | | | Add std::bad_cast to std_except.i
| * | | Fix missed filesDaniel Vollmer2016-09-172-0/+2
| | | |
| * | | Add <typeinfo> header for std::bad_castDaniel Vollmer2016-09-178-0/+10
| | | |
| * | | Add std::bad_cast to std_except.iDaniel Vollmer2016-09-177-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | This exception occurs when dynamic_cast<T&> fails. Fixes #783.
* | | | Fix iterators for containers of NULL pointers (or Python None) when using ↵William S Fulton2016-09-171-12/+0
|/ / / | | | | | | | | | | | | | | | -builtin. Previously iteration would stop at the first element that had a NULL pointer value.
* | | [Javascript] Fix SWIG_exception() macro (#792)Olly Betts2016-09-176-3/+6
| | | | | | | | | | | | Fix SWIG_exception() macro to return from the current function. Fixes #789, reported by Julien Dutriaux.
* | | Arrange to return after calling zend_throw_exception()Olly Betts2016-09-161-1/+1
| | | | | | | | | | | | Fixes github issue#240.
* | | cstrings.swg: fix function names inside comments (#790)Marcin Wojdyr2016-09-161-3/+3
| | |
* | | Merge branch 'xypron-532'William S Fulton2016-09-121-2/+2
|\ \ \ | | | | | | | | | | | | | | | | * xypron-532: Csharp: CLS compliance - keyword rename
| * | | Csharp: CLS compliance - keyword renameHeinrich Schuchardt2016-09-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | Fix one casting warning on Linux (#787)brgirgis2016-09-121-1/+1
|/ / /
* | | scilab: pointer is mapped to mlist instead of tlist (for scilab overloading)Simon Marchetto2016-09-021-7/+7
| | |