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