William S Fulton
a4e63a2cfc
Workaround all Travis OSX builds reporting a failure
...
Use 'set -e' just for catching errors in the travis install scripts
and not after the scripts which use 'source' in .travis.yml. This is
needed since Travis upgraded Xcode to 7.3 which has some errors due to
bad exit code in Travis scripts using rvm, see:
https://github.com/travis-ci/travis-ci/issues/6307
https://github.com/travis-ci/travis-ci/issues/6522
2016-10-16 12:28:15 +01:00
William S Fulton
d8434e47ac
Updates for Travis testing where the default Xcode changed from 6.1 to 7.3
...
See https://blog.travis-ci.com/2016-10-04-osx-73-default-image-live/
2016-10-16 12:17:53 +01: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
58461c1ffd
php run test fixes for new functions in testcase
2016-10-15 17:58:21 +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
f9ba371ee4
Remove li_boost_array testcase
...
Too many problems, this attempt to use std::array typemaps for boost::array
isn't really working. Latest problem is clang compile failures on OSX.
2016-10-15 17:58:17 +01:00
William S Fulton
a2990a8067
Turn off osx Travis testing until tests are fixed for migration of xcode from 6.1 to 7.3
2016-10-14 19:49:26 +01:00
William S Fulton
4b4540056d
Turn off Python pickle test for old style classes
2016-10-14 19:48:37 +01:00
William S Fulton
1331234cf9
Changes note update
...
[skip ci]
2016-10-14 07:40:19 +01:00
William S Fulton
d2cb98c134
Pickle test additions
...
These are not working yet for all combinations of builtin and PY3
The goal is to have a sensible default error that states that
pickling is not supported.
2016-10-14 07:30:44 +01:00
William S Fulton
e5fd1c979b
Cosmetic change to using SwigPyObject
2016-10-14 07:30:44 +01:00
William S Fulton
a05918361f
Add pickling change note
2016-10-14 07:30:44 +01:00
William S Fulton
d29fc38d1c
Fix Python builtin binaryfunc slots when using -O
...
Code did not compile - recent regression due to 848628
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
William S Fulton
9135ad72e2
Additional static member variable testing for Python
2016-10-14 07:30:44 +01:00
Andrey Starodubtsev
b9cdc3c5e1
Merge branch 'master' into directorargout_and_java_typemaps
2016-10-13 14:14:59 +03:00
Jiulong Wang
9b85318d77
Fix go wrapper compilation error
2016-10-11 10:49:43 -07:00
Frank Schlimbach
4eb7fb8123
account for explicitly qualified scopes
2016-10-11 07:05:44 -05:00
Frank Schlimbach
e42f575b12
adding test
2016-10-11 03:09:40 -05:00
Jiulong Wang
b9de6f1bf2
Fix missing semicolon in golang wrapper
2016-10-10 22:42:36 -07:00
Jiulong Wang
b4b4c0a25e
Fix extra quote escape in golang
2016-10-10 21:34:19 -07:00
Frank Schlimbach
49cd031f12
restricting chaching template default types
2016-10-10 10:42:23 -05: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
Frank Schlimbach
1cf7a5e925
Merge pull request #1 from swig/master
...
merge with master
2016-10-05 09:17:55 +02:00
Jiulong Wang
256e283fc3
Fix #define error when value contains char in compound expression
2016-10-02 13:01:16 -07: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
William S Fulton
08688d7d9d
Add support for "ret" typemap where missing and improve documentation on it.
2016-09-29 08:07:26 +01:00
William S Fulton
7bfa5fb951
Temporarily remove OSX testing of Guile on Travis
...
Seems like OSX 10.9 is now too old for homebrew and Guile
2016-09-27 08:12:49 +01:00
Olly Betts
209074dfff
Add entry for PR #777
...
Give up waiting for the submitter to.
2016-09-27 15:17:51 +13:00
ahmed-usman
2d871655e3
Update xml.cxx to return typenames ( #777 )
...
Typenames were being returned wrong, so add a condition to handle templateparms correctly.
2016-09-27 15:15:47 +13:00
Olly Betts
bbebd1a012
Add entry for #795 fix
2016-09-27 15:13:10 +13:00
Li Shengqiu
bac85d5b1a
[Go] Fix argument names in inherited functions #795 ( #797 )
...
* [Go] Fix argument names in inherited functions #795
This commit fixes a wrong argument name replacement in the inherited functions as well as a memory leak.
* Add testcase for #795
* Move variable_replacement testcase into common
* Move variable_replacement testcase into common
2016-09-27 15:08:47 +13: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
d3f7fd965c
Add bad_cast enhancement to changes file
2016-09-25 14:21:29 +01: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
William S Fulton
848628ae91
More flexible python builtin slots
...
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 */
2016-09-25 14:15:38 +01:00
William S Fulton
5b8e8fa107
Merge pull request #793 from q-p/bad_cast
...
Add std::bad_cast to std_except.i
2016-09-25 14:12:01 +01:00
Olly Betts
1adfe2f537
[PHP] Fix code generated for feature("director:except")
...
Previously the return value of call_user_function() was ignored and we
checked an uninitialised value instead. Fixes #627 . Based on patch
from Sergey Seroshtan.
2016-09-25 14:42:04 +13:00
Daniel Vollmer
dd7a5a6e6e
Fix missed files
2016-09-17 19:01:42 +02:00
William S Fulton
0769e9b727
Fix iterators for containers of NULL pointers (or Python None) when using -builtin.
...
Previously iteration would stop at the first element that had a NULL pointer value.
2016-09-17 17:53:48 +01:00
Daniel Vollmer
ce1cb85d86
Add <typeinfo> header for std::bad_cast
2016-09-17 13:24:32 +02:00
Daniel Vollmer
2dc87d7485
Add std::bad_cast to std_except.i
...
This exception occurs when dynamic_cast<T&> fails.
Fixes #783 .
2016-09-17 10:26:54 +02:00
Olly Betts
b138f054e5
[Javascript] Fix SWIG_exception() macro ( #792 )
...
Fix SWIG_exception() macro to return from the current function.
Fixes #789 , reported by Julien Dutriaux.
2016-09-17 17:29:42 +12:00
Olly Betts
26bbc96d58
Arrange to return after calling zend_throw_exception()
...
Fixes github issue#240.
2016-09-16 17:54:02 +12:00
Marcin Wojdyr
902f5d3f32
cstrings.swg: fix function names inside comments ( #790 )
2016-09-16 12:26:35 +12:00
Jiulong Wang
9e53432aef
Add more test case for char const expression in enum
2016-09-14 22:41:02 -07:00
William S Fulton
87f14a96b5
Add changes entry for C# symbol renaming
...
Closes #532
2016-09-12 08:18:51 +01:00
William S Fulton
5e50cfba25
Merge branch 'xypron-532'
...
* xypron-532:
Csharp: CLS compliance - keyword rename
2016-09-12 08:13:51 +01:00