Ruby 1.9 fixes.
SF Bug#1292 - Runtime fixes for Proc changes in ruby-1.9 when using STL wrappers that override the default predicate, such as: %template(Map) std::map<swig::LANGUAGE_OBJ, swig::LANGUAGE_OBJ, swig::BinaryPredicate<> >; Fixes li_std_functors testcases for Ruby 1.9. Also rb_respond_to return values have changed subtely in 1.9 and return should be treated as a flag instead of checking for Qtrue, see SF Bug #1159. Also fix li_std_map, li_std_set silently failing - rb_protect behaviour seems to have changed when an exception is thrown, so code has been changed to use rb_rescue. A call to 'rb_set_errinfo(Qnil)' could have solved this after the rb_protect call, but it is only available in 1.9+ and Ruby API changes are not easily and transparently detectable.
This commit is contained in:
parent
ee92a26819
commit
5d529d5a76
5 changed files with 34 additions and 9 deletions
|
|
@ -5,6 +5,16 @@ See the RELEASENOTES file for a summary of changes in each release.
|
|||
Version 2.0.10 (in progress)
|
||||
============================
|
||||
|
||||
2013-04-05: wsfulton
|
||||
[Ruby] SF Bug #1292 - Runtime fixes for Proc changes in ruby-1.9 when using STL
|
||||
wrappers that override the default predicate, such as:
|
||||
|
||||
%template(Map) std::map<swig::LANGUAGE_OBJ, swig::LANGUAGE_OBJ, swig::BinaryPredicate<> >;
|
||||
|
||||
2013-04-05: wsfulton
|
||||
[Ruby] SF Bug #1159 - Correctly check rb_respond_to call return values to fix some
|
||||
further 1.9 problems with functors and use of Complex wrappers.
|
||||
|
||||
2013-04-02: wsfulton
|
||||
[Ruby] Runtime fixes for std::complex wrappers for ruby-1.9 - new native Ruby complex numbers are used.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue