|
Karsten Hopp |
1ce060 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
1ce060 |
Subject: Patch 7.3.834
|
|
Karsten Hopp |
1ce060 |
Fcc: outbox
|
|
Karsten Hopp |
1ce060 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
1ce060 |
Mime-Version: 1.0
|
|
Karsten Hopp |
1ce060 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
1ce060 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
1ce060 |
------------
|
|
Karsten Hopp |
1ce060 |
|
|
Karsten Hopp |
1ce060 |
Patch 7.3.834
|
|
Karsten Hopp |
1ce060 |
Problem: Ruby 2.0 has a few API changes.
|
|
Karsten Hopp |
1ce060 |
Solution: Add handling of Ruby 2.0. (Yasuhiro Matsumoto)
|
|
Karsten Hopp |
1ce060 |
Files: src/if_ruby.c
|
|
Karsten Hopp |
1ce060 |
|
|
Karsten Hopp |
1ce060 |
|
|
Karsten Hopp |
1ce060 |
*** ../vim-7.3.833/src/if_ruby.c 2013-02-14 22:19:47.000000000 +0100
|
|
Karsten Hopp |
1ce060 |
--- src/if_ruby.c 2013-02-26 13:41:24.000000000 +0100
|
|
Karsten Hopp |
1ce060 |
***************
|
|
Karsten Hopp |
1ce060 |
*** 189,195 ****
|
|
Karsten Hopp |
1ce060 |
--- 189,197 ----
|
|
Karsten Hopp |
1ce060 |
#ifndef RUBY19_OR_LATER
|
|
Karsten Hopp |
1ce060 |
#define rb_num2long dll_rb_num2long
|
|
Karsten Hopp |
1ce060 |
#endif
|
|
Karsten Hopp |
1ce060 |
+ #if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER <= 19
|
|
Karsten Hopp |
1ce060 |
#define rb_num2ulong dll_rb_num2ulong
|
|
Karsten Hopp |
1ce060 |
+ #endif
|
|
Karsten Hopp |
1ce060 |
#define rb_obj_alloc dll_rb_obj_alloc
|
|
Karsten Hopp |
1ce060 |
#define rb_obj_as_string dll_rb_obj_as_string
|
|
Karsten Hopp |
1ce060 |
#define rb_obj_id dll_rb_obj_id
|
|
Karsten Hopp |
1ce060 |
***************
|
|
Karsten Hopp |
1ce060 |
*** 344,349 ****
|
|
Karsten Hopp |
1ce060 |
--- 346,362 ----
|
|
Karsten Hopp |
1ce060 |
{
|
|
Karsten Hopp |
1ce060 |
return dll_rb_int2big(x);
|
|
Karsten Hopp |
1ce060 |
}
|
|
Karsten Hopp |
1ce060 |
+ #if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 20
|
|
Karsten Hopp |
1ce060 |
+ VALUE
|
|
Karsten Hopp |
1ce060 |
+ rb_float_new_in_heap(double d)
|
|
Karsten Hopp |
1ce060 |
+ {
|
|
Karsten Hopp |
1ce060 |
+ return dll_rb_float_new(d);
|
|
Karsten Hopp |
1ce060 |
+ }
|
|
Karsten Hopp |
1ce060 |
+ unsigned long rb_num2ulong(VALUE x)
|
|
Karsten Hopp |
1ce060 |
+ {
|
|
Karsten Hopp |
1ce060 |
+ return (long)RSHIFT((SIGNED_VALUE)(x),1);
|
|
Karsten Hopp |
1ce060 |
+ }
|
|
Karsten Hopp |
1ce060 |
+ #endif
|
|
Karsten Hopp |
1ce060 |
#endif
|
|
Karsten Hopp |
1ce060 |
|
|
Karsten Hopp |
1ce060 |
static HINSTANCE hinstRuby = NULL; /* Instance of ruby.dll */
|
|
Karsten Hopp |
1ce060 |
***************
|
|
Karsten Hopp |
1ce060 |
*** 434,440 ****
|
|
Karsten Hopp |
1ce060 |
--- 447,457 ----
|
|
Karsten Hopp |
1ce060 |
#endif
|
|
Karsten Hopp |
1ce060 |
#if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 18
|
|
Karsten Hopp |
1ce060 |
{"rb_string_value_ptr", (RUBY_PROC*)&dll_rb_string_value_ptr},
|
|
Karsten Hopp |
1ce060 |
+ # if DYNAMIC_RUBY_VER <= 19
|
|
Karsten Hopp |
1ce060 |
{"rb_float_new", (RUBY_PROC*)&dll_rb_float_new},
|
|
Karsten Hopp |
1ce060 |
+ # else
|
|
Karsten Hopp |
1ce060 |
+ {"rb_float_new_in_heap", (RUBY_PROC*)&dll_rb_float_new},
|
|
Karsten Hopp |
1ce060 |
+ # endif
|
|
Karsten Hopp |
1ce060 |
{"rb_ary_new", (RUBY_PROC*)&dll_rb_ary_new},
|
|
Karsten Hopp |
1ce060 |
{"rb_ary_push", (RUBY_PROC*)&dll_rb_ary_push},
|
|
Karsten Hopp |
1ce060 |
#endif
|
|
Karsten Hopp |
1ce060 |
*** ../vim-7.3.833/src/version.c 2013-02-26 13:30:28.000000000 +0100
|
|
Karsten Hopp |
1ce060 |
--- src/version.c 2013-02-26 13:33:34.000000000 +0100
|
|
Karsten Hopp |
1ce060 |
***************
|
|
Karsten Hopp |
1ce060 |
*** 730,731 ****
|
|
Karsten Hopp |
1ce060 |
--- 730,733 ----
|
|
Karsten Hopp |
1ce060 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
1ce060 |
+ /**/
|
|
Karsten Hopp |
1ce060 |
+ 834,
|
|
Karsten Hopp |
1ce060 |
/**/
|
|
Karsten Hopp |
1ce060 |
|
|
Karsten Hopp |
1ce060 |
--
|
|
Karsten Hopp |
1ce060 |
An alien life briefly visits earth. Just before departing it leaves a
|
|
Karsten Hopp |
1ce060 |
message in the dust on the back of a white van. The world is shocked
|
|
Karsten Hopp |
1ce060 |
and wants to know what it means. After months of studies the worlds
|
|
Karsten Hopp |
1ce060 |
best linguistic scientists are able to decipher the message: "Wash me!".
|
|
Karsten Hopp |
1ce060 |
|
|
Karsten Hopp |
1ce060 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
1ce060 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
1ce060 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
1ce060 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|