ffi 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of ffi might be problematic. Click here for more details.
- data/Rakefile +2 -2
- data/ext/ffi_c/AbstractMemory.c +1 -1
- data/ext/ffi_c/ArrayType.c +11 -19
- data/ext/ffi_c/ArrayType.h +11 -19
- data/ext/ffi_c/Buffer.c +2 -0
- data/ext/ffi_c/Call.h +12 -19
- data/ext/ffi_c/ClosurePool.h +19 -0
- data/ext/ffi_c/DynamicLibrary.h +18 -0
- data/ext/ffi_c/Function.c +12 -13
- data/ext/ffi_c/Function.h +12 -19
- data/ext/ffi_c/LastError.c +12 -19
- data/ext/ffi_c/LastError.h +20 -0
- data/ext/ffi_c/MappedType.c +12 -19
- data/ext/ffi_c/MappedType.h +12 -19
- data/ext/ffi_c/MemoryPointer.c +1 -0
- data/ext/ffi_c/MemoryPointer.h +23 -3
- data/ext/ffi_c/MethodHandle.h +15 -22
- data/ext/ffi_c/Platform.c +36 -9
- data/ext/ffi_c/Platform.h +23 -3
- data/ext/ffi_c/Pointer.c +2 -0
- data/ext/ffi_c/Pointer.h +11 -19
- data/ext/ffi_c/Struct.c +12 -19
- data/ext/ffi_c/Struct.h +11 -19
- data/ext/ffi_c/StructByValue.c +13 -19
- data/ext/ffi_c/StructByValue.h +12 -19
- data/ext/ffi_c/StructLayout.c +12 -19
- data/ext/ffi_c/Thread.c +36 -10
- data/ext/ffi_c/Thread.h +14 -5
- data/ext/ffi_c/Type.c +1 -0
- data/ext/ffi_c/Types.c +12 -19
- data/ext/ffi_c/Types.h +11 -19
- data/ext/ffi_c/Variadic.c +1 -1
- data/ext/ffi_c/compat.h +13 -19
- data/ext/ffi_c/endian.h +1 -0
- data/ext/ffi_c/extconf.rb +3 -1
- data/ext/ffi_c/ffi.c +12 -19
- data/ext/ffi_c/rbffi.h +23 -3
- data/lib/ffi/tools/const_generator.rb +1 -1
- data/spec/ffi/async_callback_spec.rb +35 -12
- data/spec/ffi/bool_spec.rb +16 -0
- data/spec/ffi/buffer_spec.rb +34 -21
- data/spec/ffi/callback_spec.rb +16 -0
- data/spec/ffi/custom_param_type.rb +16 -0
- data/spec/ffi/custom_type_spec.rb +16 -0
- data/spec/ffi/enum_spec.rb +16 -0
- data/spec/ffi/errno_spec.rb +16 -0
- data/spec/ffi/ffi_spec.rb +16 -0
- data/spec/ffi/library_spec.rb +16 -0
- data/spec/ffi/managed_struct_spec.rb +16 -0
- data/spec/ffi/number_spec.rb +16 -0
- data/spec/ffi/strptr_spec.rb +16 -0
- data/spec/ffi/struct_callback_spec.rb +16 -0
- data/spec/ffi/struct_initialize_spec.rb +1 -0
- data/spec/ffi/struct_packed_spec.rb +16 -0
- data/spec/ffi/struct_spec.rb +16 -0
- data/spec/ffi/typedef_spec.rb +16 -0
- data/spec/ffi/union_spec.rb +16 -0
- data/spec/ffi/variadic_spec.rb +16 -0
- data/tasks/extension.rake +1 -1
- metadata +9 -38
data/spec/ffi/variadic_spec.rb
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
+
#
|
2
|
+
# This file is part of ruby-ffi.
|
3
|
+
#
|
4
|
+
# This code is free software: you can redistribute it and/or modify it under
|
5
|
+
# the terms of the GNU Lesser General Public License version 3 only, as
|
6
|
+
# published by the Free Software Foundation.
|
7
|
+
#
|
8
|
+
# This code is distributed in the hope that it will be useful, but WITHOUT
|
9
|
+
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
10
|
+
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
11
|
+
# version 3 for more details.
|
12
|
+
#
|
13
|
+
# You should have received a copy of the GNU Lesser General Public License
|
14
|
+
# version 3 along with this work. If not, see <http://www.gnu.org/licenses/>.
|
15
|
+
#
|
16
|
+
|
1
17
|
require File.expand_path(File.join(File.dirname(__FILE__), "spec_helper"))
|
2
18
|
describe "Function with variadic arguments" do
|
3
19
|
module LibTest
|
data/tasks/extension.rake
CHANGED
@@ -29,5 +29,5 @@ Rake::ExtensionTask.new('ffi_c', spec) do |ext|
|
|
29
29
|
# ext.lib_dir = BUILD_DIR # put binaries into this folder.
|
30
30
|
ext.tmp_dir = BUILD_DIR # temporary folder used during compilation.
|
31
31
|
ext.cross_compile = true # enable cross compilation (requires cross compile toolchain)
|
32
|
-
ext.cross_platform = ['i386-mingw32'
|
32
|
+
ext.cross_platform = ['i386-mingw32'] # forces the Windows platform instead of the default one
|
33
33
|
end if USE_RAKE_COMPILER
|
metadata
CHANGED
@@ -1,12 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ffi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
segments:
|
6
|
-
- 1
|
7
|
-
- 0
|
8
|
-
- 4
|
9
|
-
version: 1.0.4
|
4
|
+
version: 1.0.5
|
10
5
|
platform: ruby
|
11
6
|
authors:
|
12
7
|
- Wayne Meissner
|
@@ -14,39 +9,19 @@ autorequire:
|
|
14
9
|
bindir: bin
|
15
10
|
cert_chain: []
|
16
11
|
|
17
|
-
date:
|
12
|
+
date: 2011-01-13 00:00:00 +10:00
|
18
13
|
default_executable:
|
19
14
|
dependencies:
|
20
15
|
- !ruby/object:Gem::Dependency
|
21
16
|
name: rake
|
22
|
-
prerelease: false
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
-
none: false
|
25
|
-
requirements:
|
26
|
-
- - ">="
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
segments:
|
29
|
-
- 0
|
30
|
-
- 8
|
31
|
-
- 7
|
32
|
-
version: 0.8.7
|
33
17
|
type: :runtime
|
34
|
-
|
35
|
-
|
36
|
-
name: bones
|
37
|
-
prerelease: false
|
38
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
-
none: false
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
20
|
requirements:
|
41
21
|
- - ">="
|
42
22
|
- !ruby/object:Gem::Version
|
43
|
-
|
44
|
-
|
45
|
-
- 4
|
46
|
-
- 7
|
47
|
-
version: 3.4.7
|
48
|
-
type: :development
|
49
|
-
version_requirements: *id002
|
23
|
+
version: 0.8.7
|
24
|
+
version:
|
50
25
|
description: |-
|
51
26
|
Ruby-FFI is a ruby extension for programmatically loading dynamic
|
52
27
|
libraries, binding functions within them, and calling those functions
|
@@ -447,25 +422,21 @@ require_paths:
|
|
447
422
|
- lib
|
448
423
|
- ext
|
449
424
|
required_ruby_version: !ruby/object:Gem::Requirement
|
450
|
-
none: false
|
451
425
|
requirements:
|
452
426
|
- - ">="
|
453
427
|
- !ruby/object:Gem::Version
|
454
|
-
segments:
|
455
|
-
- 0
|
456
428
|
version: "0"
|
429
|
+
version:
|
457
430
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
458
|
-
none: false
|
459
431
|
requirements:
|
460
432
|
- - ">="
|
461
433
|
- !ruby/object:Gem::Version
|
462
|
-
segments:
|
463
|
-
- 0
|
464
434
|
version: "0"
|
435
|
+
version:
|
465
436
|
requirements: []
|
466
437
|
|
467
438
|
rubyforge_project: ffi
|
468
|
-
rubygems_version: 1.3.
|
439
|
+
rubygems_version: 1.3.5
|
469
440
|
signing_key:
|
470
441
|
specification_version: 3
|
471
442
|
summary: Ruby-FFI is a ruby extension for programmatically loading dynamic libraries, binding functions within them, and calling those functions from Ruby code
|