Commit graph

19,905 commits

Author SHA1 Message Date
William S Fulton
20b72b78b4 Fix CCache documentation build and uninstall 2017-07-15 13:17:50 +01:00
FUTATSUKI Yasuhito
b4b193d7de Add explicit dependency on header files generated by configure script 2017-06-24 22:32:27 +09:00
FUTATSUKI Yasuhito
c2f622c73c Fix make *clean issue in CCache subdir 2017-06-24 21:58:57 +09:00
William S Fulton
c6bff3731e Add Python 3 C++11 Travis testing 2017-06-23 14:51:25 +01:00
William S Fulton
005ff93dbd Fix construction from dict for std::multimap std::unordered_multimap (Python 3) 2017-06-23 14:38:26 +01:00
William S Fulton
a2267a8152 Memory leak fixes in Python default argument handling 2017-06-23 14:19:12 +01:00
Olly Betts
ad7dcb2c87 Merge branch 'm7thon-python23-octal-arguments' 2017-06-23 14:57:05 +12:00
Olly Betts
2425c8d6d8 Don't handle cases like -1U as Python constants 2017-06-23 14:54:50 +12:00
Michael Thon
80ffb169c1 [Python] fix and improve default argument handling
1. Fix negative octals. Currently not handled correctly by `-py3`
   (unusual case, but incorrect).
2. Fix arguments of type "octal + something" (e.g. `0640 | 04`).
   Currently drops everything after the first octal. Nasty!
3. Fix bool arguments "0 + something" (e.g. `0 | 1`) are always
   "False" (unusual case, but incorrect).
4. Remove special handling of "TRUE" and "FALSE" from
   `convertValue` since there's no reason these have to match
   "true" and "false".
5. Remove the Python 2 vs. Python 3 distinction based on the
   `-py3` flag. Now the same python code is produced for default
   arguments for Python 2 and Python 3. For this, octal default
   arguments, e.g. 0644, are now wrapped as `int('644', 8)`. This
   is required, as Python 2 and Python 3 have incompatible syntax
   for octal literals.

Fixes #707
2017-06-23 13:38:49 +12:00
William S Fulton
2a47918a3f Add changes entry for ccache-swig configure fix 2017-06-21 15:35:35 +01:00
William S Fulton
a90cc8f447 Merge branch 'futatuki-ccache-configure-care-for-rename'
* futatuki-ccache-configure-care-for-rename:
  Apply changes requested for this pull request
  fix typo
  Embed fixed string '.exe' to CCache/config_win32.h even if EXEEXT is empty.
  Add header file in CCache for _WIN32 environment
  CCache: take care of program prefix/suffix on configure
2017-06-21 15:15:24 +01:00
FUTATSUKI YASUHITO
7be53b7692 Apply changes requested for this pull request 2017-06-21 11:54:06 +09:00
William S Fulton
339b625160 Add changes file entry for Ruby std::wstring support 2017-06-21 00:05:56 +01:00
William S Fulton
e9e9531dc3 Merge branch 'tamuratak-fix_ruby_wstring'
* tamuratak-fix_ruby_wstring:
  [ruby] use %fragment to clarify the dependency of code.
  [ruby] should initialize static variables inside %init{}, in which it will not be        excuted concurrently by multiple threads.
  [ruby] * use static variable to avoid creating stirngs every time.        * fix possible overflow.
  [ruby] add std::wstring tests for string including a null terminator.
  [ruby] * rewrite SWIG_AsWCharPtrAndSize and SWIG_FromWCharPtrAndSize        * use UTF-32LE and UTF-16LE to avoid BOM        * add tests
  [ruby] use WCHAR_MAX to determine the encoding of std::wstring.
  [ruby] add a few tests for std::wstring
  [ruby] fix support for std::wstring.
2017-06-20 20:13:01 +01:00
William S Fulton
ff53789dc9 Suppress warning in testcase 2017-06-20 07:00:22 +01:00
William S Fulton
1d1d0de2d0 Fix python_richcompare test for Python 3.6 2017-06-20 00:02:00 +01:00
FUTATSUKI YASUHITO
36b61dd0f2 fix typo 2017-06-20 07:57:54 +09:00
William S Fulton
057b1dc028 Add Travis Python 2, C++11 and -builtin testing 2017-06-19 20:37:09 +01:00
William S Fulton
e0c0017839 Remove failing runtime tests for now using Python 2 and -builtin 2017-06-19 20:33:32 +01:00
William S Fulton
b56d7c0539 Python builtin C++11 STL fixes
Compilation fixes for std::multimap, std::unordered_map and
std::unordered_multimap.
2017-06-19 20:32:32 +01:00
William S Fulton
4ab2aff0a1 Fix Python unordered_map and ordered_map compilation error when using -builtin 2017-06-19 19:43:51 +01:00
William S Fulton
687cf9c9c1 Add missing %python:maybecall to operator overloads.
This ensures NotImplemented is returned on error so that the Python
interpreter will handle the operators correctly instead of throwing an
exception. NotImplemented was not being returned for non-builtin wrappers
when the operator overload did not have a function overload.

