lkundrak / rpms / vim

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