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