ghazel-kdtree 0.1.1 → 0.1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/kdtree.c +4 -3
- metadata +20 -5
data/ext/kdtree.c
CHANGED
@@ -63,7 +63,7 @@ static void kdtree_free(struct kdtree_data *kdtreep)
|
|
63
63
|
}
|
64
64
|
}
|
65
65
|
|
66
|
-
static void read_all(
|
66
|
+
static void read_all(rb_io_t *fptr, char *buf, int len)
|
67
67
|
{
|
68
68
|
while (len > 0) {
|
69
69
|
int n = rb_io_fread(buf, len, fptr->f);
|
@@ -126,13 +126,14 @@ static VALUE kdtree_initialize(VALUE kdtree, VALUE arg)
|
|
126
126
|
kdtreep->root = kdtree_build(kdtreep, 0, kdtreep->len, 0);
|
127
127
|
} else if (rb_respond_to(arg, rb_intern("read"))) {
|
128
128
|
VALUE io = arg;
|
129
|
-
|
129
|
+
rb_io_t *fptr;
|
130
130
|
char buf[4];
|
131
131
|
if (rb_respond_to(io, rb_intern("binmode"))) {
|
132
132
|
rb_funcall2(io, rb_intern("binmode"), 0, 0);
|
133
133
|
}
|
134
134
|
|
135
|
-
|
135
|
+
rb_io_taint_check(io);
|
136
|
+
GetOpenFile(io, fptr);
|
136
137
|
rb_io_check_readable(fptr);
|
137
138
|
|
138
139
|
// check magic
|
metadata
CHANGED
@@ -1,7 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ghazel-kdtree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 65
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
- 1
|
10
|
+
- 1
|
11
|
+
version: 0.1.1.1
|
5
12
|
platform: ruby
|
6
13
|
authors:
|
7
14
|
- Adam Doppelt
|
@@ -9,7 +16,7 @@ autorequire:
|
|
9
16
|
bindir: bin
|
10
17
|
cert_chain: []
|
11
18
|
|
12
|
-
date:
|
19
|
+
date: 2011-04-19 00:00:00 -07:00
|
13
20
|
default_executable:
|
14
21
|
dependencies: []
|
15
22
|
|
@@ -39,21 +46,29 @@ rdoc_options:
|
|
39
46
|
require_paths:
|
40
47
|
- .
|
41
48
|
required_ruby_version: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
42
50
|
requirements:
|
43
51
|
- - ">="
|
44
52
|
- !ruby/object:Gem::Version
|
53
|
+
hash: 61
|
54
|
+
segments:
|
55
|
+
- 1
|
56
|
+
- 8
|
57
|
+
- 5
|
45
58
|
version: 1.8.5
|
46
|
-
version:
|
47
59
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
60
|
+
none: false
|
48
61
|
requirements:
|
49
62
|
- - ">="
|
50
63
|
- !ruby/object:Gem::Version
|
64
|
+
hash: 3
|
65
|
+
segments:
|
66
|
+
- 0
|
51
67
|
version: "0"
|
52
|
-
version:
|
53
68
|
requirements: []
|
54
69
|
|
55
70
|
rubyforge_project:
|
56
|
-
rubygems_version: 1.
|
71
|
+
rubygems_version: 1.4.2
|
57
72
|
signing_key:
|
58
73
|
specification_version: 3
|
59
74
|
summary: Blazingly fast 2d kdtree.
|