Commit graph

19,905 commits

Author SHA1 Message Date
William S Fulton
5aff26fcb5 Add support for parsing and wrapping member const function pointers 2017-03-10 23:25:31 +00:00
William S Fulton
67edda3bf5 Remove unused cvsignore target 2017-03-10 23:25:31 +00:00
Karl Wette
11ca71fc91 [CI] Fix Octave 4.2 CI job
- Travis adds external PPAs which contain newer versions of packages
  than in baseline trusty. These newer packages prevent some of the
  Octave packages in ppa:kwwette/octave, which rely on the older
  packages in trusty, from installing. To prevent these kind of
  interactions arising, clean out all external PPAs added by Travis
  before installing Octave.
2017-03-09 20:18:11 +01:00
Takashi Tamura
cb1f89cb68 [ruby] must not do a null check for VALUE. 2017-03-07 11:43:01 +09:00
Mark Dufour
5803e81d48 Fix Coverity issue reported for setslice (pycontainer.swg):
"CID 11151 (#3-1 of 3): Using invalid iterator (INVALIDATE_ITERATOR)18.
increment_iterator: Incrementing iterator it though it is already past
the end of its container."

Coverity does not understand 'replace_count', so warns that we may go
past self->end() (or self->rend() I guess).
2017-03-06 21:16:41 +01:00
Mark Dufour
13eeebd2fb [Coverity] fix issue reported for wrapper argument checking
Fix Coverity issue reported for wrapper argument checking:

"Null-checking args suggests that it may be null, but it has already
been dereferenced on all paths leading to the check."

So 'args' is null checked, but after dereferencing it with
PyTuple_Check(args).
2017-03-06 14:07:47 +01:00
Takashi Tamura
d0af6fd97d [ruby] must not do null check for VALUE obj, which can be 0x0 == Qfalse, a valid Ruby object. 2017-03-06 15:13:05 +09:00
Takashi Tamura
b91e03d39a [ruby] add tests for shared_ptr of const Type. 2017-03-03 16:58:51 +09:00
Takashi Tamura
f96c2ad73d [ruby] For swig::from, use template specialization to convert shared_ptr<const T> to shared_ptr<T>. 2017-03-03 12:50:23 +09:00
Takashi Tamura
806f49bf58 [ruby] edit comments [skip ci] 2017-03-02 11:55:09 +09:00
Takashi Tamura
a784ace983 [ruby] move template specialization to std_shared_ptr.i. 2017-03-02 09:47:46 +09:00
Todd Leonhardt
bcf8d927f0 Finished updating Python docs for -threads option 2017-03-01 17:51:47 -05:00
Olly Betts
b451fc464b Escape literal > in HTML 2017-03-02 08:45:45 +13:00
Takashi Tamura
a84ea749b3 [ruby] add tests for upcasting std::shared_ptr within std containers. 2017-03-01 21:32:03 +09:00
Takashi Tamura
50e495c453 [ruby] use template specialization for swig::asptr,asval functions on std:shared_ptr. 2017-03-01 20:17:50 +09:00
Todd Leonhardt
52d12bc415 Started making changes to Python.html to document support for multithreaded Python SWIG applications. 2017-02-28 20:53:30 -05:00
Olly Betts
35e6414099 Add CHANGES.current entry for #908
Fixes #905
2017-02-27 10:11:27 +13:00
Asen Alexandrov
a6e9c087d8 [Issue 905] Add recognition for throw (.+) final|override in parser.y
PROBLEM:
 There is a small ommission in parser.y, which will lead
 to syntax errors in cases when non-empty throw declaration is
 followed by `override`, `final` or both. E.g. in cases like:

       void finalOverriden() throw(std::exception) final override;

SOLUTION:
 - Add a `THROW LPAREN parms RPAREN virt_specifier_seq` to
   exception_specification in Source/CParse/parser.y
 - Add several methods in test-suite/cpp11_final_override.i
   to verify the fix works.
2017-02-27 10:08:23 +13:00
Takashi Tamura
a02b7810bc [ruby] add a test to make sure that std::multiset is including Enumerable. 2017-02-26 22:12:39 +09:00
Takashi Tamura
b525848063 [ruyb] enable std::list test for Ruby. 2017-02-26 07:17:33 +09:00
Takashi Tamura
c88b9e8777 [ruby] make std::list include Enumerable. 2017-02-25 16:08:21 +09:00
Takashi Tamura
b8d383cb4a [ruby] add simple assertions. 2017-02-25 15:44:49 +09:00
Takashi Tamura
9f43082786 [ruby] make std::multiset and std::unordered_multiset include Enumerable. tests added. 2017-02-24 16:59:17 +09:00
Takashi Tamura
005e129287 [ruby] make std::unordered_map include Enumerable. 2017-02-24 16:59:17 +09:00
Takashi Tamura
4f31f5d0a3 [ruby] use %fragment to clarify the dependency of code. 2017-02-23 21:08:04 +09:00
Takashi Tamura
04a7c4f8b8 [ruby] should initialize static variables inside %init{}, in which it will not be
excuted concurrently by multiple threads.
2017-02-22 12:25:27 +09:00
Olly Betts
eeff677c72 [CI] Fix ocaml job to actually run
Fixes #912, reported by Karl Wette.
2017-02-22 10:13:11 +13:00
Takashi Tamura
e7eece9bcd [ruby] * use static variable to avoid creating stirngs every time.
* fix possible overflow.
2017-02-21 21:25:14 +09:00
Olly Betts
5498955931 [CI] Fix octave 4.2 CI job to actually still run
Fix pointed out by Karl Wette in #909.
2017-02-21 11:13:43 +13:00
Takashi Tamura
89695255e6 [ruby] add std::wstring tests for string including a null terminator. 2017-02-20 17:49:17 +09:00
Takashi Tamura
4009da3588 [ruby] * rewrite SWIG_AsWCharPtrAndSize and SWIG_FromWCharPtrAndSize
* use UTF-32LE and UTF-16LE to avoid BOM
       * add tests
