ffi 1.13.0 → 1.13.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e96bb396dbe6fdc7c8a68b4328bb9142e50a9c934a94aa79837fb26bfb195a97
4
- data.tar.gz: efb9edb9a7e79911a1860d7ceb60b842840c2f469f248b7795c38cede57fddbe
3
+ metadata.gz: 7c1ae7c590f7dd4d8d821c6faf31c66499a90c421ff25fe14ce4465cc058b83f
4
+ data.tar.gz: e4c16035d46e13e752e215fdc87511c214db31cec9084cca3c2141a9d83469c7
5
5
  SHA512:
6
- metadata.gz: c1f23d12fdea63b629ca8a09fd39b6b60aae31a5b25b54e15c8519a9b1e71bf8ca93d01c34b4a424d68fae8d9a6b22e171c45eb2e357ccdd6df9eaf7e7dd60cd
7
- data.tar.gz: 0c47701aec04d869c1c62e71b88dbf5b33fbef3e1cf49819301e94e124817783db47e8e4427f3782b44f0516009e0e2def336423d594283f1d9b870bc4941765
6
+ metadata.gz: a4064371f99217b7b449c46915e4505b54a61785ec27a2b5cd51d798cc929ff58bef33ad9064ab93ca85ad2c5d5c07d515edb0ac5d673a468fb17abf18565627
7
+ data.tar.gz: a545c796f0b36fb7cac6ac06a73094274d077e0e0f54f55f67c129e6bff27b7679886a3adc87e9b3c173f975864dc78ac3d6277d8a8d1352f974b697ace0f8b4
@@ -1,3 +1,14 @@
1
+ 1.13.1 / 2020-06-09
2
+ -------------------
3
+
4
+ Changed:
5
+ * Revert use of `ucrtbase.dll` as default C library on Windows-MINGW.
6
+ `ucrtbase.dll` is still used on MSWIN target. #790
7
+ * Test for `ffi_prep_closure_loc()` to make sure we can use this function.
8
+ This fixes incorrect use of system libffi on MacOS Mojave (10.14). #787
9
+ * Update types.conf on x86_64-dragonflybsd
10
+
11
+
1
12
  1.13.0 / 2020-06-01
2
13
  -------------------
3
14
 
@@ -13,18 +13,17 @@ if RUBY_ENGINE == 'ruby' || RUBY_ENGINE == 'rbx'
13
13
  "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/ffi") ||
14
14
  (find_header("ffi.h", `xcrun --sdk macosx --show-sdk-path`.strip + "/usr/include/ffi") rescue false)
15
15
 
16
- # Ensure we can link to ffi_call
17
- libffi_ok &&= have_library("ffi", "ffi_call", [ "ffi.h" ]) ||
18
- have_library("libffi", "ffi_call", [ "ffi.h" ]) ||
19
- have_library("libffi-8", "ffi_call", [ "ffi.h" ])
16
+ # Ensure we can link to ffi_prep_closure_loc
17
+ libffi_ok &&= have_library("ffi", "ffi_prep_closure_loc", [ "ffi.h" ]) ||
18
+ have_library("libffi", "ffi_prep_closure_loc", [ "ffi.h" ]) ||
19
+ have_library("libffi-8", "ffi_prep_closure_loc", [ "ffi.h" ])
20
20
 
21
21
  if RbConfig::CONFIG['host_os'] =~ /mswin/
22
22
  have_library('libffi_convenience')
23
23
  have_library('shlwapi')
24
24
  end
25
25
 
26
- # And we need a libffi version recent enough to provide ffi_closure_alloc
27
- libffi_ok &&= have_func("ffi_closure_alloc")
26
+ libffi_ok
28
27
  end
29
28
 
30
29
  dir_config("ffi_c")
@@ -129,7 +129,11 @@ module FFI
129
129
  end
130
130
 
131
131
  LIBC = if IS_WINDOWS
132
- "ucrtbase.dll"
132
+ if RbConfig::CONFIG['host_os'] =~ /mingw/i
133
+ RbConfig::CONFIG['RUBY_SO_NAME'].split('-')[-2] + '.dll'
134
+ else
135
+ "ucrtbase.dll"
136
+ end
133
137
  elsif IS_GNU
134
138
  GNU_LIBC
135
139
  elsif OS == 'cygwin'
@@ -1,9 +1,7 @@
1
1
  rbx.platform.typedef.*) = pointer
2
- rbx.platform.typedef.__char16_t = ushort
3
- rbx.platform.typedef.__char32_t = uint
2
+ rbx.platform.typedef.___wchar_t = int
4
3
  rbx.platform.typedef.__clock_t = ulong
5
4
  rbx.platform.typedef.__clockid_t = ulong
6
- rbx.platform.typedef.__ct_rune_t = int
7
5
  rbx.platform.typedef.__fd_mask = ulong
8
6
  rbx.platform.typedef.__int16_t = short
9
7
  rbx.platform.typedef.__int32_t = int
@@ -17,16 +15,14 @@ rbx.platform.typedef.__int_least16_t = short
17
15
  rbx.platform.typedef.__int_least32_t = int
18
16
  rbx.platform.typedef.__int_least64_t = long
19
17
  rbx.platform.typedef.__int_least8_t = char