See PEP 207 and https://docs.python.org/3/library/constants.html#NotImplemented

Mentioned in SF patch #303 and SF bug #1208.
2017-06-19 19:25:27 +01:00
FUTATSUKI YASUHITO
529906f181 Embed fixed string '.exe' to CCache/config_win32.h even if EXEEXT is empty. 2017-06-20 01:47:07 +09:00
FUTATSUKI YASUHITO
93895f5a51 Add header file in CCache for _WIN32 environment 2017-06-20 01:33:10 +09:00
FUTATSUKI YASUHITO
a706aa146c CCache: take care of program prefix/suffix on configure 2017-06-19 18:35:22 +09:00
William S Fulton
f12d14d1be Turn on C++11 Travis testing for R
R tests use 'R CMD SHLIB' to compile the wrappers and there is no easy
way to change the compiler this tool uses.
2017-06-17 10:32:26 +01:00
Olly Betts
d5d4f18021 [Go] Fix Go callback example
Fixes github #600, #955, #1000
2017-06-17 11:41:24 +12:00
Fabrice Benhamouda
5386bf2a24 fix swig/swig#600 and fix swig/swig#955 2017-06-17 11:38:07 +12:00
William S Fulton
5679bce94f Revert "Add R to c++11 and c++14 Travis testing"
This reverts commit b2e494f018.
2017-06-16 20:36:52 +01:00
William S Fulton
11aa71b939 Make sure warning and error messages are not split up
They could be split up by other processes writing to stdout
at the same time.
2017-06-16 19:24:48 +01:00
William S Fulton
95e8643d70 Rename func to funk in tests to avoid Go keyword problems 2017-06-16 19:24:48 +01:00
William S Fulton
67190cbb2e Add import_fragment test back in to Go test-suite 2017-06-16 19:24:22 +01:00
William S Fulton
b2e494f018 Add R to c++11 and c++14 Travis testing 2017-06-16 07:41:09 +01:00
William S Fulton
6a7cd97fe9 Fix R function pointer wrappers containing lvalue and rvalue reference parameters 2017-06-16 07:41:05 +01:00
William S Fulton
5b0611dbcd Fix compiler flags used during R testing
CFLAGS and CXXFLAGS were not being passed properly when compiling
wrappers.
2017-06-13 19:36:35 +01:00
William S Fulton
82969b0755 Fix warning in generated code - traits_asptr.
Visual Studio 2015 debug builds:
error C4703: potentially uninitialized local pointer variable 'p' used
2017-06-13 19:02:59 +01:00
Olly Betts
8855ef2b48 [Perl] Fix testsuite to work without . in @INC
"." was removed from @INC in Perl 5.26 for security reasons, and has
also been removed from older versions in some distros.

Fixes https://github.com/swig/swig/issues/997 reported by lfam.
2017-06-13 17:32:37 +12:00
William S Fulton
5d5fd5b122 Fix scilab fragment dependency problem in STL headers
import_stl test now working again
2017-06-06 19:56:59 +01:00
William S Fulton
b08d6ddbad Temporarily disable failing tests 2017-06-06 07:14:18 +01:00
William S Fulton
00b0c5b8ea Testcase fix for name clash in tcl headers 2017-06-06 06:59:23 +01:00
William S Fulton
9d5d991f83 Merge branch 'master' of git+ssh://github.com/swig/swig
* 'master' of git+ssh://github.com/swig/swig:
  update changes referencing issue
  fix Scilab 6.0.0 linking issue

Conflicts:
	CHANGES.current
2017-06-05 20:58:12 +01:00
William S Fulton
10e73a5bfb Java jboxtype typemap documentation and tidy up 2017-06-05 20:47:49 +01:00
William S Fulton
e1a667bd52 minor update to the changes file 2017-06-05 19:46:06 +01:00
William S Fulton
bc7c80b862 More Java vector runtime tests 2017-06-05 19:33:45 +01:00
William S Fulton
65abd9558d Merge branch 'java-vector-test'
* java-vector-test:
  Java std_vector runtime test

Conflicts:
	Examples/test-suite/java/li_std_vector_runme.java
2017-06-05 19:23:31 +01:00
William S Fulton
30b7424f8e Java std_vector runtime test
From Volker Diels-Grabsch in SF patch https://sourceforge.net/p/swig/patches/278/
2017-06-05 19:15:32 +01:00
William S Fulton
5eb9f735da Add generic approach in fragments for converting size_t to Java int 2017-06-05 18:49:54 +01:00
William S Fulton
be63f73e33 Fix c++ compiler warnings in c++11 testcases 2017-06-03 18:37:05 +01:00
William S Fulton
57a89f987d Fix %import and %fragment forced inclusion to not generate code. 2017-06-03 18:37:05 +01:00
William S Fulton
857a62425c Formatting fixes in Lisp docs 2017-06-03 18:37:05 +01:00