2017-02-20 17:00:52 +09:00
Olly Betts
09edd722e1 [CI] Mark Octave 4.2 build as "allowed to fail"
It's started to reliably fail at package install time.  See #909.
2017-02-20 09:49:00 +13:00
Takashi Tamura
5722d81a09 [ruby] use WCHAR_MAX to determine the encoding of std::wstring. 2017-02-19 15:57:34 +09:00
Mark Dufour
21f532975f [Coverity] fix issue reported for SWIG_Python_ConvertFunctionPtr
Fix Coverity issue reported for SWIG_Python_ConvertFunctionPtr:

"Execution cannot reach this statement: *ptr = vptr;"

Because if 'ty' is null, then desc becomes null and we return with
SWIG_ERROR. So 'ty' cannot be null at 'if (ty)'.
2017-02-19 09:47:34 +13:00
Takashi Tamura
bfe7204576 [ruby] add a few tests for std::wstring 2017-02-18 17:54:03 +09:00
Takashi Tamura
904bc2ad52 [ruby] fix support for std::wstring. 2017-02-18 16:27:23 +09:00
Mark Dufour
9825fcbab5 [Coverity] fix issue reported for SWIG_Python_FixMethods
Fix Coverity issue reported for SWIG_Python_FixMethods:

"buffer_size: Calling strncpy with a source string whose length
(10 chars) is greater than or equal to the size argument (10)
will fail to null-terminate buff."

The issue is only reported for the "swig_ptr: " line, but for
consistency we replace both occurrences of strncpy with memcpy.
2017-02-15 15:58:26 +13:00
Takashi Tamura
3174e1488c [python] add %swig_sequence_iterator_with_making_function and
make %swig_sequence_iterator forward to it.
         add %swig_sequence_forward_iterator too.
2017-02-11 15:26:52 +09:00
Takashi Tamura
9c6d5dc53c [python] make SwigPyIteratorClosed_T and SwigPyIteratorOpen_T
inherit from forward iterator classes.
2017-02-11 15:26:52 +09:00
Takashi Tamura
db8bc1c9c7 [python] fix std unordered containers 2017-02-11 15:26:52 +09:00
William S Fulton
e5add63548 Enable C++11 and C++14 testing for Ruby 2017-02-10 19:57:50 +00:00
William S Fulton
f120fa44f6 Use travis_retry for commands that may fail due to network issues 2017-02-10 19:50:10 +00:00
William S Fulton
d6a349997c C++11 hash tables documentation 2017-02-10 19:49:58 +00:00
William S Fulton
de6476f321 Merge branch 'tamuratak-fix_std_unordred'
* tamuratak-fix_std_unordred:
  Move cpp11_hash_tables test to Ruby makefile until other languages work
  Cosmetic changes in C++11 std_unordered support files
  [ruby] add tests for unordered containers.
  [ruby] support for std unordered containers.
  use equal_range instead of upper_bound. unordered containers do not have the upper_bound method.
  fix a %fragment argument.
  use %std_container_methods_without_reverse_iterators
  fix Lib/std/std unordered containers
2017-02-10 19:49:10 +00:00
William S Fulton
16b583ec25 Move cpp11_hash_tables test to Ruby makefile until other languages work 2017-02-10 19:38:00 +00:00
William S Fulton
50f556de39 Cosmetic changes in C++11 std_unordered support files 2017-02-10 19:26:02 +00:00
William S Fulton
dee6b075a8 Fix seg fault parsing unterminated raw string literals 2017-02-09 22:02:20 +00:00
William S Fulton
b3a61a3876 Add C# IEnumerable improvement to changes file 2017-02-08 20:12:59 +00:00
William S Fulton
4262fab626 Merge branch 'jcsharp-patch-1'
* jcsharp-patch-1:
  Add tests for constructing C# std::vector from various container interface types
  Replace ICollection with IEnumerable<T>
2017-02-08 20:05:32 +00:00
William S Fulton
281eec7d18 Add tests for constructing C# std::vector from various container interface types 2017-02-08 20:02:40 +00:00