Commit graph

19,483 commits

Author SHA1 Message Date
Olly Betts
f4d8a7f78b PHP now generates E_NOTICE for misspelled constant 2016-11-30 13:07:17 +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
Olly Betts
bb98147965 Remove 'static' targets from PHP examples
The machinery these targets need to work no longer exists, and as
far as I can make out was removed before the code was put under
version control.
2016-11-30 12:15:42 +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
7268f58c4c Fix %rename override of wildcard %rename for templates
%rename(GlobalIntOperator) *::operator bool; // wildcard %rename
%rename(XIntOperator) X::operator bool; // fix now overrides first %rename above
OR
%rename(XIntOperator) X<int>::operator bool; // fix now overrides first %rename above

template<typename T> struct X {
  operator bool();
  ...
};
%template(Xint) X<int>;
2016-11-28 22:50:52 +00:00
William S Fulton
5d50ebc769 CHANGES file entry for improved python division wrappers 2016-11-26 23:14:50 +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
William S Fulton
c27b8622bd Update C# compilers 2016-11-25 18:55:52 +00:00
William S Fulton
6109e217aa Merge branch 'q-p-master'
* q-p-master:
  Python: Fix mixed signedness warning for std::array
2016-11-25 07:39:24 +00:00
William S Fulton
9d5e37e7f9 Fix outdated info in Doc Makefile about pdf file generation 2016-11-25 07:39:06 +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
9566d68120 add changes 2016-11-12 08:06:32 +08: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
Joseph C Wang
bff182d556 fix #697 - miscounting comma in member lists
fix method for counting comma in member list
2016-11-12 00:23:41 +08:00
William S Fulton
6310cdb28a html fix
[skip ci]
2016-11-03 19:26:38 +00:00
William S Fulton
108d82a886 Java doc update for directorin typemaps and Swig::LocalRefGuard
Motivated by fixes in patch #704

[skip ci]
2016-11-03 19:23:29 +00: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
20cd562e62 C++11 alias templates doc and changes file update 2016-11-02 10:05:39 +00:00
William S Fulton
c74397bfd0 Merge branch 'liorgold-alias-template'
* liorgold-alias-template:
  Warning header cosmetics
  Fix decl attribute in C++11 alias templates
  Add C++11 alias templates
2016-11-02 09:10:59 +00:00
William S Fulton
257822cc6d Warning header cosmetics
C++11 aliasing warnings are no longer needed as missing functionality
has been implemented.
2016-11-02 09:08:50 +00:00
William S Fulton
eda0779e76 C# std::array changes file addition
Fix C# warnings in test-case too.
2016-10-30 22:35:59 +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
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