Karsten Hopp a4b46c
To: vim_dev@googlegroups.com
Karsten Hopp a4b46c
Subject: Patch 7.4.705
Karsten Hopp a4b46c
Fcc: outbox
Karsten Hopp a4b46c
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp a4b46c
Mime-Version: 1.0
Karsten Hopp a4b46c
Content-Type: text/plain; charset=UTF-8
Karsten Hopp a4b46c
Content-Transfer-Encoding: 8bit
Karsten Hopp a4b46c
------------
Karsten Hopp a4b46c
Karsten Hopp a4b46c
Patch 7.4.705
Karsten Hopp a4b46c
Problem:    Can't build with Ruby 2.2.
Karsten Hopp a4b46c
Solution:   Add #ifdefs to handle the incompatible change. (Andrei Olsen)
Karsten Hopp a4b46c
Files:      src/if_ruby.c
Karsten Hopp a4b46c
Karsten Hopp a4b46c
Karsten Hopp a4b46c
*** ../vim-7.4.704/src/if_ruby.c	2015-01-14 14:04:05.511397639 +0100
Karsten Hopp a4b46c
--- src/if_ruby.c	2015-04-21 15:24:30.294078994 +0200
Karsten Hopp a4b46c
***************
Karsten Hopp a4b46c
*** 396,402 ****
Karsten Hopp a4b46c
--- 396,406 ----
Karsten Hopp a4b46c
  # endif
Karsten Hopp a4b46c
  
Karsten Hopp a4b46c
  # if defined(RUBY19_OR_LATER) && !defined(PROTO)
Karsten Hopp a4b46c
+ #  if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 22
Karsten Hopp a4b46c
+ long rb_num2long_stub(VALUE x)
Karsten Hopp a4b46c
+ #  else
Karsten Hopp a4b46c
  SIGNED_VALUE rb_num2long_stub(VALUE x)
Karsten Hopp a4b46c
+ #  endif
Karsten Hopp a4b46c
  {
Karsten Hopp a4b46c
      return dll_rb_num2long(x);
Karsten Hopp a4b46c
  }
Karsten Hopp a4b46c
***************
Karsten Hopp a4b46c
*** 421,427 ****
Karsten Hopp a4b46c
--- 425,435 ----
Karsten Hopp a4b46c
  {
Karsten Hopp a4b46c
      return dll_rb_float_new(d);
Karsten Hopp a4b46c
  }
Karsten Hopp a4b46c
+ #   if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 22
Karsten Hopp a4b46c
+ unsigned long rb_num2ulong(VALUE x)
Karsten Hopp a4b46c
+ #   else
Karsten Hopp a4b46c
  VALUE rb_num2ulong(VALUE x)
Karsten Hopp a4b46c
+ #   endif
Karsten Hopp a4b46c
  {
Karsten Hopp a4b46c
      return (long)RSHIFT((SIGNED_VALUE)(x),1);
Karsten Hopp a4b46c
  }
Karsten Hopp a4b46c
*** ../vim-7.4.704/src/version.c	2015-04-21 14:02:28.493694351 +0200
Karsten Hopp a4b46c
--- src/version.c	2015-04-21 15:25:12.633633454 +0200
Karsten Hopp a4b46c
***************
Karsten Hopp a4b46c
*** 743,744 ****
Karsten Hopp a4b46c
--- 743,746 ----
Karsten Hopp a4b46c
  {   /* Add new patch number below this line */
Karsten Hopp a4b46c
+ /**/
Karsten Hopp a4b46c
+     705,
Karsten Hopp a4b46c
  /**/
Karsten Hopp a4b46c
Karsten Hopp a4b46c
-- 
Karsten Hopp a4b46c
   A village.  Sound of chanting of Latin canon, punctuated by short, sharp
Karsten Hopp a4b46c
   cracks.  It comes nearer.  We see it is a line of MONKS ala SEVENTH SEAL
Karsten Hopp a4b46c
   flagellation scene, chanting and banging themselves on the foreheads with
Karsten Hopp a4b46c
   wooden boards.
Karsten Hopp a4b46c
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp a4b46c
Karsten Hopp a4b46c
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp a4b46c
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp a4b46c
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp a4b46c
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///