William S Fulton
84c0cb2fe0
Merge branch 'ajrheading1-remove-unary-binary-function'
...
* ajrheading1-remove-unary-binary-function:
Remove inheritance from std::unary_function and std::binary_function, they are deprecated in C++11 and already removed in Visual C++ '15' running with /std:c++latest
2016-12-31 00:10:26 +00:00
Olly Betts
26a01e1b83
[PHP7] Fix segfault on module unload
...
Register internal 'swig_runtime_data_type_pointer' constant as
"CONST_PERSISTENT" to avoid segmentation fault on module unload. Fixes
https://github.com/swig/swig/issues/859 reported by Timotheus Pokorra -
thanks also to Javier Torres for a minimal reproducer.
2016-12-30 16:05:53 +13:00
Anthony Heading
1871acd4bc
Remove inheritance from std::unary_function and std::binary_function,
...
they are deprecated in C++11 and already removed in Visual C++ '15'
running with /std:c++latest
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3145.html
2016-12-29 00:56:46 -05:00
William S Fulton
c7eab6e5f0
Remove cdata.i module not supported message
2016-12-24 16:08:58 +00:00
William S Fulton
4963a7f88f
Fix Python 2 builtin tp_hash hashfunc closure regression when using "python:slot"
...
Closes https://github.com/swig/swig/issues/843
2016-12-23 23:41:07 +00:00
William S Fulton
94e7482e48
Remove illegal operator overload names in R
...
https://github.com/swig/swig/pull/853
2016-12-22 19:59:58 +00:00
William S Fulton
f9158e525f
Revert "Merge pull request #853 from ivannp/underscores"
...
This reverts commit a964098754 , reversing
changes made to bda3a11f9e .
SWIG should only provide default operator names that provide special
standard or conventional meaning in the target language.
2016-12-22 19:47:54 +00:00
Joseph Wang
a964098754
Merge pull request #853 from ivannp/underscores
...
Renamed all operators beginning with underscore.
2016-12-21 21:59:32 +08:00
Olly Betts
76d1aac47a
Fix isfinite() checks to work with all C++11 compilers
...
Fixes https://github.com/swig/swig/issues/615 ,
https://github.com/swig/swig/pull/788 and https://github.com/swig/swig/pull/849 .
2016-12-21 11:22:26 +13:00
Simon Marchetto
e517128e08
[Scilab] fix compilation, missing return
2016-12-20 10:09:07 +01:00
Simon Marchetto
94bee6b35a
[Scilab] put typemap int/double check into function (to reduce generated code size)
2016-12-19 15:04:30 +01:00
Simon Marchetto
4d46527c9c
scilab: clean
2016-12-19 15:04:30 +01:00
William S Fulton
6f0af6bec6
Merge branch 'ezralanglois-fix-memory-leak'
...
* ezralanglois-fix-memory-leak:
Replicate Python memory leak fix in std::pair for Octave and Ruby
Fix memory leak in std::pair Python binding
Conflicts:
CHANGES.current
2016-12-18 20:02:40 +00:00
William S Fulton
364fa82499
Replicate Python memory leak fix in std::pair for Octave and Ruby
...
https://github.com/swig/swig/pull/851
2016-12-18 20:00:40 +00:00
William S Fulton
bdf71b0067
Zero initialize %array_functions and %array_class
2016-12-18 17:50:47 +00:00
William S Fulton
cc56765a7a
Zero initialize newly created arrays
...
For consistency to previous fixes:
https://github.com/swig/swig/pull/208
https://github.com/swig/swig/issues/440
2016-12-18 17:50:47 +00:00
Tsutomu IKEGAMI
b630cc603c
Fix %array_class in carrays.i for Python -builtin
...
Closes https://github.com/swig/swig/issues/446
2016-12-18 17:49:47 +00:00
Ivan Popivanov
5ec5266284
Renamed all operators beginning with underscore.
2016-12-17 16:26:10 -08:00
Robert Langlois
631f0c34cc
Fix memory leak in std::pair Python binding
2016-12-17 13:27:25 -08:00
Brian Caine
391bb79cba
Added support for guile's native pointer type
2016-12-16 15:15:13 +13:00
Simon Marchetto
88b4827d87
scilab: SWIG_ptr() accepts mlist typed pointers and converts them to pointers
2016-12-15 23:57:42 +01:00
Olly Betts
23c0865831
SWIG_Tcl_ObjectDelete: Fix potential NULL pointer dereferences
2016-12-13 12:19:50 +13:00
Olly Betts
a5a6da9547
Fix comment typo
2016-12-13 12:19:09 +13:00
Olly Betts
971b94f5fe
Remove dead assignment
2016-12-13 11:29:30 +13:00
Olly Betts
2e98fddd78
Remove pointless casting away of const
2016-12-13 09:34:48 +13:00
Olly Betts
33c58818cd
Suppress unused parameter warning properly
...
Use SWIGUNUSEDPARM rather than assigning a dummy value to the parameter
(which then causing warnings about an assignment whose value is never
used.
2016-12-13 09:33:00 +13:00
Olly Betts
774311f11e
Add explicit check for expected PHP version
...
Should give a clearer error if PHP7 bindings are compiled against
PHP5 or vice versa.
2016-12-01 12:12:06 +13:00
Olly Betts
0ada392cee
[PHP] Fix minor misindentation in generated wrapper
2016-12-01 12:02:52 +13:00
Olly Betts
c8a5f84cd1
[PHP7] Wrap bool constants as PHP booleans
...
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.
2016-11-30 17:19:11 +13:00
Olly Betts
1169874f59
[PHP] Add support for PHP7.
...
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
2016-11-30 13:05:59 +13:00
William S Fulton
3b03e6addd
Fix a few minor inconsistencies in the STL wrappers
...
Mainly to use a more normal constructor declaration and to enable
classes with more than one template parameter to be used as container types.
2016-11-29 19:35:09 +00:00
William S Fulton
1079ba7ff8
Merge branch 'm7thon-python23-division-operators'
...
* m7thon-python23-division-operators:
[Python] improved wrapping of division operators
2016-11-26 22:00:21 +00:00
Daniel Vollmer
e4c5d82c71
Python: Fix mixed signedness warning for std::array
2016-11-23 22:21:46 +01:00
William S Fulton
0a22fa0df1
Missing transient keywords in Java proxy class
...
Further security exploit refinements to a1771c
2016-11-13 19:55:50 +00:00
Joseph C Wang
377f756f49
Fix #555 - Add stdio.h
...
This corrects for compilers that need stdio.h
2016-11-12 00:28:39 +08:00
William S Fulton
bdda0a0829
Python - fix compilation error when using -extranative and -builtin.
...
Closes #816
2016-11-02 22:00:54 +00:00
William S Fulton
d48b1712a8
Merge branch 'myd7349-master'
...
* 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
2016-10-30 22:27:47 +00:00
William S Fulton
b8ec248494
Merge branch 'tobilau-localref_wstring'
...
* tobilau-localref_wstring:
Added LocalRefGuard for wstrings
2016-10-30 13:55:34 +00:00
William S Fulton
e9e6a99f0f
Add missing VOID_INT_PTR director typemaps
2016-10-23 16:18:05 +01:00
Tobias Lau
26293546a6
Added LocalRefGuard for wstrings
2016-10-20 13:37:28 +02:00
William S Fulton
87bede9a99
Return to Python builtin tp_new initialization in init function.
2016-10-15 22:43:42 +01:00
William S Fulton
08a98437d0
Fix redundant NULL check in php typemaps
...
Fix for clang compile error as the address of an array will never be NULL.
2016-10-15 17:58:21 +01:00
William S Fulton
e5fd1c979b
Cosmetic change to using SwigPyObject
2016-10-14 07:30:44 +01:00
William S Fulton
96fae38be2
Fix Python pickling and metaclass for builtin wrappers
...
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
2016-10-14 07:30:44 +01:00
Simon Marchetto
6b2caca8b9
scilab: add runtime function SWIG_Scilab_TypeQuery() checks runtime is initialized
2016-10-05 14:09:08 +02:00
Simon Marchetto
36156a2295
scilab: clean runtime code (move error functions..)
2016-10-05 14:09:08 +02:00
William S Fulton
08e32e794c
Add further documentation/info on the smartptr feature to the shared_ptr library file
...
[skip ci]
2016-09-30 18:43:49 +01:00
Simon Marchetto
457ea5d209
scilab: remove compilation warnings
2016-09-26 13:55:45 +02:00
Simon Marchetto
0c09b00d6e
scilab: mlists that map pointers can be given a custom type name
2016-09-26 11:54:17 +02:00
William S Fulton
777c825cd2
Rework Python builtin CLOSURE macros
...
The new approach uses support functions and minimal code in the macros
to make debugging easier.
2016-09-25 14:15:38 +01:00