|
|
22c937 |
To: vim_dev@googlegroups.com
|
|
|
22c937 |
Subject: Patch 7.4.225
|
|
|
22c937 |
Fcc: outbox
|
|
|
22c937 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
|
22c937 |
Mime-Version: 1.0
|
|
|
22c937 |
Content-Type: text/plain; charset=UTF-8
|
|
|
22c937 |
Content-Transfer-Encoding: 8bit
|
|
|
22c937 |
------------
|
|
|
22c937 |
|
|
|
22c937 |
Patch 7.4.225
|
|
|
22c937 |
Problem: Dynamic Ruby doesn't work on Solaris.
|
|
|
22c937 |
Solution: Always use the stubs. (Danek Duvall, Yukihiro Nakadaira)
|
|
|
22c937 |
Files: src/if_ruby.c
|
|
|
22c937 |
|
|
|
22c937 |
|
|
|
22c937 |
*** ../vim-7.4.224/src/if_ruby.c 2014-02-23 22:52:33.352764716 +0100
|
|
|
22c937 |
--- src/if_ruby.c 2014-03-27 18:56:37.428765988 +0100
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 88,95 ****
|
|
|
22c937 |
# define rb_int2big rb_int2big_stub
|
|
|
22c937 |
#endif
|
|
|
22c937 |
|
|
|
22c937 |
! #if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 20 \
|
|
|
22c937 |
! && VIM_SIZEOF_INT < VIM_SIZEOF_LONG
|
|
|
22c937 |
/* Ruby 2.0 defines a number of static functions which use rb_fix2int and
|
|
|
22c937 |
* rb_num2int if VIM_SIZEOF_INT < VIM_SIZEOF_LONG (64bit) */
|
|
|
22c937 |
# define rb_fix2int rb_fix2int_stub
|
|
|
22c937 |
--- 88,94 ----
|
|
|
22c937 |
# define rb_int2big rb_int2big_stub
|
|
|
22c937 |
#endif
|
|
|
22c937 |
|
|
|
22c937 |
! #if defined(DYNAMIC_RUBY_VER) && VIM_SIZEOF_INT < VIM_SIZEOF_LONG
|
|
|
22c937 |
/* Ruby 2.0 defines a number of static functions which use rb_fix2int and
|
|
|
22c937 |
* rb_num2int if VIM_SIZEOF_INT < VIM_SIZEOF_LONG (64bit) */
|
|
|
22c937 |
# define rb_fix2int rb_fix2int_stub
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 203,210 ****
|
|
|
22c937 |
# define rb_inspect dll_rb_inspect
|
|
|
22c937 |
# define rb_int2inum dll_rb_int2inum
|
|
|
22c937 |
# if VIM_SIZEOF_INT < VIM_SIZEOF_LONG /* 64 bits only */
|
|
|
22c937 |
- # define rb_fix2int dll_rb_fix2int
|
|
|
22c937 |
- # define rb_num2int dll_rb_num2int
|
|
|
22c937 |
# define rb_num2uint dll_rb_num2uint
|
|
|
22c937 |
# endif
|
|
|
22c937 |
# define rb_lastline_get dll_rb_lastline_get
|
|
|
22c937 |
--- 202,207 ----
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 392,399 ****
|
|
|
22c937 |
{
|
|
|
22c937 |
return dll_rb_int2big(x);
|
|
|
22c937 |
}
|
|
|
22c937 |
! # if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 20 \
|
|
|
22c937 |
! && VIM_SIZEOF_INT < VIM_SIZEOF_LONG
|
|
|
22c937 |
long rb_fix2int_stub(VALUE x)
|
|
|
22c937 |
{
|
|
|
22c937 |
return dll_rb_fix2int(x);
|
|
|
22c937 |
--- 389,395 ----
|
|
|
22c937 |
{
|
|
|
22c937 |
return dll_rb_int2big(x);
|
|
|
22c937 |
}
|
|
|
22c937 |
! # if defined(DYNAMIC_RUBY_VER) && VIM_SIZEOF_INT < VIM_SIZEOF_LONG
|
|
|
22c937 |
long rb_fix2int_stub(VALUE x)
|
|
|
22c937 |
{
|
|
|
22c937 |
return dll_rb_fix2int(x);
|
|
|
22c937 |
*** ../vim-7.4.224/src/version.c 2014-03-27 18:51:06.612760919 +0100
|
|
|
22c937 |
--- src/version.c 2014-03-27 18:55:21.412764824 +0100
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 736,737 ****
|
|
|
22c937 |
--- 736,739 ----
|
|
|
22c937 |
{ /* Add new patch number below this line */
|
|
|
22c937 |
+ /**/
|
|
|
22c937 |
+ 225,
|
|
|
22c937 |
/**/
|
|
|
22c937 |
|
|
|
22c937 |
--
|
|
|
22c937 |
Engineers are widely recognized as superior marriage material: intelligent,
|
|
|
22c937 |
dependable, employed, honest, and handy around the house.
|
|
|
22c937 |
(Scott Adams - The Dilbert principle)
|
|
|
22c937 |
|
|
|
22c937 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
|
22c937 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
|
22c937 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
|
22c937 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|