ffi 1.9.5-x86-mingw32 → 1.9.6-x86-mingw32
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.
Potentially problematic release.
This version of ffi might be problematic. Click here for more details.
- checksums.yaml +15 -7
- data/Rakefile +13 -6
- data/ext/ffi_c/extconf.rb +2 -2
- data/lib/1.8/ffi_c.so +0 -0
- data/lib/1.9/ffi_c.so +0 -0
- data/lib/2.0/ffi_c.so +0 -0
- data/lib/2.1/ffi_c.so +0 -0
- data/lib/ffi.rb +2 -0
- data/lib/ffi/version.rb +1 -1
- data/spec/ffi/async_callback_spec.rb +4 -5
- data/spec/ffi/bool_spec.rb +9 -8
- data/spec/ffi/buffer_spec.rb +64 -37
- data/spec/ffi/callback_spec.rb +195 -116
- data/spec/ffi/custom_param_type.rb +1 -1
- data/spec/ffi/custom_type_spec.rb +5 -6
- data/spec/ffi/dup_spec.rb +6 -8
- data/spec/ffi/enum_spec.rb +135 -129
- data/spec/ffi/errno_spec.rb +2 -2
- data/spec/ffi/ffi.log +5833 -0
- data/spec/ffi/ffi_spec.rb +4 -6
- data/spec/ffi/function_spec.rb +22 -11
- data/spec/ffi/io_spec.rb +0 -1
- data/spec/ffi/library_spec.rb +71 -36
- data/spec/ffi/long_double.rb +3 -4
- data/spec/ffi/managed_struct_spec.rb +14 -4
- data/spec/ffi/memorypointer_spec.rb +7 -1
- data/spec/ffi/number_spec.rb +43 -34
- data/spec/ffi/platform_spec.rb +76 -59
- data/spec/ffi/pointer_spec.rb +35 -31
- data/spec/ffi/rbx/attach_function_spec.rb +3 -4
- data/spec/ffi/rbx/memory_pointer_spec.rb +24 -22
- data/spec/ffi/rbx/spec_helper.rb +0 -1
- data/spec/ffi/rbx/struct_spec.rb +1 -2
- data/spec/ffi/spec_helper.rb +5 -2
- data/spec/ffi/string_spec.rb +22 -14
- data/spec/ffi/strptr_spec.rb +6 -7
- data/spec/ffi/struct_by_ref_spec.rb +4 -5
- data/spec/ffi/struct_by_ref_spec.rb.orig +43 -0
- data/spec/ffi/struct_callback_spec.rb +6 -7
- data/spec/ffi/struct_initialize_spec.rb +2 -3
- data/spec/ffi/struct_packed_spec.rb +12 -14
- data/spec/ffi/struct_spec.rb +203 -129
- data/spec/ffi/typedef_spec.rb +11 -10
- data/spec/ffi/union_spec.rb +8 -7
- data/spec/ffi/variadic_spec.rb +13 -10
- metadata +150 -139
data/spec/ffi/typedef_spec.rb
CHANGED
@@ -4,8 +4,6 @@
|
|
4
4
|
#
|
5
5
|
|
6
6
|
require File.expand_path(File.join(File.dirname(__FILE__), "spec_helper"))
|
7
|
-
require 'ffi'
|
8
|
-
|
9
7
|
describe "Custom type definitions" do
|
10
8
|
it "attach_function with custom typedef" do
|
11
9
|
module CustomTypedef
|
@@ -14,8 +12,9 @@ describe "Custom type definitions" do
|
|
14
12
|
typedef :uint, :fubar_t
|
15
13
|
attach_function :ret_u32, [ :fubar_t ], :fubar_t
|
16
14
|
end
|
17
|
-
CustomTypedef.ret_u32(0x12345678).
|
15
|
+
expect(CustomTypedef.ret_u32(0x12345678)).to eq(0x12345678)
|
18
16
|
end
|
17
|
+
|
19
18
|
it "variadic invoker with custom typedef" do
|
20
19
|
module VariadicCustomTypedef
|
21
20
|
extend FFI::Library
|
@@ -25,8 +24,9 @@ describe "Custom type definitions" do
|
|
25
24
|
end
|
26
25
|
buf = FFI::Buffer.new :uint, 10
|
27
26
|
VariadicCustomTypedef.pack_varargs(buf, "i", :fubar_t, 0x12345678)
|
28
|
-
buf.get_int64(0).
|
27
|
+
expect(buf.get_int64(0)).to eq(0x12345678)
|
29
28
|
end
|
29
|
+
|
30
30
|
it "Callback with custom typedef parameter" do
|
31
31
|
module CallbackCustomTypedef
|
32
32
|
extend FFI::Library
|
@@ -37,7 +37,7 @@ describe "Custom type definitions" do
|
|
37
37
|
end
|
38
38
|
i = 0
|
39
39
|
CallbackCustomTypedef.testCallbackU32rV(0xdeadbeef) { |v| i = v }
|
40
|
-
i.
|
40
|
+
expect(i).to eq(0xdeadbeef)
|
41
41
|
end
|
42
42
|
module StructCustomTypedef
|
43
43
|
extend FFI::Library
|
@@ -47,14 +47,15 @@ describe "Custom type definitions" do
|
|
47
47
|
layout :a, :fubar3_t
|
48
48
|
end
|
49
49
|
end
|
50
|
+
|
50
51
|
it "Struct with custom typedef field" do
|
51
52
|
s = StructCustomTypedef::S.new
|
52
53
|
s[:a] = 0x12345678
|
53
|
-
s.pointer.get_uint(0).
|
54
|
+
expect(s.pointer.get_uint(0)).to eq(0x12345678)
|
54
55
|
end
|
55
56
|
|
56
57
|
it "attach_function after a typedef should not reject normal types" do
|
57
|
-
|
58
|
+
expect do
|
58
59
|
Module.new do
|
59
60
|
extend FFI::Library
|
60
61
|
# enum() will insert a custom typedef called :foo for the enum
|
@@ -69,11 +70,11 @@ describe "Custom type definitions" do
|
|
69
70
|
attach_function :ptr_ret_int32_t, :ptr_ret___int32_t, [ :string, :foo ], :bar
|
70
71
|
end
|
71
72
|
end
|
72
|
-
end.
|
73
|
+
end.not_to raise_error
|
73
74
|
end
|
74
75
|
|
75
76
|
it "detects the correct type for size_t" do
|
76
|
-
|
77
|
+
expect do
|
77
78
|
Module.new do
|
78
79
|
extend FFI::Library
|
79
80
|
ffi_lib "c"
|
@@ -85,6 +86,6 @@ describe "Custom type definitions" do
|
|
85
86
|
attach_function :read, [:int, :pointer, :size_t], :ssize_t
|
86
87
|
end
|
87
88
|
end
|
88
|
-
end.
|
89
|
+
end.not_to raise_error
|
89
90
|
end
|
90
91
|
end
|
data/spec/ffi/union_spec.rb
CHANGED
@@ -4,7 +4,6 @@
|
|
4
4
|
#
|
5
5
|
|
6
6
|
require File.expand_path(File.join(File.dirname(__FILE__), "spec_helper"))
|
7
|
-
require 'ffi'
|
8
7
|
|
9
8
|
module LibTest
|
10
9
|
Types = {
|
@@ -37,16 +36,17 @@ describe 'Union' do
|
|
37
36
|
before do
|
38
37
|
@u = LibTest::TestUnion.new
|
39
38
|
end
|
39
|
+
|
40
40
|
it 'should place all the fields at offset 0' do
|
41
|
-
LibTest::TestUnion.members.all? { |m| LibTest::TestUnion.offset_of(m) == 0 }.
|
41
|
+
expect(LibTest::TestUnion.members.all? { |m| LibTest::TestUnion.offset_of(m) == 0 }).to be true
|
42
42
|
end
|
43
43
|
LibTest::Types.each do |k, type|
|
44
44
|
it "should correctly align/write a #{type[0]} value" do
|
45
45
|
@u[type[1]] = type[2]
|
46
46
|
if k == 'f32' or k == 'f64'
|
47
|
-
(@u[type[1]] - LibTest.send("union_align_#{k}", @u.to_ptr)).abs.
|
47
|
+
expect((@u[type[1]] - LibTest.send("union_align_#{k}", @u.to_ptr)).abs).to be < 0.00001
|
48
48
|
else
|
49
|
-
@u[type[1]].
|
49
|
+
expect(@u[type[1]]).to eq(LibTest.send("union_align_#{k}", @u.to_ptr))
|
50
50
|
end
|
51
51
|
end
|
52
52
|
end
|
@@ -54,13 +54,14 @@ describe 'Union' do
|
|
54
54
|
it "should read a #{type[0]} value from memory" do
|
55
55
|
@u = LibTest::TestUnion.new(LibTest.send("union_make_union_with_#{k}", type[2]))
|
56
56
|
if k == 'f32' or k == 'f64'
|
57
|
-
(@u[type[1]] - type[2]).abs.
|
57
|
+
expect((@u[type[1]] - type[2]).abs).to be < 0.00001
|
58
58
|
else
|
59
|
-
@u[type[1]].
|
59
|
+
expect(@u[type[1]]).to eq(type[2])
|
60
60
|
end
|
61
61
|
end
|
62
62
|
end
|
63
|
+
|
63
64
|
it 'should return a size equals to the size of the biggest field' do
|
64
|
-
LibTest::TestUnion.size.
|
65
|
+
expect(LibTest::TestUnion.size).to eq(LibTest.union_size)
|
65
66
|
end
|
66
67
|
end
|
data/spec/ffi/variadic_spec.rb
CHANGED
@@ -4,7 +4,6 @@
|
|
4
4
|
#
|
5
5
|
|
6
6
|
require File.expand_path(File.join(File.dirname(__FILE__), "spec_helper"))
|
7
|
-
require 'ffi'
|
8
7
|
|
9
8
|
describe "Function with variadic arguments" do
|
10
9
|
module LibTest
|
@@ -19,41 +18,44 @@ describe "Function with variadic arguments" do
|
|
19
18
|
it "takes enum arguments" do
|
20
19
|
buf = FFI::Buffer.new :long_long, 2
|
21
20
|
LibTest.pack_varargs(buf, "ii", :int, :c3, :int, :c4)
|
22
|
-
buf.get_int64(0).
|
23
|
-
buf.get_int64(8).
|
21
|
+
expect(buf.get_int64(0)).to eq(42)
|
22
|
+
expect(buf.get_int64(8)).to eq(43)
|
24
23
|
end
|
25
24
|
|
26
25
|
it "returns symbols for enums" do
|
27
26
|
buf = FFI::Buffer.new :long_long, 2
|
28
|
-
LibTest.pack_varargs2(buf, :c1, "ii", :int, :c3, :int, :c4).
|
27
|
+
expect(LibTest.pack_varargs2(buf, :c1, "ii", :int, :c3, :int, :c4)).to eq(:c2)
|
29
28
|
end
|
30
29
|
|
31
30
|
[ 0, 127, -128, -1 ].each do |i|
|
32
31
|
it "call variadic with (:char (#{i})) argument" do
|
33
32
|
buf = FFI::Buffer.new :long_long
|
34
33
|
LibTest.pack_varargs(buf, "c", :char, i)
|
35
|
-
buf.get_int64(0).
|
34
|
+
expect(buf.get_int64(0)).to eq(i)
|
36
35
|
end
|
37
36
|
end
|
37
|
+
|
38
38
|
[ 0, 0x7f, 0x80, 0xff ].each do |i|
|
39
39
|
it "call variadic with (:uchar (#{i})) argument" do
|
40
40
|
buf = FFI::Buffer.new :long_long
|
41
41
|
LibTest.pack_varargs(buf, "C", :uchar, i)
|
42
|
-
buf.get_int64(0).
|
42
|
+
expect(buf.get_int64(0)).to eq(i)
|
43
43
|
end
|
44
44
|
end
|
45
|
+
|
45
46
|
[ 0, 1.234567, 9.87654321 ].each do |v|
|
46
47
|
it "call variadic with (:float (#{v})) argument" do
|
47
48
|
buf = FFI::Buffer.new :long_long
|
48
49
|
LibTest.pack_varargs(buf, "f", :float, v.to_f)
|
49
|
-
buf.get_float64(0).
|
50
|
+
expect(buf.get_float64(0)).to eq(v)
|
50
51
|
end
|
51
52
|
end
|
53
|
+
|
52
54
|
[ 0, 1.234567, 9.87654321 ].each do |v|
|
53
55
|
it "call variadic with (:double (#{v})) argument" do
|
54
56
|
buf = FFI::Buffer.new :long_long
|
55
57
|
LibTest.pack_varargs(buf, "f", :double, v.to_f)
|
56
|
-
buf.get_float64(0).
|
58
|
+
expect(buf.get_float64(0)).to eq(v)
|
57
59
|
end
|
58
60
|
end
|
59
61
|
|
@@ -71,6 +73,7 @@ describe "Function with variadic arguments" do
|
|
71
73
|
'f' => [ 1.23456789 ],
|
72
74
|
'd' => [ 9.87654321 ]
|
73
75
|
}
|
76
|
+
|
74
77
|
TYPE_MAP = {
|
75
78
|
'c' => :char, 'C' => :uchar, 's' => :short, 'S' => :ushort,
|
76
79
|
'i' => :int, 'I' => :uint, 'j' => :long_long, 'J' => :ulong_long,
|
@@ -80,9 +83,9 @@ describe "Function with variadic arguments" do
|
|
80
83
|
|
81
84
|
def verify(p, off, v)
|
82
85
|
if v.kind_of?(Float)
|
83
|
-
p.get_float64(off).
|
86
|
+
expect(p.get_float64(off)).to eq(v)
|
84
87
|
else
|
85
|
-
p.get_int64(off).
|
88
|
+
expect(p.get_int64(off)).to eq(v)
|
86
89
|
end
|
87
90
|
end
|
88
91
|
|
metadata
CHANGED
@@ -1,68 +1,79 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: ffi
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.9.6
|
5
5
|
platform: x86-mingw32
|
6
|
-
authors:
|
6
|
+
authors:
|
7
7
|
- Wayne Meissner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2014-10-11 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
15
14
|
name: rake
|
16
|
-
|
17
|
-
requirements:
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
18
17
|
- - ~>
|
19
|
-
- !ruby/object:Gem::Version
|
20
|
-
version:
|
21
|
-
prerelease: false
|
22
|
-
requirement: *id001
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '10.1'
|
23
20
|
type: :development
|
24
|
-
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '10.1'
|
27
|
+
- !ruby/object:Gem::Dependency
|
25
28
|
name: rake-compiler
|
26
|
-
|
27
|
-
requirements:
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
28
31
|
- - ~>
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
version:
|
31
|
-
prerelease: false
|
32
|
-
requirement: *id002
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.9'
|
33
34
|
type: :development
|
34
|
-
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.9'
|
41
|
+
- !ruby/object:Gem::Dependency
|
35
42
|
name: rspec
|
36
|
-
|
37
|
-
requirements:
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
38
45
|
- - ~>
|
39
|
-
- !ruby/object:Gem::Version
|
46
|
+
- !ruby/object:Gem::Version
|
40
47
|
version: 2.14.1
|
41
|
-
prerelease: false
|
42
|
-
requirement: *id003
|
43
48
|
type: :development
|
44
|
-
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 2.14.1
|
55
|
+
- !ruby/object:Gem::Dependency
|
45
56
|
name: rubygems-tasks
|
46
|
-
|
47
|
-
requirements:
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
48
59
|
- - ~>
|
49
|
-
- !ruby/object:Gem::Version
|
60
|
+
- !ruby/object:Gem::Version
|
50
61
|
version: 0.2.4
|
51
|
-
prerelease: false
|
52
|
-
requirement: *id004
|
53
62
|
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.2.4
|
54
69
|
description: Ruby FFI library
|
55
70
|
email: wmeissner@gmail.com
|
56
71
|
executables: []
|
57
|
-
|
58
72
|
extensions: []
|
59
|
-
|
60
73
|
extra_rdoc_files: []
|
61
|
-
|
62
|
-
files:
|
63
|
-
- ffi.gemspec
|
64
|
-
- LICENSE
|
74
|
+
files:
|
65
75
|
- COPYING
|
76
|
+
- LICENSE
|
66
77
|
- README.md
|
67
78
|
- Rakefile
|
68
79
|
- ext/ffi_c/AbstractMemory.c
|
@@ -74,24 +85,62 @@ files:
|
|
74
85
|
- ext/ffi_c/Call.h
|
75
86
|
- ext/ffi_c/ClosurePool.c
|
76
87
|
- ext/ffi_c/ClosurePool.h
|
77
|
-
- ext/ffi_c/compat.h
|
78
88
|
- ext/ffi_c/DataConverter.c
|
79
89
|
- ext/ffi_c/DynamicLibrary.c
|
80
90
|
- ext/ffi_c/DynamicLibrary.h
|
81
|
-
- ext/ffi_c/extconf.rb
|
82
|
-
- ext/ffi_c/ffi.c
|
83
91
|
- ext/ffi_c/Function.c
|
84
92
|
- ext/ffi_c/Function.h
|
85
93
|
- ext/ffi_c/FunctionInfo.c
|
86
94
|
- ext/ffi_c/LastError.c
|
87
95
|
- ext/ffi_c/LastError.h
|
88
|
-
- ext/ffi_c/
|
89
|
-
- ext/ffi_c/
|
90
|
-
- ext/ffi_c/
|
96
|
+
- ext/ffi_c/LongDouble.c
|
97
|
+
- ext/ffi_c/LongDouble.h
|
98
|
+
- ext/ffi_c/MappedType.c
|
99
|
+
- ext/ffi_c/MappedType.h
|
100
|
+
- ext/ffi_c/MemoryPointer.c
|
101
|
+
- ext/ffi_c/MemoryPointer.h
|
102
|
+
- ext/ffi_c/MethodHandle.c
|
103
|
+
- ext/ffi_c/MethodHandle.h
|
104
|
+
- ext/ffi_c/Platform.c
|
105
|
+
- ext/ffi_c/Platform.h
|
106
|
+
- ext/ffi_c/Pointer.c
|
107
|
+
- ext/ffi_c/Pointer.h
|
108
|
+
- ext/ffi_c/Struct.c
|
109
|
+
- ext/ffi_c/Struct.h
|
110
|
+
- ext/ffi_c/StructByReference.c
|
111
|
+
- ext/ffi_c/StructByReference.h
|
112
|
+
- ext/ffi_c/StructByValue.c
|
113
|
+
- ext/ffi_c/StructByValue.h
|
114
|
+
- ext/ffi_c/StructLayout.c
|
115
|
+
- ext/ffi_c/Thread.c
|
116
|
+
- ext/ffi_c/Thread.h
|
117
|
+
- ext/ffi_c/Type.c
|
118
|
+
- ext/ffi_c/Type.h
|
119
|
+
- ext/ffi_c/Types.c
|
120
|
+
- ext/ffi_c/Types.h
|
121
|
+
- ext/ffi_c/Variadic.c
|
122
|
+
- ext/ffi_c/compat.h
|
123
|
+
- ext/ffi_c/extconf.rb
|
124
|
+
- ext/ffi_c/ffi.c
|
125
|
+
- ext/ffi_c/libffi.bsd.mk
|
126
|
+
- ext/ffi_c/libffi.darwin.mk
|
127
|
+
- ext/ffi_c/libffi.gnu.mk
|
128
|
+
- ext/ffi_c/libffi.mk
|
129
|
+
- ext/ffi_c/libffi.vc.mk
|
130
|
+
- ext/ffi_c/libffi.vc64.mk
|
91
131
|
- ext/ffi_c/libffi/ChangeLog
|
92
132
|
- ext/ffi_c/libffi/ChangeLog.libffi
|
93
133
|
- ext/ffi_c/libffi/ChangeLog.libgcj
|
94
134
|
- ext/ffi_c/libffi/ChangeLog.v1
|
135
|
+
- ext/ffi_c/libffi/LICENSE
|
136
|
+
- ext/ffi_c/libffi/Makefile.am
|
137
|
+
- ext/ffi_c/libffi/Makefile.in
|
138
|
+
- ext/ffi_c/libffi/Makefile.vc
|
139
|
+
- ext/ffi_c/libffi/Makefile.vc64
|
140
|
+
- ext/ffi_c/libffi/README
|
141
|
+
- ext/ffi_c/libffi/acinclude.m4
|
142
|
+
- ext/ffi_c/libffi/aclocal.m4
|
143
|
+
- ext/ffi_c/libffi/build-ios.sh
|
95
144
|
- ext/ffi_c/libffi/compile
|
96
145
|
- ext/ffi_c/libffi/config.guess
|
97
146
|
- ext/ffi_c/libffi/config.sub
|
@@ -105,16 +154,15 @@ files:
|
|
105
154
|
- ext/ffi_c/libffi/doc/version.texi
|
106
155
|
- ext/ffi_c/libffi/fficonfig.h.in
|
107
156
|
- ext/ffi_c/libffi/fficonfig.hw
|
157
|
+
- ext/ffi_c/libffi/include/Makefile.am
|
158
|
+
- ext/ffi_c/libffi/include/Makefile.in
|
108
159
|
- ext/ffi_c/libffi/include/ffi.h.in
|
109
160
|
- ext/ffi_c/libffi/include/ffi.h.vc
|
110
161
|
- ext/ffi_c/libffi/include/ffi.h.vc64
|
111
162
|
- ext/ffi_c/libffi/include/ffi_common.h
|
112
|
-
- ext/ffi_c/libffi/include/Makefile.am
|
113
|
-
- ext/ffi_c/libffi/include/Makefile.in
|
114
163
|
- ext/ffi_c/libffi/install-sh
|
115
164
|
- ext/ffi_c/libffi/libffi.pc.in
|
116
165
|
- ext/ffi_c/libffi/libtool-version
|
117
|
-
- ext/ffi_c/libffi/LICENSE
|
118
166
|
- ext/ffi_c/libffi/ltmain.sh
|
119
167
|
- ext/ffi_c/libffi/m4/ax_cc_maxopt.m4
|
120
168
|
- ext/ffi_c/libffi/m4/ax_cflags_warn_all.m4
|
@@ -129,19 +177,14 @@ files:
|
|
129
177
|
- ext/ffi_c/libffi/m4/ltsugar.m4
|
130
178
|
- ext/ffi_c/libffi/m4/ltversion.m4
|
131
179
|
- ext/ffi_c/libffi/m4/lt~obsolete.m4
|
132
|
-
- ext/ffi_c/libffi/Makefile.am
|
133
|
-
- ext/ffi_c/libffi/Makefile.in
|
134
|
-
- ext/ffi_c/libffi/Makefile.vc
|
135
|
-
- ext/ffi_c/libffi/Makefile.vc64
|
180
|
+
- ext/ffi_c/libffi/man/Makefile.am
|
181
|
+
- ext/ffi_c/libffi/man/Makefile.in
|
136
182
|
- ext/ffi_c/libffi/man/ffi.3
|
137
183
|
- ext/ffi_c/libffi/man/ffi_call.3
|
138
184
|
- ext/ffi_c/libffi/man/ffi_prep_cif.3
|
139
|
-
- ext/ffi_c/libffi/man/Makefile.am
|
140
|
-
- ext/ffi_c/libffi/man/Makefile.in
|
141
185
|
- ext/ffi_c/libffi/mdate-sh
|
142
186
|
- ext/ffi_c/libffi/missing
|
143
187
|
- ext/ffi_c/libffi/msvcc.sh
|
144
|
-
- ext/ffi_c/libffi/README
|
145
188
|
- ext/ffi_c/libffi/src/alpha/ffi.c
|
146
189
|
- ext/ffi_c/libffi/src/alpha/ffitarget.h
|
147
190
|
- ext/ffi_c/libffi/src/alpha/osf.S
|
@@ -221,20 +264,13 @@ files:
|
|
221
264
|
- ext/ffi_c/libffi/src/x86/unix64.S
|
222
265
|
- ext/ffi_c/libffi/src/x86/win32.S
|
223
266
|
- ext/ffi_c/libffi/src/x86/win64.S
|
267
|
+
- ext/ffi_c/libffi/testsuite/Makefile.am
|
268
|
+
- ext/ffi_c/libffi/testsuite/Makefile.in
|
224
269
|
- ext/ffi_c/libffi/testsuite/config/default.exp
|
225
270
|
- ext/ffi_c/libffi/testsuite/lib/libffi-dg.exp
|
226
271
|
- ext/ffi_c/libffi/testsuite/lib/libffi.exp
|
227
272
|
- ext/ffi_c/libffi/testsuite/lib/target-libpath.exp
|
228
273
|
- ext/ffi_c/libffi/testsuite/lib/wrapper.exp
|
229
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/struct2.c
|
230
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/struct3.c
|
231
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/struct4.c
|
232
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/struct5.c
|
233
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/struct6.c
|
234
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/struct7.c
|
235
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/struct8.c
|
236
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/struct9.c
|
237
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/testclosure.c
|
238
274
|
- ext/ffi_c/libffi/testsuite/libffi.call/call.exp
|
239
275
|
- ext/ffi_c/libffi/testsuite/libffi.call/closure_fn0.c
|
240
276
|
- ext/ffi_c/libffi/testsuite/libffi.call/closure_fn1.c
|
@@ -349,50 +385,31 @@ files:
|
|
349
385
|
- ext/ffi_c/libffi/testsuite/libffi.call/strlen.c
|
350
386
|
- ext/ffi_c/libffi/testsuite/libffi.call/strlen_win32.c
|
351
387
|
- ext/ffi_c/libffi/testsuite/libffi.call/struct1.c
|
388
|
+
- ext/ffi_c/libffi/testsuite/libffi.call/struct2.c
|
389
|
+
- ext/ffi_c/libffi/testsuite/libffi.call/struct3.c
|
390
|
+
- ext/ffi_c/libffi/testsuite/libffi.call/struct4.c
|
391
|
+
- ext/ffi_c/libffi/testsuite/libffi.call/struct5.c
|
392
|
+
- ext/ffi_c/libffi/testsuite/libffi.call/struct6.c
|
393
|
+
- ext/ffi_c/libffi/testsuite/libffi.call/struct7.c
|
394
|
+
- ext/ffi_c/libffi/testsuite/libffi.call/struct8.c
|
395
|
+
- ext/ffi_c/libffi/testsuite/libffi.call/struct9.c
|
396
|
+
- ext/ffi_c/libffi/testsuite/libffi.call/testclosure.c
|
352
397
|
- ext/ffi_c/libffi/testsuite/libffi.special/ffitestcxx.h
|
353
398
|
- ext/ffi_c/libffi/testsuite/libffi.special/special.exp
|
354
399
|
- ext/ffi_c/libffi/testsuite/libffi.special/unwindtest.cc
|
355
400
|
- ext/ffi_c/libffi/testsuite/libffi.special/unwindtest_ffi_call.cc
|
356
|
-
- ext/ffi_c/libffi/testsuite/Makefile.am
|
357
|
-
- ext/ffi_c/libffi/testsuite/Makefile.in
|
358
401
|
- ext/ffi_c/libffi/texinfo.tex
|
359
|
-
- ext/ffi_c/libffi.bsd.mk
|
360
|
-
- ext/ffi_c/libffi.darwin.mk
|
361
|
-
- ext/ffi_c/libffi.gnu.mk
|
362
|
-
- ext/ffi_c/libffi.mk
|
363
|
-
- ext/ffi_c/libffi.vc.mk
|
364
|
-
- ext/ffi_c/libffi.vc64.mk
|
365
|
-
- ext/ffi_c/LongDouble.c
|
366
|
-
- ext/ffi_c/LongDouble.h
|
367
|
-
- ext/ffi_c/MappedType.c
|
368
|
-
- ext/ffi_c/MappedType.h
|
369
|
-
- ext/ffi_c/MemoryPointer.c
|
370
|
-
- ext/ffi_c/MemoryPointer.h
|
371
|
-
- ext/ffi_c/MethodHandle.c
|
372
|
-
- ext/ffi_c/MethodHandle.h
|
373
|
-
- ext/ffi_c/Platform.c
|
374
|
-
- ext/ffi_c/Platform.h
|
375
|
-
- ext/ffi_c/Pointer.c
|
376
|
-
- ext/ffi_c/Pointer.h
|
377
402
|
- ext/ffi_c/rbffi.h
|
378
403
|
- ext/ffi_c/rbffi_endian.h
|
379
|
-
- ext/ffi_c/Struct.c
|
380
|
-
- ext/ffi_c/Struct.h
|
381
|
-
- ext/ffi_c/StructByReference.c
|
382
|
-
- ext/ffi_c/StructByReference.h
|
383
|
-
- ext/ffi_c/StructByValue.c
|
384
|
-
- ext/ffi_c/StructByValue.h
|
385
|
-
- ext/ffi_c/StructLayout.c
|
386
|
-
- ext/ffi_c/Thread.c
|
387
|
-
- ext/ffi_c/Thread.h
|
388
|
-
- ext/ffi_c/Type.c
|
389
|
-
- ext/ffi_c/Type.h
|
390
|
-
- ext/ffi_c/Types.c
|
391
|
-
- ext/ffi_c/Types.h
|
392
|
-
- ext/ffi_c/Variadic.c
|
393
404
|
- ext/ffi_c/win32/stdbool.h
|
394
405
|
- ext/ffi_c/win32/stdint.h
|
406
|
+
- ffi.gemspec
|
395
407
|
- gen/Rakefile
|
408
|
+
- lib/1.8/ffi_c.so
|
409
|
+
- lib/1.9/ffi_c.so
|
410
|
+
- lib/2.0/ffi_c.so
|
411
|
+
- lib/2.1/ffi_c.so
|
412
|
+
- lib/ffi.rb
|
396
413
|
- lib/ffi/autopointer.rb
|
397
414
|
- lib/ffi/buffer.rb
|
398
415
|
- lib/ffi/callback.rb
|
@@ -403,6 +420,7 @@ files:
|
|
403
420
|
- lib/ffi/library.rb
|
404
421
|
- lib/ffi/managedstruct.rb
|
405
422
|
- lib/ffi/memorypointer.rb
|
423
|
+
- lib/ffi/platform.rb
|
406
424
|
- lib/ffi/platform/arm-linux/types.conf
|
407
425
|
- lib/ffi/platform/i386-cygwin/types.conf
|
408
426
|
- lib/ffi/platform/i386-darwin/types.conf
|
@@ -432,7 +450,6 @@ files:
|
|
432
450
|
- lib/ffi/platform/x86_64-openbsd/types.conf
|
433
451
|
- lib/ffi/platform/x86_64-solaris/types.conf
|
434
452
|
- lib/ffi/platform/x86_64-windows/types.conf
|
435
|
-
- lib/ffi/platform.rb
|
436
453
|
- lib/ffi/pointer.rb
|
437
454
|
- lib/ffi/struct.rb
|
438
455
|
- lib/ffi/struct_layout_builder.rb
|
@@ -445,7 +462,23 @@ files:
|
|
445
462
|
- lib/ffi/union.rb
|
446
463
|
- lib/ffi/variadic.rb
|
447
464
|
- lib/ffi/version.rb
|
448
|
-
-
|
465
|
+
- libtest/Benchmark.c
|
466
|
+
- libtest/BoolTest.c
|
467
|
+
- libtest/BufferTest.c
|
468
|
+
- libtest/ClosureTest.c
|
469
|
+
- libtest/EnumTest.c
|
470
|
+
- libtest/FunctionTest.c
|
471
|
+
- libtest/GNUmakefile
|
472
|
+
- libtest/GlobalVariable.c
|
473
|
+
- libtest/LastErrorTest.c
|
474
|
+
- libtest/NumberTest.c
|
475
|
+
- libtest/PointerTest.c
|
476
|
+
- libtest/ReferenceTest.c
|
477
|
+
- libtest/StringTest.c
|
478
|
+
- libtest/StructTest.c
|
479
|
+
- libtest/UnionTest.c
|
480
|
+
- libtest/VariadicTest.c
|
481
|
+
- spec/ffi/LICENSE.SPECS
|
449
482
|
- spec/ffi/async_callback_spec.rb
|
450
483
|
- spec/ffi/bool_spec.rb
|
451
484
|
- spec/ffi/buffer_spec.rb
|
@@ -455,16 +488,16 @@ files:
|
|
455
488
|
- spec/ffi/dup_spec.rb
|
456
489
|
- spec/ffi/enum_spec.rb
|
457
490
|
- spec/ffi/errno_spec.rb
|
491
|
+
- spec/ffi/ffi.log
|
458
492
|
- spec/ffi/ffi_spec.rb
|
459
493
|
- spec/ffi/fixtures/Benchmark.c
|
460
494
|
- spec/ffi/fixtures/BoolTest.c
|
461
495
|
- spec/ffi/fixtures/BufferTest.c
|
462
|
-
- spec/ffi/fixtures/classes.rb
|
463
496
|
- spec/ffi/fixtures/ClosureTest.c
|
464
497
|
- spec/ffi/fixtures/EnumTest.c
|
465
498
|
- spec/ffi/fixtures/FunctionTest.c
|
466
|
-
- spec/ffi/fixtures/GlobalVariable.c
|
467
499
|
- spec/ffi/fixtures/GNUmakefile
|
500
|
+
- spec/ffi/fixtures/GlobalVariable.c
|
468
501
|
- spec/ffi/fixtures/LastErrorTest.c
|
469
502
|
- spec/ffi/fixtures/NumberTest.c
|
470
503
|
- spec/ffi/fixtures/PointerTest.c
|
@@ -473,10 +506,10 @@ files:
|
|
473
506
|
- spec/ffi/fixtures/StructTest.c
|
474
507
|
- spec/ffi/fixtures/UnionTest.c
|
475
508
|
- spec/ffi/fixtures/VariadicTest.c
|
509
|
+
- spec/ffi/fixtures/classes.rb
|
476
510
|
- spec/ffi/function_spec.rb
|
477
511
|
- spec/ffi/io_spec.rb
|
478
512
|
- spec/ffi/library_spec.rb
|
479
|
-
- spec/ffi/LICENSE.SPECS
|
480
513
|
- spec/ffi/long_double.rb
|
481
514
|
- spec/ffi/managed_struct_spec.rb
|
482
515
|
- spec/ffi/memorypointer_spec.rb
|
@@ -491,6 +524,7 @@ files:
|
|
491
524
|
- spec/ffi/string_spec.rb
|
492
525
|
- spec/ffi/strptr_spec.rb
|
493
526
|
- spec/ffi/struct_by_ref_spec.rb
|
527
|
+
- spec/ffi/struct_by_ref_spec.rb.orig
|
494
528
|
- spec/ffi/struct_callback_spec.rb
|
495
529
|
- spec/ffi/struct_initialize_spec.rb
|
496
530
|
- spec/ffi/struct_packed_spec.rb
|
@@ -499,53 +533,30 @@ files:
|
|
499
533
|
- spec/ffi/union_spec.rb
|
500
534
|
- spec/ffi/variadic_spec.rb
|
501
535
|
- spec/spec.opts
|
502
|
-
- libtest/Benchmark.c
|
503
|
-
- libtest/BoolTest.c
|
504
|
-
- libtest/BufferTest.c
|
505
|
-
- libtest/ClosureTest.c
|
506
|
-
- libtest/EnumTest.c
|
507
|
-
- libtest/FunctionTest.c
|
508
|
-
- libtest/GlobalVariable.c
|
509
|
-
- libtest/GNUmakefile
|
510
|
-
- libtest/LastErrorTest.c
|
511
|
-
- libtest/NumberTest.c
|
512
|
-
- libtest/PointerTest.c
|
513
|
-
- libtest/ReferenceTest.c
|
514
|
-
- libtest/StringTest.c
|
515
|
-
- libtest/StructTest.c
|
516
|
-
- libtest/UnionTest.c
|
517
|
-
- libtest/VariadicTest.c
|
518
|
-
- lib/1.8/ffi_c.so
|
519
|
-
- lib/1.9/ffi_c.so
|
520
|
-
- lib/2.0/ffi_c.so
|
521
536
|
homepage: http://wiki.github.com/ffi/ffi
|
522
|
-
licenses:
|
537
|
+
licenses:
|
523
538
|
- BSD
|
524
539
|
metadata: {}
|
525
|
-
|
526
540
|
post_install_message:
|
527
|
-
rdoc_options:
|
541
|
+
rdoc_options:
|
528
542
|
- --exclude=ext/ffi_c/.*\.o$
|
529
543
|
- --exclude=ffi_c\.(bundle|so)$
|
530
|
-
require_paths:
|
544
|
+
require_paths:
|
531
545
|
- lib
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
- !ruby/object:Gem::Version
|
546
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
547
|
+
requirements:
|
548
|
+
- - ! '>='
|
549
|
+
- !ruby/object:Gem::Version
|
537
550
|
version: 1.8.7
|
538
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
539
|
-
requirements:
|
540
|
-
- -
|
541
|
-
- !ruby/object:Gem::Version
|
542
|
-
version:
|
551
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
552
|
+
requirements:
|
553
|
+
- - ! '>='
|
554
|
+
- !ruby/object:Gem::Version
|
555
|
+
version: '0'
|
543
556
|
requirements: []
|
544
|
-
|
545
557
|
rubyforge_project:
|
546
|
-
rubygems_version: 2.
|
558
|
+
rubygems_version: 2.2.2
|
547
559
|
signing_key:
|
548
560
|
specification_version: 4
|
549
561
|
summary: Ruby FFI
|
550
562
|
test_files: []
|
551
|
-
|