Karsten Hopp 287fe4
To: vim_dev@googlegroups.com
Karsten Hopp 287fe4
Subject: Patch 7.4.534
Karsten Hopp 287fe4
Fcc: outbox
Karsten Hopp 287fe4
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 287fe4
Mime-Version: 1.0
Karsten Hopp 287fe4
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 287fe4
Content-Transfer-Encoding: 8bit
Karsten Hopp 287fe4
------------
Karsten Hopp 287fe4
Karsten Hopp 287fe4
Patch 7.4.534
Karsten Hopp 287fe4
Problem:    Warnings when compiling if_ruby.c.
Karsten Hopp 287fe4
Solution:   Avoid the warnings. (Ken Takata)
Karsten Hopp 287fe4
Files:	    src/if_ruby.c
Karsten Hopp 287fe4
Karsten Hopp 287fe4
Karsten Hopp 287fe4
*** ../vim-7.4.533/src/if_ruby.c	2014-11-12 16:05:01.142042845 +0100
Karsten Hopp 287fe4
--- src/if_ruby.c	2014-11-27 17:42:25.205922384 +0100
Karsten Hopp 287fe4
***************
Karsten Hopp 287fe4
*** 96,106 ****
Karsten Hopp 287fe4
  # define rb_num2int rb_num2int_stub
Karsten Hopp 287fe4
  #endif
Karsten Hopp 287fe4
  
Karsten Hopp 287fe4
! # if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 21
Karsten Hopp 287fe4
  /* Ruby 2.1 adds new GC called RGenGC and RARRAY_PTR uses
Karsten Hopp 287fe4
   * rb_gc_writebarrier_unprotect_promoted if USE_RGENGC  */
Karsten Hopp 287fe4
! #  define rb_gc_writebarrier_unprotect_promoted rb_gc_writebarrier_unprotect_promoted_stub
Karsten Hopp 287fe4
! # endif
Karsten Hopp 287fe4
  
Karsten Hopp 287fe4
  #include <ruby.h>
Karsten Hopp 287fe4
  #ifdef RUBY19_OR_LATER
Karsten Hopp 287fe4
--- 96,106 ----
Karsten Hopp 287fe4
  # define rb_num2int rb_num2int_stub
Karsten Hopp 287fe4
  #endif
Karsten Hopp 287fe4
  
Karsten Hopp 287fe4
! #if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 21
Karsten Hopp 287fe4
  /* Ruby 2.1 adds new GC called RGenGC and RARRAY_PTR uses
Karsten Hopp 287fe4
   * rb_gc_writebarrier_unprotect_promoted if USE_RGENGC  */
Karsten Hopp 287fe4
! # define rb_gc_writebarrier_unprotect_promoted rb_gc_writebarrier_unprotect_promoted_stub
Karsten Hopp 287fe4
! #endif
Karsten Hopp 287fe4
  
Karsten Hopp 287fe4
  #include <ruby.h>
Karsten Hopp 287fe4
  #ifdef RUBY19_OR_LATER
Karsten Hopp 287fe4
***************
Karsten Hopp 287fe4
*** 422,428 ****
Karsten Hopp 287fe4
  # if defined(USE_RGENGC) && USE_RGENGC && !defined(PROTO)
Karsten Hopp 287fe4
  void rb_gc_writebarrier_unprotect_promoted_stub(VALUE obj)
Karsten Hopp 287fe4
  {
Karsten Hopp 287fe4
!     return dll_rb_gc_writebarrier_unprotect_promoted(obj);
Karsten Hopp 287fe4
  }
Karsten Hopp 287fe4
  # endif
Karsten Hopp 287fe4
  
Karsten Hopp 287fe4
--- 422,428 ----
Karsten Hopp 287fe4
  # if defined(USE_RGENGC) && USE_RGENGC && !defined(PROTO)
Karsten Hopp 287fe4
  void rb_gc_writebarrier_unprotect_promoted_stub(VALUE obj)
Karsten Hopp 287fe4
  {
Karsten Hopp 287fe4
!     dll_rb_gc_writebarrier_unprotect_promoted(obj);
Karsten Hopp 287fe4
  }
Karsten Hopp 287fe4
  # endif
Karsten Hopp 287fe4
  
Karsten Hopp 287fe4
***************
Karsten Hopp 287fe4
*** 763,769 ****
Karsten Hopp 287fe4
  	    /* suggested by Ariya Mizutani */
Karsten Hopp 287fe4
  	    int argc = 1;
Karsten Hopp 287fe4
  	    char *argv[] = {"gvim.exe"};
Karsten Hopp 287fe4
! 	    NtInitialize(&argc, &argv);
Karsten Hopp 287fe4
  #endif
Karsten Hopp 287fe4
  	    {
Karsten Hopp 287fe4
  #if defined(RUBY19_OR_LATER) || defined(RUBY_INIT_STACK)
Karsten Hopp 287fe4
--- 763,770 ----
Karsten Hopp 287fe4
  	    /* suggested by Ariya Mizutani */
Karsten Hopp 287fe4
  	    int argc = 1;
Karsten Hopp 287fe4
  	    char *argv[] = {"gvim.exe"};
Karsten Hopp 287fe4
! 	    char **argvp = argv;
Karsten Hopp 287fe4
! 	    NtInitialize(&argc, &argvp);
Karsten Hopp 287fe4
  #endif
Karsten Hopp 287fe4
  	    {
Karsten Hopp 287fe4
  #if defined(RUBY19_OR_LATER) || defined(RUBY_INIT_STACK)
Karsten Hopp 287fe4
*** ../vim-7.4.533/src/version.c	2014-11-27 17:37:53.524909964 +0100
Karsten Hopp 287fe4
--- src/version.c	2014-11-27 17:42:13.626049717 +0100
Karsten Hopp 287fe4
***************
Karsten Hopp 287fe4
*** 743,744 ****
Karsten Hopp 287fe4
--- 743,746 ----
Karsten Hopp 287fe4
  {   /* Add new patch number below this line */
Karsten Hopp 287fe4
+ /**/
Karsten Hopp 287fe4
+     534,
Karsten Hopp 287fe4
  /**/
Karsten Hopp 287fe4
Karsten Hopp 287fe4
-- 
Karsten Hopp 287fe4
This message contains 78% recycled characters.
Karsten Hopp 287fe4
Karsten Hopp 287fe4
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 287fe4
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 287fe4
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 287fe4
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///