|
Karsten Hopp |
25b9d7 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
25b9d7 |
Subject: Patch 7.4.227
|
|
Karsten Hopp |
25b9d7 |
Fcc: outbox
|
|
Karsten Hopp |
25b9d7 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
25b9d7 |
Mime-Version: 1.0
|
|
Karsten Hopp |
25b9d7 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
25b9d7 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
25b9d7 |
------------
|
|
Karsten Hopp |
25b9d7 |
|
|
Karsten Hopp |
25b9d7 |
Patch 7.4.227 (after 7.4.225)
|
|
Karsten Hopp |
25b9d7 |
Problem: Can't build with Ruby 1.8.
|
|
Karsten Hopp |
25b9d7 |
Solution: Do include a check for the Ruby version. (Ken Takata)
|
|
Karsten Hopp |
25b9d7 |
Files: src/if_ruby.c
|
|
Karsten Hopp |
25b9d7 |
|
|
Karsten Hopp |
25b9d7 |
|
|
Karsten Hopp |
25b9d7 |
*** ../vim-7.4.226/src/if_ruby.c 2014-03-27 19:08:52.004777244 +0100
|
|
Karsten Hopp |
25b9d7 |
--- src/if_ruby.c 2014-03-28 21:54:06.414253061 +0100
|
|
Karsten Hopp |
25b9d7 |
***************
|
|
Karsten Hopp |
25b9d7 |
*** 88,95 ****
|
|
Karsten Hopp |
25b9d7 |
# define rb_int2big rb_int2big_stub
|
|
Karsten Hopp |
25b9d7 |
#endif
|
|
Karsten Hopp |
25b9d7 |
|
|
Karsten Hopp |
25b9d7 |
! #if defined(DYNAMIC_RUBY_VER) && VIM_SIZEOF_INT < VIM_SIZEOF_LONG
|
|
Karsten Hopp |
25b9d7 |
! /* Ruby 2.0 defines a number of static functions which use rb_fix2int and
|
|
Karsten Hopp |
25b9d7 |
* rb_num2int if VIM_SIZEOF_INT < VIM_SIZEOF_LONG (64bit) */
|
|
Karsten Hopp |
25b9d7 |
# define rb_fix2int rb_fix2int_stub
|
|
Karsten Hopp |
25b9d7 |
# define rb_num2int rb_num2int_stub
|
|
Karsten Hopp |
25b9d7 |
--- 88,96 ----
|
|
Karsten Hopp |
25b9d7 |
# define rb_int2big rb_int2big_stub
|
|
Karsten Hopp |
25b9d7 |
#endif
|
|
Karsten Hopp |
25b9d7 |
|
|
Karsten Hopp |
25b9d7 |
! #if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 19 \
|
|
Karsten Hopp |
25b9d7 |
! && VIM_SIZEOF_INT < VIM_SIZEOF_LONG
|
|
Karsten Hopp |
25b9d7 |
! /* Ruby 1.9 defines a number of static functions which use rb_fix2int and
|
|
Karsten Hopp |
25b9d7 |
* rb_num2int if VIM_SIZEOF_INT < VIM_SIZEOF_LONG (64bit) */
|
|
Karsten Hopp |
25b9d7 |
# define rb_fix2int rb_fix2int_stub
|
|
Karsten Hopp |
25b9d7 |
# define rb_num2int rb_num2int_stub
|
|
Karsten Hopp |
25b9d7 |
***************
|
|
Karsten Hopp |
25b9d7 |
*** 202,207 ****
|
|
Karsten Hopp |
25b9d7 |
--- 203,212 ----
|
|
Karsten Hopp |
25b9d7 |
# define rb_inspect dll_rb_inspect
|
|
Karsten Hopp |
25b9d7 |
# define rb_int2inum dll_rb_int2inum
|
|
Karsten Hopp |
25b9d7 |
# if VIM_SIZEOF_INT < VIM_SIZEOF_LONG /* 64 bits only */
|
|
Karsten Hopp |
25b9d7 |
+ # if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER <= 18
|
|
Karsten Hopp |
25b9d7 |
+ # define rb_fix2int dll_rb_fix2int
|
|
Karsten Hopp |
25b9d7 |
+ # define rb_num2int dll_rb_num2int
|
|
Karsten Hopp |
25b9d7 |
+ # endif
|
|
Karsten Hopp |
25b9d7 |
# define rb_num2uint dll_rb_num2uint
|
|
Karsten Hopp |
25b9d7 |
# endif
|
|
Karsten Hopp |
25b9d7 |
# define rb_lastline_get dll_rb_lastline_get
|
|
Karsten Hopp |
25b9d7 |
***************
|
|
Karsten Hopp |
25b9d7 |
*** 389,395 ****
|
|
Karsten Hopp |
25b9d7 |
{
|
|
Karsten Hopp |
25b9d7 |
return dll_rb_int2big(x);
|
|
Karsten Hopp |
25b9d7 |
}
|
|
Karsten Hopp |
25b9d7 |
! # if defined(DYNAMIC_RUBY_VER) && VIM_SIZEOF_INT < VIM_SIZEOF_LONG
|
|
Karsten Hopp |
25b9d7 |
long rb_fix2int_stub(VALUE x)
|
|
Karsten Hopp |
25b9d7 |
{
|
|
Karsten Hopp |
25b9d7 |
return dll_rb_fix2int(x);
|
|
Karsten Hopp |
25b9d7 |
--- 394,401 ----
|
|
Karsten Hopp |
25b9d7 |
{
|
|
Karsten Hopp |
25b9d7 |
return dll_rb_int2big(x);
|
|
Karsten Hopp |
25b9d7 |
}
|
|
Karsten Hopp |
25b9d7 |
! # if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 19 \
|
|
Karsten Hopp |
25b9d7 |
! && VIM_SIZEOF_INT < VIM_SIZEOF_LONG
|
|
Karsten Hopp |
25b9d7 |
long rb_fix2int_stub(VALUE x)
|
|
Karsten Hopp |
25b9d7 |
{
|
|
Karsten Hopp |
25b9d7 |
return dll_rb_fix2int(x);
|
|
Karsten Hopp |
25b9d7 |
*** ../vim-7.4.226/src/version.c 2014-03-28 21:49:26.854248777 +0100
|
|
Karsten Hopp |
25b9d7 |
--- src/version.c 2014-03-28 21:53:51.546252833 +0100
|
|
Karsten Hopp |
25b9d7 |
***************
|
|
Karsten Hopp |
25b9d7 |
*** 736,737 ****
|
|
Karsten Hopp |
25b9d7 |
--- 736,739 ----
|
|
Karsten Hopp |
25b9d7 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
25b9d7 |
+ /**/
|
|
Karsten Hopp |
25b9d7 |
+ 227,
|
|
Karsten Hopp |
25b9d7 |
/**/
|
|
Karsten Hopp |
25b9d7 |
|
|
Karsten Hopp |
25b9d7 |
--
|
|
Karsten Hopp |
25b9d7 |
No engineer can take a shower without wondering if some sort of Teflon coating
|
|
Karsten Hopp |
25b9d7 |
would make showering unnecessary.
|
|
Karsten Hopp |
25b9d7 |
(Scott Adams - The Dilbert principle)
|
|
Karsten Hopp |
25b9d7 |
|
|
Karsten Hopp |
25b9d7 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
25b9d7 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
25b9d7 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
25b9d7 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|