comparison src/if_ruby.c @ 15392:0807e2dbbab6 v8.1.0704

patch 8.1.0704: building with Ruby 2.6 gives compiler warnings commit https://github.com/vim/vim/commit/f62fc316a212160d1c58be88f30efd11eb595493 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 8 20:29:32 2019 +0100 patch 8.1.0704: building with Ruby 2.6 gives compiler warnings Problem: Building with Ruby 2.6 gives compiler warnings. Solution: Define a stub for rb_ary_detransient. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/3779)
author Bram Moolenaar <Bram@vim.org>
date Tue, 08 Jan 2019 20:30:06 +0100
parents b408509d8292
children 1d2b5c016f17
comparison
equal deleted inserted replaced
15391:ba6f0883380b 15392:0807e2dbbab6
122 #if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 22 122 #if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 22
123 # define rb_gc_writebarrier_unprotect rb_gc_writebarrier_unprotect_stub 123 # define rb_gc_writebarrier_unprotect rb_gc_writebarrier_unprotect_stub
124 #endif 124 #endif
125 125
126 #if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 26 126 #if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 26
127 # define rb_ary_detransient (*dll_rb_ary_detransient) 127 # define rb_ary_detransient rb_ary_detransient_stub
128 #endif 128 #endif
129 129
130 #include <ruby.h> 130 #include <ruby.h>
131 #ifdef RUBY19_OR_LATER 131 #ifdef RUBY19_OR_LATER
132 # include <ruby/encoding.h> 132 # include <ruby/encoding.h>
545 void rb_gc_writebarrier_unprotect_stub(VALUE obj) 545 void rb_gc_writebarrier_unprotect_stub(VALUE obj)
546 { 546 {
547 dll_rb_gc_writebarrier_unprotect(obj); 547 dll_rb_gc_writebarrier_unprotect(obj);
548 } 548 }
549 # endif 549 # endif
550 # endif
551
552 # if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 26
553 void rb_ary_detransient_stub(VALUE x)
554 {
555 dll_rb_ary_detransient(x);
556 }
550 # endif 557 # endif
551 558
552 static HINSTANCE hinstRuby = NULL; /* Instance of ruby.dll */ 559 static HINSTANCE hinstRuby = NULL; /* Instance of ruby.dll */
553 560
554 /* 561 /*