ffi 1.15.4.pre1-java → 1.16.0-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +79 -0
- data/Gemfile +1 -1
- data/README.md +3 -2
- data/Rakefile +28 -11
- data/ffi.gemspec +2 -3
- data/lib/ffi/autopointer.rb +7 -22
- data/lib/ffi/compat.rb +43 -0
- data/lib/ffi/data_converter.rb +2 -2
- data/lib/ffi/dynamic_library.rb +89 -0
- data/lib/ffi/enum.rb +18 -11
- data/lib/ffi/ffi.rb +3 -0
- data/lib/ffi/function.rb +71 -0
- data/lib/ffi/library.rb +56 -72
- data/lib/ffi/library_path.rb +109 -0
- data/lib/ffi/managedstruct.rb +1 -1
- data/lib/ffi/platform/aarch64-windows/types.conf +52 -0
- data/lib/ffi/platform/hppa1.1-linux/types.conf +178 -0
- data/lib/ffi/platform/hppa2.0-linux/types.conf +178 -0
- data/lib/ffi/platform/loongarch64-linux/types.conf +141 -0
- data/lib/ffi/platform/sw_64-linux/types.conf +141 -0
- data/lib/ffi/platform.rb +15 -13
- data/lib/ffi/struct.rb +2 -1
- data/lib/ffi/struct_layout.rb +1 -1
- data/lib/ffi/struct_layout_builder.rb +1 -1
- data/lib/ffi/tools/const_generator.rb +5 -4
- data/lib/ffi/types.rb +30 -5
- data/lib/ffi/variadic.rb +19 -8
- data/lib/ffi/version.rb +1 -1
- data/rakelib/ffi_gem_helper.rb +1 -1
- data.tar.gz.sig +2 -2
- metadata +43 -42
- metadata.gz.sig +0 -0
- /data/lib/ffi/platform/{sparc64-linux → sparcv9-linux}/types.conf +0 -0
data/lib/ffi/variadic.rb
CHANGED
@@ -54,16 +54,27 @@ module FFI
|
|
54
54
|
invoker = self
|
55
55
|
params = "*args"
|
56
56
|
call = "call"
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
57
|
+
mname = mname.to_sym
|
58
|
+
mod.module_eval <<-code, __FILE__, __LINE__
|
59
|
+
@ffi_functions = {} unless defined?(@ffi_functions)
|
60
|
+
@ffi_functions[#{mname.inspect}] = invoker
|
61
|
+
|
62
|
+
def self.#{mname}(#{params})
|
63
|
+
@ffi_functions[#{mname.inspect}].#{call}(#{params})
|
64
|
+
end
|
65
|
+
|
66
|
+
define_method(#{mname.inspect}, &method(#{mname.inspect}))
|
65
67
|
code
|
66
68
|
invoker
|
67
69
|
end
|
70
|
+
|
71
|
+
# Retrieve Array of parameter types
|
72
|
+
#
|
73
|
+
# This method returns an Array of FFI types accepted as function parameters.
|
74
|
+
#
|
75
|
+
# @return [Array<FFI::Type>]
|
76
|
+
def param_types
|
77
|
+
[*@fixed, Type::Builtin::VARARGS]
|
78
|
+
end
|
68
79
|
end
|
69
80
|
end
|
data/lib/ffi/version.rb
CHANGED
data/rakelib/ffi_gem_helper.rb
CHANGED
data.tar.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
�
|
2
|
-
|
1
|
+
�bɺ���Dq��E'fלϛJ{���:8�m��ye������e������0GtIE��?��|}���%$8E.�@�Dc�7}�r�9�iW��k1�3�Z7��cp�ĆIK�dB��_����!?��-c�R�H�N��E�V��Wi�r������:T
|
2
|
+
'�}h�|�Ǥ�0|�+�L�5�1�U��%[^F���c��cJb���C��#���:����ҏHiH��T��K_
|
metadata
CHANGED
@@ -1,33 +1,39 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ffi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.16.0
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Wayne Meissner
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|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
7EfMFzANBgkqhkiG9w0BAQsFAAOCAYEAQAcuTARfiiVUVx5KURICfdTM2Kd7LhOn
|
27
|
+
qt3Vs4ANGvT226LEp3RnQ+kWGQYMRb3cw3LY2TNQRPlnZxE994mgjBscN4fbjXqO
|
28
|
+
T0JbVpeszRZa5k1goggbnWT7CO7yU7WcHh13DaSubY7HUpAJn2xz9w2stxQfN/EE
|
29
|
+
VMlnDJ1P7mUHAvpK8X9j9h7Xlc1niViT18MYwux8mboVTryrLr+clATUkkM3yBF0
|
30
|
+
RV+c34ReW5eXO9Tr6aKTxh/pFC9ggDT6jOxuJgSvG8HWJzVf4NDvMavIas4KYjiI
|
31
|
+
BU6CpWaG5NxicqL3BERi52U43HV08br+LNVpb7Rekgve/PJuSFnAR015bhSRXe5U
|
32
|
+
vBioD1qW2ZW9tXg8Ww2IfDaO5a1So5Xby51rhNlyo6ATj2NkuLWZUKPKHhAz0TKm
|
33
|
+
Dzx/gFSOrRoCt2mXNgrmcAfr386AfaMvCh7cXqdxZwmVo7ILZCYXck0pajvubsDd
|
34
|
+
NUIIFkVXvd1odFyK9LF1RFAtxn/iAmpx
|
29
35
|
-----END CERTIFICATE-----
|
30
|
-
date:
|
36
|
+
date: 2023-09-23 00:00:00.000000000 Z
|
31
37
|
dependencies:
|
32
38
|
- !ruby/object:Gem::Dependency
|
33
39
|
name: rake
|
@@ -49,14 +55,14 @@ dependencies:
|
|
49
55
|
requirements:
|
50
56
|
- - "~>"
|
51
57
|
- !ruby/object:Gem::Version
|
52
|
-
version: '1.
|
58
|
+
version: '1.1'
|
53
59
|
type: :development
|
54
60
|
prerelease: false
|
55
61
|
version_requirements: !ruby/object:Gem::Requirement
|
56
62
|
requirements:
|
57
63
|
- - "~>"
|
58
64
|
- !ruby/object:Gem::Version
|
59
|
-
version: '1.
|
65
|
+
version: '1.1'
|
60
66
|
- !ruby/object:Gem::Dependency
|
61
67
|
name: rake-compiler-dock
|
62
68
|
requirement: !ruby/object:Gem::Requirement
|
@@ -85,20 +91,6 @@ dependencies:
|
|
85
91
|
- - "~>"
|
86
92
|
- !ruby/object:Gem::Version
|
87
93
|
version: 2.14.1
|
88
|
-
- !ruby/object:Gem::Dependency
|
89
|
-
name: rubygems-tasks
|
90
|
-
requirement: !ruby/object:Gem::Requirement
|
91
|
-
requirements:
|
92
|
-
- - "~>"
|
93
|
-
- !ruby/object:Gem::Version
|
94
|
-
version: 0.2.4
|
95
|
-
type: :development
|
96
|
-
prerelease: false
|
97
|
-
version_requirements: !ruby/object:Gem::Requirement
|
98
|
-
requirements:
|
99
|
-
- - "~>"
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
version: 0.2.4
|
102
94
|
description: Ruby FFI library
|
103
95
|
email: wmeissner@gmail.com
|
104
96
|
executables: []
|
@@ -118,12 +110,16 @@ files:
|
|
118
110
|
- lib/ffi/autopointer.rb
|
119
111
|
- lib/ffi/buffer.rb
|
120
112
|
- lib/ffi/callback.rb
|
113
|
+
- lib/ffi/compat.rb
|
121
114
|
- lib/ffi/data_converter.rb
|
115
|
+
- lib/ffi/dynamic_library.rb
|
122
116
|
- lib/ffi/enum.rb
|
123
117
|
- lib/ffi/errno.rb
|
124
118
|
- lib/ffi/ffi.rb
|
119
|
+
- lib/ffi/function.rb
|
125
120
|
- lib/ffi/io.rb
|
126
121
|
- lib/ffi/library.rb
|
122
|
+
- lib/ffi/library_path.rb
|
127
123
|
- lib/ffi/managedstruct.rb
|
128
124
|
- lib/ffi/memorypointer.rb
|
129
125
|
- lib/ffi/platform.rb
|
@@ -132,9 +128,12 @@ files:
|
|
132
128
|
- lib/ffi/platform/aarch64-freebsd12/types.conf
|
133
129
|
- lib/ffi/platform/aarch64-linux/types.conf
|
134
130
|
- lib/ffi/platform/aarch64-openbsd/types.conf
|
131
|
+
- lib/ffi/platform/aarch64-windows/types.conf
|
135
132
|
- lib/ffi/platform/arm-freebsd/types.conf
|
136
133
|
- lib/ffi/platform/arm-freebsd12/types.conf
|
137
134
|
- lib/ffi/platform/arm-linux/types.conf
|
135
|
+
- lib/ffi/platform/hppa1.1-linux/types.conf
|
136
|
+
- lib/ffi/platform/hppa2.0-linux/types.conf
|
138
137
|
- lib/ffi/platform/i386-cygwin/types.conf
|
139
138
|
- lib/ffi/platform/i386-darwin/types.conf
|
140
139
|
- lib/ffi/platform/i386-freebsd/types.conf
|
@@ -146,6 +145,7 @@ files:
|
|
146
145
|
- lib/ffi/platform/i386-solaris/types.conf
|
147
146
|
- lib/ffi/platform/i386-windows/types.conf
|
148
147
|
- lib/ffi/platform/ia64-linux/types.conf
|
148
|
+
- lib/ffi/platform/loongarch64-linux/types.conf
|
149
149
|
- lib/ffi/platform/mips-linux/types.conf
|
150
150
|
- lib/ffi/platform/mips64-linux/types.conf
|
151
151
|
- lib/ffi/platform/mips64el-linux/types.conf
|
@@ -165,9 +165,10 @@ files:
|
|
165
165
|
- lib/ffi/platform/s390x-linux/types.conf
|
166
166
|
- lib/ffi/platform/sparc-linux/types.conf
|
167
167
|
- lib/ffi/platform/sparc-solaris/types.conf
|
168
|
-
- lib/ffi/platform/
|
168
|
+
- lib/ffi/platform/sparcv9-linux/types.conf
|
169
169
|
- lib/ffi/platform/sparcv9-openbsd/types.conf
|
170
170
|
- lib/ffi/platform/sparcv9-solaris/types.conf
|
171
|
+
- lib/ffi/platform/sw_64-linux/types.conf
|
171
172
|
- lib/ffi/platform/x86_64-cygwin/types.conf
|
172
173
|
- lib/ffi/platform/x86_64-darwin/types.conf
|
173
174
|
- lib/ffi/platform/x86_64-dragonflybsd/types.conf
|
@@ -212,7 +213,7 @@ metadata:
|
|
212
213
|
wiki_uri: https://github.com/ffi/ffi/wiki
|
213
214
|
source_code_uri: https://github.com/ffi/ffi/
|
214
215
|
mailing_list_uri: http://groups.google.com/group/ruby-ffi
|
215
|
-
post_install_message:
|
216
|
+
post_install_message:
|
216
217
|
rdoc_options:
|
217
218
|
- "--exclude=ext/ffi_c/.*\\.o$"
|
218
219
|
- "--exclude=ffi_c\\.(bundle|so)$"
|
@@ -222,15 +223,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
222
223
|
requirements:
|
223
224
|
- - ">="
|
224
225
|
- !ruby/object:Gem::Version
|
225
|
-
version: '2.
|
226
|
+
version: '2.5'
|
226
227
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
227
228
|
requirements:
|
228
|
-
- - "
|
229
|
+
- - ">="
|
229
230
|
- !ruby/object:Gem::Version
|
230
|
-
version:
|
231
|
+
version: '0'
|
231
232
|
requirements: []
|
232
|
-
rubygems_version: 3.
|
233
|
-
signing_key:
|
233
|
+
rubygems_version: 3.4.6
|
234
|
+
signing_key:
|
234
235
|
specification_version: 4
|
235
236
|
summary: Ruby FFI
|
236
237
|
test_files: []
|
metadata.gz.sig
CHANGED
Binary file
|
File without changes
|