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