|
|
3ef2ca |
To: vim_dev@googlegroups.com
|
|
|
3ef2ca |
Subject: Patch 7.4.168
|
|
|
3ef2ca |
Fcc: outbox
|
|
|
3ef2ca |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
|
3ef2ca |
Mime-Version: 1.0
|
|
|
3ef2ca |
Content-Type: text/plain; charset=UTF-8
|
|
|
3ef2ca |
Content-Transfer-Encoding: 8bit
|
|
|
3ef2ca |
------------
|
|
|
3ef2ca |
|
|
|
3ef2ca |
Patch 7.4.168
|
|
|
3ef2ca |
Problem: Can't compile with Ruby 2.1.0.
|
|
|
3ef2ca |
Solution: Add support for new GC. (Kohei Suzuki)
|
|
|
3ef2ca |
Files: src/if_ruby.c
|
|
|
3ef2ca |
|
|
|
3ef2ca |
|
|
|
3ef2ca |
*** ../vim-7.4.167/src/if_ruby.c 2013-05-20 12:47:48.000000000 +0200
|
|
|
3ef2ca |
--- src/if_ruby.c 2014-02-05 22:35:17.378577243 +0100
|
|
|
3ef2ca |
***************
|
|
|
3ef2ca |
*** 96,101 ****
|
|
|
3ef2ca |
--- 96,107 ----
|
|
|
3ef2ca |
# define rb_num2int rb_num2int_stub
|
|
|
3ef2ca |
#endif
|
|
|
3ef2ca |
|
|
|
3ef2ca |
+ # if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 21
|
|
|
3ef2ca |
+ /* Ruby 2.1 adds new GC called RGenGC and RARRAY_PTR uses
|
|
|
3ef2ca |
+ * rb_gc_writebarrier_unprotect_promoted if USE_RGENGC */
|
|
|
3ef2ca |
+ # define rb_gc_writebarrier_unprotect_promoted rb_gc_writebarrier_unprotect_promoted_stub
|
|
|
3ef2ca |
+ # endif
|
|
|
3ef2ca |
+
|
|
|
3ef2ca |
#include <ruby.h>
|
|
|
3ef2ca |
#ifdef RUBY19_OR_LATER
|
|
|
3ef2ca |
# include <ruby/encoding.h>
|
|
|
3ef2ca |
***************
|
|
|
3ef2ca |
*** 373,378 ****
|
|
|
3ef2ca |
--- 379,388 ----
|
|
|
3ef2ca |
static void* (*ruby_process_options)(int, char**);
|
|
|
3ef2ca |
# endif
|
|
|
3ef2ca |
|
|
|
3ef2ca |
+ # if defined(USE_RGENGC) && USE_RGENGC
|
|
|
3ef2ca |
+ static void (*dll_rb_gc_writebarrier_unprotect_promoted)(VALUE);
|
|
|
3ef2ca |
+ # endif
|
|
|
3ef2ca |
+
|
|
|
3ef2ca |
# if defined(RUBY19_OR_LATER) && !defined(PROTO)
|
|
|
3ef2ca |
SIGNED_VALUE rb_num2long_stub(VALUE x)
|
|
|
3ef2ca |
{
|
|
|
3ef2ca |
***************
|
|
|
3ef2ca |
*** 406,411 ****
|
|
|
3ef2ca |
--- 416,428 ----
|
|
|
3ef2ca |
# endif
|
|
|
3ef2ca |
# endif
|
|
|
3ef2ca |
|
|
|
3ef2ca |
+ # if defined(USE_RGENGC) && USE_RGENGC
|
|
|
3ef2ca |
+ void rb_gc_writebarrier_unprotect_promoted_stub(VALUE obj)
|
|
|
3ef2ca |
+ {
|
|
|
3ef2ca |
+ return dll_rb_gc_writebarrier_unprotect_promoted(obj);
|
|
|
3ef2ca |
+ }
|
|
|
3ef2ca |
+ # endif
|
|
|
3ef2ca |
+
|
|
|
3ef2ca |
static HINSTANCE hinstRuby = NULL; /* Instance of ruby.dll */
|
|
|
3ef2ca |
|
|
|
3ef2ca |
/*
|
|
|
3ef2ca |
***************
|
|
|
3ef2ca |
*** 521,526 ****
|
|
|
3ef2ca |
--- 538,546 ----
|
|
|
3ef2ca |
# endif
|
|
|
3ef2ca |
{"ruby_init_stack", (RUBY_PROC*)&dll_ruby_init_stack},
|
|
|
3ef2ca |
# endif
|
|
|
3ef2ca |
+ # if defined(USE_RGENGC) && USE_RGENGC
|
|
|
3ef2ca |
+ {"rb_gc_writebarrier_unprotect_promoted", (RUBY_PROC*)&dll_rb_gc_writebarrier_unprotect_promoted},
|
|
|
3ef2ca |
+ # endif
|
|
|
3ef2ca |
{"", NULL},
|
|
|
3ef2ca |
};
|
|
|
3ef2ca |
|
|
|
3ef2ca |
*** ../vim-7.4.167/src/version.c 2014-02-05 22:25:29.982568243 +0100
|
|
|
3ef2ca |
--- src/version.c 2014-02-05 22:36:14.010578111 +0100
|
|
|
3ef2ca |
***************
|
|
|
3ef2ca |
*** 740,741 ****
|
|
|
3ef2ca |
--- 740,743 ----
|
|
|
3ef2ca |
{ /* Add new patch number below this line */
|
|
|
3ef2ca |
+ /**/
|
|
|
3ef2ca |
+ 168,
|
|
|
3ef2ca |
/**/
|
|
|
3ef2ca |
|
|
|
3ef2ca |
--
|
|
|
3ef2ca |
hundred-and-one symptoms of being an internet addict:
|
|
|
3ef2ca |
10E. You start counting in hex.
|
|
|
3ef2ca |
|
|
|
3ef2ca |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
|
3ef2ca |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
|
3ef2ca |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
|
3ef2ca |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|