Commit graph

19,454 commits

Author SHA1 Message Date
William S Fulton
ce525458ee Merge branch 'SimplyKnownAsG-master'
* SimplyKnownAsG-master:
  Edit operator[] additions
  Added description of the operator[] caveats

[skip ci]
2016-10-30 14:52:53 +00:00
William S Fulton
0886fc6fe6 Edit operator[] additions 2016-10-30 14:52:35 +00:00
William S Fulton
e127683d49 Java wstring directorin typemap resource leak fix change note 2016-10-30 13:58:26 +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
ed3bc81dca Compiler warning fixes in testcase 2016-10-30 13:54:33 +00:00
William S Fulton
f42b261b73 Use Visual Studio 2015 instead of 2012 as default compiler for Appveyor testing 2016-10-30 13:54:32 +00:00
g
61061ff150 Added description of the operator[] caveats 2016-10-26 23:55:04 -07:00
William S Fulton
96015de0dd Update documentation for using SWIG_ConvertPtr example usage
Add a test case to test the example documentation typemaps
2016-10-23 20:16:35 +01:00
William S Fulton
268b942865 Consistent formatting of example code in the docs 2016-10-23 20:16:35 +01:00
William S Fulton
129ef8ea8f Correct docs and examples to call SWIG_fail after setting a Python error
Although 'return NULL' works, it may miss out on some cleanup and NULL
is the wrong value to return in generated code for overloaded functions.
2016-10-23 20:16:35 +01:00
William S Fulton
e9e6a99f0f Add missing VOID_INT_PTR director typemaps 2016-10-23 16:18:05 +01:00
William S Fulton
d3ac729f78 Add compound expression fix to changes file 2016-10-23 10:42:24 +01:00
William S Fulton
f89b8836dd Merge branch 'jiulongw-master'
* jiulongw-master:
  Fix go wrapper compilation error
  Fix missing semicolon in golang wrapper
  Fix extra quote escape in golang
  Fix #define error when value contains char in compound expression
  Add more test case for char const expression in enum
  Revert "Add enum test cases with const char in compound expression"
  Add runtime tests for char in compound expression patch
  Add enum test cases with const char in compound expression
  Fix enum error when value contains char in compound expression
2016-10-23 10:32:48 +01:00
Tobias Lau
26293546a6 Added LocalRefGuard for wstrings 2016-10-20 13:37:28 +02:00
William S Fulton
a147e7bf5a Travis Trusty testing fix ups
Go back to Travis testing nodejs on Precise - can't seem to avoid
node-gyp incompatibility that does not happens in normal Ubuntu Trusty.
Ruby and Python 3.4 testing corrections for testing on Travis.
2016-10-17 08:00:52 +01:00
William S Fulton
1bb89e31aa Remove Travis testing restriction to just master branch 2016-10-17 08:00:52 +01:00
William S Fulton
3cd70db8ec Migrate Linux Travis testing from Precise to Trusty
Default gcc compiler changes from gcc-4.6.3 to gcc-4.8.4
Migrate target languages except Octave for which there are no equivalent
packages for 3.2 and 4.0
Still test gcc on Precise (errors test-suite only)
2016-10-17 08:00:52 +01:00
William S Fulton
5df10e380e Fix some test-suite warnings 2016-10-16 19:10:35 +01:00
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
Jiulong Wang
9b85318d77 Fix go wrapper compilation error 2016-10-11 10:49:43 -07: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
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
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