18
+ rbx.platform.typedef.__intlp_t = long
20
19
  rbx.platform.typedef.__intmax_t = long
21
20
  rbx.platform.typedef.__intptr_t = long
22
- rbx.platform.typedef.__nl_item = int
23
21
  rbx.platform.typedef.__off_t = long
24
22
  rbx.platform.typedef.__pid_t = int
25
23
  rbx.platform.typedef.__ptrdiff_t = long
26
24
  rbx.platform.typedef.__register_t = long
27
25
  rbx.platform.typedef.__rlim_t = long
28
- rbx.platform.typedef.__rune_t = int
29
- rbx.platform.typedef.__segsz_t = long
30
26
  rbx.platform.typedef.__sig_atomic_t = int
31
27
  rbx.platform.typedef.__size_t = ulong
32
28
  rbx.platform.typedef.__socklen_t = uint
@@ -34,7 +30,6 @@ rbx.platform.typedef.__ssize_t = long
34
30
  rbx.platform.typedef.__suseconds_t = long
35
31
  rbx.platform.typedef.__time_t = long
36
32
  rbx.platform.typedef.__timer_t = int
37
- rbx.platform.typedef.__u_register_t = ulong
38
33
  rbx.platform.typedef.__uint16_t = ushort
39
34
  rbx.platform.typedef.__uint32_t = uint
40
35
  rbx.platform.typedef.__uint64_t = ulong
@@ -47,9 +42,9 @@ rbx.platform.typedef.__uint_least16_t = ushort
47
42
  rbx.platform.typedef.__uint_least32_t = uint
48
43
  rbx.platform.typedef.__uint_least64_t = ulong
49
44
  rbx.platform.typedef.__uint_least8_t = uchar
45
+ rbx.platform.typedef.__uintlp_t = ulong
50
46
  rbx.platform.typedef.__uintmax_t = ulong
51
47
  rbx.platform.typedef.__uintptr_t = ulong
52
- rbx.platform.typedef.__wchar_t = int
53
48
  rbx.platform.typedef.__wint_t = int
54
49
  rbx.platform.typedef.blkcnt_t = long
55
50
  rbx.platform.typedef.blksize_t = long
@@ -57,7 +52,6 @@ rbx.platform.typedef.c_caddr_t = pointer
57
52
  rbx.platform.typedef.caddr_t = string
58
53
  rbx.platform.typedef.clock_t = ulong
59
54
  rbx.platform.typedef.clockid_t = ulong
60
- rbx.platform.typedef.cpulock_t = uint
61
55
  rbx.platform.typedef.daddr_t = int
62
56
  rbx.platform.typedef.dev_t = uint
63
57
  rbx.platform.typedef.fixpt_t = uint
@@ -85,14 +79,9 @@ rbx.platform.typedef.intptr_t = long
85
79
  rbx.platform.typedef.key_t = long
86
80
  rbx.platform.typedef.lwpid_t = int
87
81
  rbx.platform.typedef.mode_t = ushort
88
- rbx.platform.typedef.mqd_t = int
89
82
  rbx.platform.typedef.nlink_t = uint
90
83
  rbx.platform.typedef.off_t = long
91
- rbx.platform.typedef.pd_entry_t = ulong
92
- rbx.platform.typedef.pdp_entry_t = ulong
93
84
  rbx.platform.typedef.pid_t = int
94
- rbx.platform.typedef.pml4_entry_t = ulong
95
- rbx.platform.typedef.pt_entry_t = ulong
96
85
  rbx.platform.typedef.pthread_key_t = int
97
86
  rbx.platform.typedef.ptrdiff_t = long
98
87
  rbx.platform.typedef.qaddr_t = pointer
@@ -116,7 +105,6 @@ rbx.platform.typedef.u_int64_t = ulong
116
105
  rbx.platform.typedef.u_int8_t = uchar
117
106
  rbx.platform.typedef.u_long = ulong
118
107
  rbx.platform.typedef.u_quad_t = ulong
119
- rbx.platform.typedef.u_register_t = ulong
120
108
  rbx.platform.typedef.u_short = ushort
121
109
  rbx.platform.typedef.uid_t = uint
122
110
  rbx.platform.typedef.uint = uint
@@ -139,10 +127,4 @@ rbx.platform.typedef.unchar = uchar
139
127
  rbx.platform.typedef.useconds_t = uint
140
128
  rbx.platform.typedef.ushort = ushort
141
129
  rbx.platform.typedef.v_caddr_t = pointer
142
- rbx.platform.typedef.vm_offset_t = ulong
143
- rbx.platform.typedef.vm_ooffset_t = long
144
- rbx.platform.typedef.vm_paddr_t = ulong
145
- rbx.platform.typedef.vm_pindex_t = ulong
146
- rbx.platform.typedef.vm_poff_t = ulong
147
- rbx.platform.typedef.vm_size_t = ulong
148
- rbx.platform.typedef.vm_spindex_t = ulong
130
+ rbx.platform.typedef.wchar_t = int
@@ -1,3 +1,3 @@
1
1
  module FFI
2
- VERSION = '1.13.0'
2
+ VERSION = '1.13.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.13.0
4
+ version: 1.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wayne Meissner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-01 00:00:00.000000000 Z
11
+ date: 2020-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake