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.

Files changed (60) hide show
  1. data/Rakefile +2 -2
  2. data/ext/ffi_c/AbstractMemory.c +1 -1
  3. data/ext/ffi_c/ArrayType.c +11 -19
  4. data/ext/ffi_c/ArrayType.h +11 -19
  5. data/ext/ffi_c/Buffer.c +2 -0
  6. data/ext/ffi_c/Call.h +12 -19
  7. data/ext/ffi_c/ClosurePool.h +19 -0
  8. data/ext/ffi_c/DynamicLibrary.h +18 -0
  9. data/ext/ffi_c/Function.c +12 -13
  10. data/ext/ffi_c/Function.h +12 -19
  11. data/ext/ffi_c/LastError.c +12 -19
  12. data/ext/ffi_c/LastError.h +20 -0
  13. data/ext/ffi_c/MappedType.c +12 -19
  14. data/ext/ffi_c/MappedType.h +12 -19
  15. data/ext/ffi_c/MemoryPointer.c +1 -0
  16. data/ext/ffi_c/MemoryPointer.h +23 -3
  17. data/ext/ffi_c/MethodHandle.h +15 -22
  18. data/ext/ffi_c/Platform.c +36 -9
  19. data/ext/ffi_c/Platform.h +23 -3
  20. data/ext/ffi_c/Pointer.c +2 -0
  21. data/ext/ffi_c/Pointer.h +11 -19
  22. data/ext/ffi_c/Struct.c +12 -19
  23. data/ext/ffi_c/Struct.h +11 -19
  24. data/ext/ffi_c/StructByValue.c +13 -19
  25. data/ext/ffi_c/StructByValue.h +12 -19
  26. data/ext/ffi_c/StructLayout.c +12 -19
  27. data/ext/ffi_c/Thread.c +36 -10
  28. data/ext/ffi_c/Thread.h +14 -5
  29. data/ext/ffi_c/Type.c +1 -0
  30. data/ext/ffi_c/Types.c +12 -19
  31. data/ext/ffi_c/Types.h +11 -19
  32. data/ext/ffi_c/Variadic.c +1 -1
  33. data/ext/ffi_c/compat.h +13 -19
  34. data/ext/ffi_c/endian.h +1 -0
  35. data/ext/ffi_c/extconf.rb +3 -1
  36. data/ext/ffi_c/ffi.c +12 -19
  37. data/ext/ffi_c/rbffi.h +23 -3
  38. data/lib/ffi/tools/const_generator.rb +1 -1
  39. data/spec/ffi/async_callback_spec.rb +35 -12
  40. data/spec/ffi/bool_spec.rb +16 -0
  41. data/spec/ffi/buffer_spec.rb +34 -21
  42. data/spec/ffi/callback_spec.rb +16 -0
  43. data/spec/ffi/custom_param_type.rb +16 -0
  44. data/spec/ffi/custom_type_spec.rb +16 -0
  45. data/spec/ffi/enum_spec.rb +16 -0
  46. data/spec/ffi/errno_spec.rb +16 -0
  47. data/spec/ffi/ffi_spec.rb +16 -0
  48. data/spec/ffi/library_spec.rb +16 -0
  49. data/spec/ffi/managed_struct_spec.rb +16 -0
  50. data/spec/ffi/number_spec.rb +16 -0
  51. data/spec/ffi/strptr_spec.rb +16 -0
  52. data/spec/ffi/struct_callback_spec.rb +16 -0
  53. data/spec/ffi/struct_initialize_spec.rb +1 -0
  54. data/spec/ffi/struct_packed_spec.rb +16 -0
  55. data/spec/ffi/struct_spec.rb +16 -0
  56. data/spec/ffi/typedef_spec.rb +16 -0
  57. data/spec/ffi/union_spec.rb +16 -0
  58. data/spec/ffi/variadic_spec.rb +16 -0
  59. data/tasks/extension.rake +1 -1
  60. metadata +9 -38
@@ -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
@@ -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', 'i386-mswin32'] # forces the Windows platform instead of the default one
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
- prerelease: false
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: 2010-12-28 00:00:00 +10:00
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
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
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
- segments:
44
- - 3
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.7
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