astepano / rpms / vim

Forked from rpms/vim 6 years ago
Clone
3f7a203
To: vim_dev@googlegroups.com
3f7a203
Subject: Patch 7.3.729
3f7a203
Fcc: outbox
3f7a203
From: Bram Moolenaar <Bram@moolenaar.net>
3f7a203
Mime-Version: 1.0
3f7a203
Content-Type: text/plain; charset=UTF-8
3f7a203
Content-Transfer-Encoding: 8bit
3f7a203
------------
3f7a203
3f7a203
Patch 7.3.729
3f7a203
Problem:    Building with Ruby fails on some systems.
3f7a203
Solution:   Remove "static" and add #ifndef PROTO. (Ken Takata)
3f7a203
Files:	    src/if_ruby.c
3f7a203
3f7a203
3f7a203
*** ../vim-7.3.728/src/if_ruby.c	2012-11-20 16:59:09.000000000 +0100
3f7a203
--- src/if_ruby.c	2012-11-24 13:32:06.000000000 +0100
3f7a203
***************
3f7a203
*** 335,346 ****
3f7a203
  static void* (*ruby_process_options)(int, char**);
3f7a203
  #endif
3f7a203
  
3f7a203
! #ifdef RUBY19_OR_LATER
3f7a203
! static SIGNED_VALUE rb_num2long_stub(VALUE x)
3f7a203
  {
3f7a203
      return dll_rb_num2long(x);
3f7a203
  }
3f7a203
! static VALUE rb_int2big_stub(SIGNED_VALUE x)
3f7a203
  {
3f7a203
      return dll_rb_int2big(x);
3f7a203
  }
3f7a203
--- 335,346 ----
3f7a203
  static void* (*ruby_process_options)(int, char**);
3f7a203
  #endif
3f7a203
  
3f7a203
! #if defined(RUBY19_OR_LATER) && !defined(PROTO)
3f7a203
! SIGNED_VALUE rb_num2long_stub(VALUE x)
3f7a203
  {
3f7a203
      return dll_rb_num2long(x);
3f7a203
  }
3f7a203
! VALUE rb_int2big_stub(SIGNED_VALUE x)
3f7a203
  {
3f7a203
      return dll_rb_int2big(x);
3f7a203
  }
3f7a203
*** ../vim-7.3.728/src/version.c	2012-11-23 21:54:43.000000000 +0100
3f7a203
--- src/version.c	2012-11-24 13:34:20.000000000 +0100
3f7a203
***************
3f7a203
*** 727,728 ****
3f7a203
--- 727,730 ----
3f7a203
  {   /* Add new patch number below this line */
3f7a203
+ /**/
3f7a203
+     729,
3f7a203
  /**/
3f7a203
3f7a203
-- 
3f7a203
hundred-and-one symptoms of being an internet addict:
3f7a203
64. The remote to the T.V. is missing...and you don't even care.
3f7a203
3f7a203
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
3f7a203
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
3f7a203
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
3f7a203
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///