Blame SOURCES/7.4.534

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