summaryrefslogtreecommitdiff
path: root/data/vim/patches/8.1.0704
blob: 46eaad29b9b380396a3a8282536928c7a52237eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
To: vim_dev@googlegroups.com
Subject: Patch 8.1.0704
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 8.1.0704
Problem:    Building with Ruby 2.6 gives compiler warnings.
Solution:   Define a stub for rb_ary_detransient. (Ozaki Kiichi, closes #3779)
Files:	    src/if_ruby.c


*** ../vim-8.1.0703/src/if_ruby.c	2018-12-27 22:10:57.797337989 +0100
--- src/if_ruby.c	2019-01-08 20:24:05.178582966 +0100
***************
*** 124,130 ****
  #endif
  
  #if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 26
! # define rb_ary_detransient (*dll_rb_ary_detransient)
  #endif
  
  #include <ruby.h>
--- 124,130 ----
  #endif
  
  #if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 26
! # define rb_ary_detransient rb_ary_detransient_stub
  #endif
  
  #include <ruby.h>
***************
*** 549,554 ****
--- 549,561 ----
  #  endif
  # endif
  
+ # if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 26
+ void rb_ary_detransient_stub(VALUE x)
+ {
+     dll_rb_ary_detransient(x);
+ }
+ # endif
+ 
  static HINSTANCE hinstRuby = NULL; /* Instance of ruby.dll */
  
  /*
*** ../vim-8.1.0703/src/version.c	2019-01-08 20:14:31.614957028 +0100
--- src/version.c	2019-01-08 20:27:03.553087076 +0100
***************
*** 801,802 ****
--- 801,804 ----
  {   /* Add new patch number below this line */
+ /**/
+     704,
  /**/

-- 
Why is it called "Windows"?  "Gates" would be more appropriate...

 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///