ffi 1.8.1-x86-mingw32 → 1.9.0-x86-mingw32
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 -1
- data/ext/ffi_c/ClosurePool.c +6 -6
- data/ext/ffi_c/Thread.c +1 -1
- data/ext/ffi_c/extconf.rb +0 -1
- 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/ffi/platform/{i486-gnu → i386-gnu}/types.conf +0 -0
- data/lib/ffi/platform/i386-openbsd/types.conf +2 -0
- data/lib/ffi/platform/x86_64-openbsd/types.conf +2 -0
- data/lib/ffi/version.rb +1 -1
- metadata +13 -11
data/Rakefile
CHANGED
@@ -2,6 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'rubygems/package_task'
|
3
3
|
require 'rubygems/tasks'
|
4
4
|
require 'rbconfig'
|
5
|
+
require 'rake/clean'
|
5
6
|
|
6
7
|
USE_RAKE_COMPILER = (RUBY_PLATFORM =~ /java/) ? false : true
|
7
8
|
if USE_RAKE_COMPILER
|
@@ -197,7 +198,7 @@ if USE_RAKE_COMPILER
|
|
197
198
|
|
198
199
|
task "copy:ffi_c:x64-mingw32:#{ruby_version}" do |t|
|
199
200
|
if File.exists?("#{BUILD_DIR}/x64-mingw32/stage/lib/#{ruby_version[/^\d+\.\d+/]}/ffi_c.so")
|
200
|
-
sh "x86_64-w64-mingw32-strip -S #{
|
201
|
+
sh "x86_64-w64-mingw32-strip -S #{BUILD_DIR}/x64-mingw32/stage/lib/#{ruby_version[/^\d+\.\d+/]}/ffi_c.so"
|
201
202
|
end
|
202
203
|
end
|
203
204
|
end
|
data/ext/ffi_c/ClosurePool.c
CHANGED
@@ -21,7 +21,7 @@
|
|
21
21
|
#include <sys/param.h>
|
22
22
|
#endif
|
23
23
|
#include <sys/types.h>
|
24
|
-
#
|
24
|
+
#if defined(__CYGWIN__) || !defined(_WIN32)
|
25
25
|
# include <sys/mman.h>
|
26
26
|
#endif
|
27
27
|
#include <stdio.h>
|
@@ -32,7 +32,7 @@
|
|
32
32
|
# include "win32/stdbool.h"
|
33
33
|
# include "win32/stdint.h"
|
34
34
|
#endif
|
35
|
-
#
|
35
|
+
#if defined(__CYGWIN__) || !defined(_WIN32)
|
36
36
|
# include <unistd.h>
|
37
37
|
#else
|
38
38
|
# include <winsock2.h>
|
@@ -225,7 +225,7 @@ rbffi_Closure_CodeAddress(Closure* handle)
|
|
225
225
|
static long
|
226
226
|
getPageSize()
|
227
227
|
{
|
228
|
-
#if defined(_WIN32) || defined(__WIN32__)
|
228
|
+
#if !defined(__CYGWIN__) && (defined(_WIN32) || defined(__WIN32__))
|
229
229
|
SYSTEM_INFO si;
|
230
230
|
GetSystemInfo(&si);
|
231
231
|
return si.dwPageSize;
|
@@ -237,7 +237,7 @@ getPageSize()
|
|
237
237
|
static void*
|
238
238
|
allocatePage(void)
|
239
239
|
{
|
240
|
-
#if defined(_WIN32) || defined(__WIN32__)
|
240
|
+
#if !defined(__CYGWIN__) && (defined(_WIN32) || defined(__WIN32__))
|
241
241
|
return VirtualAlloc(NULL, pageSize, MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE);
|
242
242
|
#else
|
243
243
|
caddr_t page = mmap(NULL, pageSize, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0);
|
@@ -248,7 +248,7 @@ allocatePage(void)
|
|
248
248
|
static bool
|
249
249
|
freePage(void *addr)
|
250
250
|
{
|
251
|
-
#if defined(_WIN32) || defined(__WIN32__)
|
251
|
+
#if !defined(__CYGWIN__) && (defined(_WIN32) || defined(__WIN32__))
|
252
252
|
return VirtualFree(addr, 0, MEM_RELEASE);
|
253
253
|
#else
|
254
254
|
return munmap(addr, pageSize) == 0;
|
@@ -258,7 +258,7 @@ freePage(void *addr)
|
|
258
258
|
static bool
|
259
259
|
protectPage(void* page)
|
260
260
|
{
|
261
|
-
#if defined(_WIN32) || defined(__WIN32__)
|
261
|
+
#if !defined(__CYGWIN__) && (defined(_WIN32) || defined(__WIN32__))
|
262
262
|
DWORD oldProtect;
|
263
263
|
return VirtualProtect(page, pageSize, PAGE_EXECUTE_READ, &oldProtect);
|
264
264
|
#else
|
data/ext/ffi_c/Thread.c
CHANGED
data/ext/ffi_c/extconf.rb
CHANGED
@@ -36,7 +36,6 @@ if !defined?(RUBY_ENGINE) || RUBY_ENGINE == 'ruby' || RUBY_ENGINE == 'rbx'
|
|
36
36
|
|
37
37
|
create_header
|
38
38
|
|
39
|
-
$CFLAGS << " -mwin32 " if RbConfig::CONFIG['host_os'] =~ /cygwin/
|
40
39
|
$LOCAL_LIBS << " ./libffi/.libs/libffi_convenience.lib" if RbConfig::CONFIG['host_os'] =~ /mswin/
|
41
40
|
|
42
41
|
create_makefile("ffi_c")
|
data/lib/1.8/ffi_c.so
CHANGED
Binary file
|
data/lib/1.9/ffi_c.so
CHANGED
Binary file
|
data/lib/2.0/ffi_c.so
CHANGED
Binary file
|
File without changes
|
@@ -82,6 +82,8 @@ rbx.platform.typedef.int32_t = int
|
|
82
82
|
rbx.platform.typedef.uint32_t = uint
|
83
83
|
rbx.platform.typedef.int64_t = long_long
|
84
84
|
rbx.platform.typedef.uint64_t = ulong_long
|
85
|
+
rbx.platform.typedef.intptr_t = long
|
86
|
+
rbx.platform.typedef.uintptr_t = ulong
|
85
87
|
rbx.platform.typedef.u_int8_t = uchar
|
86
88
|
rbx.platform.typedef.u_int16_t = ushort
|
87
89
|
rbx.platform.typedef.u_int32_t = uint
|
@@ -82,6 +82,8 @@ rbx.platform.typedef.int32_t = int
|
|
82
82
|
rbx.platform.typedef.uint32_t = uint
|
83
83
|
rbx.platform.typedef.int64_t = long_long
|
84
84
|
rbx.platform.typedef.uint64_t = ulong_long
|
85
|
+
rbx.platform.typedef.intptr_t = long
|
86
|
+
rbx.platform.typedef.uintptr_t = ulong
|
85
87
|
rbx.platform.typedef.u_int8_t = uchar
|
86
88
|
rbx.platform.typedef.u_int16_t = ushort
|
87
89
|
rbx.platform.typedef.u_int32_t = uint
|
data/lib/ffi/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ffi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 51
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 1.
|
8
|
+
- 9
|
9
|
+
- 0
|
10
|
+
version: 1.9.0
|
11
11
|
platform: x86-mingw32
|
12
12
|
authors:
|
13
13
|
- Wayne Meissner
|
@@ -15,9 +15,11 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-
|
18
|
+
date: 2013-06-10 00:00:00 +10:00
|
19
|
+
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
22
|
+
name: rake
|
21
23
|
prerelease: false
|
22
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
23
25
|
none: false
|
@@ -29,9 +31,9 @@ dependencies:
|
|
29
31
|
- 0
|
30
32
|
version: "0"
|
31
33
|
type: :development
|
32
|
-
name: rake
|
33
34
|
version_requirements: *id001
|
34
35
|
- !ruby/object:Gem::Dependency
|
36
|
+
name: rake-compiler
|
35
37
|
prerelease: false
|
36
38
|
requirement: &id002 !ruby/object:Gem::Requirement
|
37
39
|
none: false
|
@@ -45,9 +47,9 @@ dependencies:
|
|
45
47
|
- 0
|
46
48
|
version: 0.6.0
|
47
49
|
type: :development
|
48
|
-
name: rake-compiler
|
49
50
|
version_requirements: *id002
|
50
51
|
- !ruby/object:Gem::Dependency
|
52
|
+
name: rspec
|
51
53
|
prerelease: false
|
52
54
|
requirement: &id003 !ruby/object:Gem::Requirement
|
53
55
|
none: false
|
@@ -59,9 +61,9 @@ dependencies:
|
|
59
61
|
- 0
|
60
62
|
version: "0"
|
61
63
|
type: :development
|
62
|
-
name: rspec
|
63
64
|
version_requirements: *id003
|
64
65
|
- !ruby/object:Gem::Dependency
|
66
|
+
name: rubygems-tasks
|
65
67
|
prerelease: false
|
66
68
|
requirement: &id004 !ruby/object:Gem::Requirement
|
67
69
|
none: false
|
@@ -73,7 +75,6 @@ dependencies:
|
|
73
75
|
- 0
|
74
76
|
version: "0"
|
75
77
|
type: :development
|
76
|
-
name: rubygems-tasks
|
77
78
|
version_requirements: *id004
|
78
79
|
description: Ruby FFI library
|
79
80
|
email: wmeissner@gmail.com
|
@@ -436,12 +437,12 @@ files:
|
|
436
437
|
- lib/ffi/platform/i386-cygwin/types.conf
|
437
438
|
- lib/ffi/platform/i386-darwin/types.conf
|
438
439
|
- lib/ffi/platform/i386-freebsd/types.conf
|
440
|
+
- lib/ffi/platform/i386-gnu/types.conf
|
439
441
|
- lib/ffi/platform/i386-linux/types.conf
|
440
442
|
- lib/ffi/platform/i386-netbsd/types.conf
|
441
443
|
- lib/ffi/platform/i386-openbsd/types.conf
|
442
444
|
- lib/ffi/platform/i386-solaris/types.conf
|
443
445
|
- lib/ffi/platform/i386-windows/types.conf
|
444
|
-
- lib/ffi/platform/i486-gnu/types.conf
|
445
446
|
- lib/ffi/platform/ia64-linux/types.conf
|
446
447
|
- lib/ffi/platform/mips-linux/types.conf
|
447
448
|
- lib/ffi/platform/mipsel-linux/types.conf
|
@@ -526,6 +527,7 @@ files:
|
|
526
527
|
- lib/1.8/ffi_c.so
|
527
528
|
- lib/1.9/ffi_c.so
|
528
529
|
- lib/2.0/ffi_c.so
|
530
|
+
has_rdoc: true
|
529
531
|
homepage: http://wiki.github.com/ffi/ffi
|
530
532
|
licenses:
|
531
533
|
- LGPL-3
|
@@ -559,7 +561,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
559
561
|
requirements: []
|
560
562
|
|
561
563
|
rubyforge_project:
|
562
|
-
rubygems_version: 1.
|
564
|
+
rubygems_version: 1.6.2
|
563
565
|
signing_key:
|
564
566
|
specification_version: 3
|
565
567
|
summary: Ruby FFI
|