librtree 1.0.2 → 1.0.4

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.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +11 -2
  3. data/README.md +4 -4
  4. data/ext/rtree/extconf.rb +18 -3
  5. data/ext/rtree/lib/bindex.c +2 -1
  6. data/ext/rtree/lib/branch.c +2 -1
  7. data/ext/rtree/lib/branches.c +2 -2
  8. data/ext/rtree/lib/bsrt.c +8 -18
  9. data/ext/rtree/lib/csv.c +3 -1
  10. data/ext/rtree/lib/error.c +2 -2
  11. data/ext/rtree/lib/json.c +6 -3
  12. data/ext/rtree/lib/mk/Hdr.mk +3 -3
  13. data/ext/rtree/lib/node.c +34 -34
  14. data/ext/rtree/lib/package.c +1 -1
  15. data/ext/rtree/lib/page.c +1 -1
  16. data/ext/rtree/lib/postscript.c +20 -16
  17. data/ext/rtree/lib/{bindex.h → private/bindex.h} +3 -8
  18. data/ext/rtree/lib/{bounds.h → private/bounds.h} +3 -3
  19. data/ext/rtree/lib/{rtree → private}/branch.h +10 -17
  20. data/ext/rtree/lib/{rtree → private}/branches.h +8 -14
  21. data/ext/rtree/lib/{bsrt.h → private/bsrt.h} +5 -5
  22. data/ext/rtree/lib/{constants.h → private/constants.h} +3 -3
  23. data/ext/rtree/lib/{csv.h → private/csv.h} +5 -5
  24. data/ext/rtree/lib/{endianness.h → private/endianness.h} +4 -8
  25. data/ext/rtree/lib/{json.h → private/json.h} +5 -5
  26. data/ext/rtree/lib/private/node.h +86 -0
  27. data/ext/rtree/lib/private/page.h +13 -0
  28. data/ext/rtree/lib/private/postscript.h +17 -0
  29. data/ext/rtree/lib/{rtree → private}/rect.h +6 -14
  30. data/ext/rtree/lib/{rtree → private}/rectf.h +3 -14
  31. data/ext/rtree/lib/private/rtree.h +20 -0
  32. data/ext/rtree/lib/private/search.h +20 -0
  33. data/ext/rtree/lib/private/split.h +15 -0
  34. data/ext/rtree/lib/{spvol.h → private/spvol.h} +3 -3
  35. data/ext/rtree/lib/private/state.h +91 -0
  36. data/ext/rtree/lib/rect.c +4 -1
  37. data/ext/rtree/lib/rectf.c +1 -1
  38. data/ext/rtree/lib/rtree/node.h +0 -75
  39. data/ext/rtree/lib/rtree/postscript.h +19 -21
  40. data/ext/rtree/lib/rtree/search.h +0 -6
  41. data/ext/rtree/lib/rtree/state.h +0 -79
  42. data/ext/rtree/lib/rtree-base.c +64 -4
  43. data/ext/rtree/lib/rtree.h +7 -11
  44. data/ext/rtree/lib/search.c +4 -3
  45. data/ext/rtree/lib/split.c +9 -6
  46. data/ext/rtree/lib/spvol.c +1 -1
  47. data/ext/rtree/lib/state.c +7 -7
  48. data/ext/rtree/rtree.c +18 -18
  49. data/lib/rtree.rb +2 -8
  50. metadata +38 -19
  51. data/ext/rtree/lib/page.h +0 -13
  52. data/ext/rtree/lib/split.h +0 -15
@@ -15,29 +15,10 @@
15
15
  extern "C" {
16
16
  #endif
17
17
 
18
- #include <stdlib.h>
19
18
  #include <stdint.h>
20
- #include <stdbool.h>
21
-
22
- #include <rtree/types.h>
23
- #include <rtree/rectf.h>
24
19
 
25
20
  typedef uint32_t state_flags_t;
26
21
 
27
- typedef struct
28
- {
29
- size_t dims, factor;
30
- rtree_coord_t volume;
31
- struct {
32
- size_t page, branch, node;
33
- } size;
34
- struct {
35
- rectf_rsv_t *spherical_volume;
36
- rectf_rc_t *combine;
37
- } rectf;
38
- state_flags_t flags;
39
- } state_t;
40
-
41
22
  #define RTREE_DEFAULT 0
42
23
 
43
24
  #define RTREE_SPLIT_QUADRATIC 0
@@ -46,66 +27,6 @@ typedef struct
46
27
 
47
28
  #define RTREE_NODE_PAGE(n) ((n) << 2)
48
29
 
49
- state_t* state_new(size_t, state_flags_t);
50
- state_t* state_clone(const state_t*);
51
- void state_destroy(state_t*);
52
- state_flags_t state_split(const state_t*);
53
- state_flags_t state_node_page(const state_t*);
54
- bool state_identical(const state_t*, const state_t*);
55
-
56
- inline rtree_coord_t state_rsv(const state_t *state, const rtree_coord_t *rect)
57
- {
58
- return state->rectf.spherical_volume(state->dims, rect) * state->volume;
59
- }
60
-
61
- inline void state_rc(const state_t *state,
62
- const rtree_coord_t *rect0,
63
- const rtree_coord_t *rect1,
64
- rtree_coord_t *rect2)
65
- {
66
- state->rectf.combine(state->dims, rect0, rect1, rect2);
67
- }
68
-
69
- inline size_t state_dims(const state_t *state)
70
- {
71
- return state->dims;
72
- }
73
-
74
- inline size_t state_branch_size(const state_t *state)
75
- {
76
- return state->size.branch;
77
- }
78
-
79
- inline size_t state_page_size(const state_t *state)
80
- {
81
- return state->size.page;
82
- }
83
-
84
- inline size_t state_node_size(const state_t *state)
85
- {
86
- return state->size.node;
87
- }
88
-
89
- inline size_t state_rect_size(const state_t *state)
90
- {
91
- return state_dims(state) * 2 * sizeof(rtree_coord_t);
92
- }
93
-
94
- inline size_t state_branching_factor(const state_t *state)
95
- {
96
- return state->factor;
97
- }
98
-
99
- inline double state_unit_sphere_volume(const state_t *state)
100
- {
101
- return state->volume;
102
- }
103
-
104
- inline size_t state_bytes(const state_t *state)
105
- {
106
- return (state ? sizeof(state_t) : 0);
107
- }
108
-
109
30
  #ifdef __cplusplus
110
31
  }
111
32
  #endif
@@ -2,13 +2,17 @@
2
2
  #include "config.h"
3
3
  #endif
4
4
 
5
+ #include "private/bsrt.h"
6
+ #include "private/csv.h"
7
+ #include "private/json.h"
8
+ #include "private/node.h"
9
+ #include "private/postscript.h"
10
+ #include "private/search.h"
11
+ #include "private/state.h"
12
+
5
13
  #include "rtree.h"
6
14
  #include "rtree/error.h"
7
15
 
8
- #include "csv.h"
9
- #include "json.h"
10
- #include "bsrt.h"
11
-
12
16
  #include <errno.h>
13
17
  #include <stdlib.h>
14
18
 
@@ -189,6 +193,62 @@ size_t rtree_bytes(const rtree_t *rtree)
189
193
  node_bytes(rtree->state, rtree->root);
190
194
  }
191
195
 
196
+ size_t rtree_dims(const rtree_t *rtree)
197
+ {
198
+ if (rtree == NULL)
199
+ return 0;
200
+ else
201
+ return state_dims(rtree->state);
202
+ }
203
+
204
+ size_t rtree_page_size(const rtree_t *rtree)
205
+ {
206
+ if (rtree == NULL)
207
+ return 0;
208
+ else
209
+ return state_page_size(rtree->state);
210
+ }
211
+
212
+ size_t rtree_node_size(const rtree_t *rtree)
213
+ {
214
+ if (rtree == NULL)
215
+ return 0;
216
+ else
217
+ return state_node_size(rtree->state);
218
+ }
219
+
220
+ size_t rtree_rect_size(const rtree_t *rtree)
221
+ {
222
+ if (rtree == NULL)
223
+ return 0;
224
+ else
225
+ return state_rect_size(rtree->state);
226
+ }
227
+
228
+ size_t rtree_branch_size(const rtree_t *rtree)
229
+ {
230
+ if (rtree == NULL)
231
+ return 0;
232
+ else
233
+ return state_branch_size(rtree->state);
234
+ }
235
+
236
+ size_t rtree_branching_factor(const rtree_t *rtree)
237
+ {
238
+ if (rtree == NULL)
239
+ return 0;
240
+ else
241
+ return state_branching_factor(rtree->state);
242
+ }
243
+
244
+ double rtree_unit_sphere_volume(const rtree_t *rtree)
245
+ {
246
+ if (rtree == NULL)
247
+ return 0;
248
+ else
249
+ return state_unit_sphere_volume(rtree->state);
250
+ }
251
+
192
252
  bool rtree_empty(const rtree_t *rtree)
193
253
  {
194
254
  return
@@ -1,10 +1,5 @@
1
1
  /*
2
2
  rtree.h
3
-
4
- This is the bottom-level "public" header, it does not
5
- include all of the rtree headers, just enough to define
6
- the members of the (atypically) open structure rtree_t.
7
-
8
3
  Copyright (c) J.J. Green 2020
9
4
  */
10
5
 
@@ -29,12 +24,6 @@ typedef uint16_t rtree_height_t;
29
24
  #include <rtree/search.h>
30
25
  #include <rtree/error.h>
31
26
 
32
- struct rtree_t
33
- {
34
- state_t *state;
35
- node_t *root;
36
- };
37
-
38
27
  rtree_t* rtree_alloc(void);
39
28
  int rtree_init(rtree_t*, size_t, state_flags_t);
40
29
  rtree_t* rtree_new(size_t, state_flags_t);
@@ -53,6 +42,13 @@ rtree_t* rtree_bsrt_read(FILE*);
53
42
  int rtree_postscript(const rtree_t*, const rtree_postscript_t*, FILE*);
54
43
  const char* rtree_strerror(int);
55
44
  size_t rtree_bytes(const rtree_t*);
45
+ size_t rtree_dims(const rtree_t*);
46
+ size_t rtree_page_size(const rtree_t*);
47
+ size_t rtree_node_size(const rtree_t*);
48
+ size_t rtree_rect_size(const rtree_t*);
49
+ size_t rtree_branch_size(const rtree_t*);
50
+ size_t rtree_branching_factor(const rtree_t*);
51
+ double rtree_unit_sphere_volume(const rtree_t*);
56
52
  bool rtree_empty(const rtree_t*);
57
53
 
58
54
  #ifdef __cplusplus
@@ -2,11 +2,12 @@
2
2
  #include "config.h"
3
3
  #endif
4
4
 
5
- #include "rtree/search.h"
5
+ #include "private/search.h"
6
+ #include "private/node.h"
7
+ #include "private/branch.h"
8
+ #include "private/rect.h"
6
9
 
7
- #include "rtree/branch.h"
8
10
  #include "rtree/error.h"
9
- #include "rtree/rect.h"
10
11
 
11
12
  typedef struct
12
13
  {
@@ -2,8 +2,17 @@
2
2
  #include "config.h"
3
3
  #endif
4
4
 
5
+ #include "private/bindex.h"
6
+ #include "private/branch.h"
7
+ #include "private/branches.h"
8
+ #include "private/node.h"
9
+ #include "private/split.h"
10
+
11
+ #include "rtree/error.h"
12
+
5
13
  #include <float.h>
6
14
  #include <errno.h>
15
+ #include <stdlib.h>
7
16
 
8
17
  #ifdef HAVE_TGMATH_H
9
18
  #include <tgmath.h>
@@ -11,12 +20,6 @@
11
20
  #include <math.h>
12
21
  #endif
13
22
 
14
- #include "rtree/error.h"
15
- #include "rtree/branches.h"
16
-
17
- #include "split.h"
18
- #include "bindex.h"
19
-
20
23
  typedef struct
21
24
  {
22
25
  bindex_t *choice, *taken;
@@ -1,6 +1,6 @@
1
1
  /* Autogenerated by spvol.py, do not edit */
2
2
 
3
- #include "spvol.h"
3
+ #include "private/spvol.h"
4
4
 
5
5
  int spvol(size_t dim, double *val)
6
6
  {
@@ -2,16 +2,16 @@
2
2
  #include "config.h"
3
3
  #endif
4
4
 
5
- #include "rtree/state.h"
6
- #include "rtree/branch.h"
7
- #include "rtree/node.h"
8
-
9
- #include "page.h"
10
- #include "constants.h"
11
- #include "spvol.h"
5
+ #include "private/branch.h"
6
+ #include "private/constants.h"
7
+ #include "private/node.h"
8
+ #include "private/page.h"
9
+ #include "private/spvol.h"
10
+ #include "private/state.h"
12
11
 
13
12
  #include <errno.h>
14
13
  #include <string.h>
14
+ #include <stdlib.h>
15
15
 
16
16
  #ifdef HAVE_TGMATH_H
17
17
  #include <tgmath.h>
data/ext/rtree/rtree.c CHANGED
@@ -84,7 +84,7 @@ static VALUE rt_add_rect(VALUE self, VALUE id_obj, VALUE coord_obj)
84
84
  id = FIX2ULONG(id_obj);
85
85
  size_t
86
86
  len = RARRAY_LEN(coord_obj),
87
- dim = state_dims(rtree->state);
87
+ dim = rtree_dims(rtree);
88
88
 
89
89
  if (len != 2 * dim)
90
90
  rb_raise(rb_eArgError, "expected array length %zi, got %zi", 2 * dim, len);
@@ -138,7 +138,7 @@ static VALUE rt_update(VALUE self)
138
138
  rtree_t *rtree;
139
139
  TypedData_Get_Struct(self, rtree_t, &rtree_type, rtree);
140
140
 
141
- size_t len = 2 * state_dims(rtree->state);
141
+ size_t len = 2 * rtree_dims(rtree);
142
142
  int err = rtree_update(rtree, update_cb, &len);
143
143
 
144
144
  if (err != 0)
@@ -176,7 +176,7 @@ static VALUE rt_search(VALUE self, VALUE coord_obj)
176
176
 
177
177
  size_t
178
178
  len = RARRAY_LEN(coord_obj),
179
- dim = state_dims(rtree->state);
179
+ dim = rtree_dims(rtree);
180
180
 
181
181
  if (len != 2 * dim)
182
182
  rb_raise(rb_eArgError, "expected array length %zi, got %zi", 2 * dim, len);
@@ -322,48 +322,48 @@ static VALUE rt_clone(VALUE self)
322
322
  return TypedData_Wrap_Struct(CLASS_OF(self), &rtree_type, clone);
323
323
  }
324
324
 
325
- static VALUE state_size_access(VALUE self, size_t (*f)(const state_t*))
325
+ static VALUE state_size_access(VALUE self, size_t (*f)(const rtree_t*))
326
326
  {
327
327
  rtree_t *rtree;
328
328
  TypedData_Get_Struct(self, rtree_t, &rtree_type, rtree);
329
- return INT2NUM(f(rtree->state));
329
+ return INT2NUM(f(rtree));
330
330
  }
331
331
 
332
332
  static VALUE rt_dim(VALUE self)
333
333
  {
334
- return state_size_access(self, state_dims);
334
+ return state_size_access(self, rtree_dims);
335
335
  }
336
336
 
337
337
  static VALUE rt_page_size(VALUE self)
338
338
  {
339
- return state_size_access(self, state_page_size);
339
+ return state_size_access(self, rtree_page_size);
340
340
  }
341
341
 
342
342
  static VALUE rt_node_size(VALUE self)
343
343
  {
344
- return state_size_access(self, state_node_size);
344
+ return state_size_access(self, rtree_node_size);
345
345
  }
346
346
 
347
347
  static VALUE rt_rect_size(VALUE self)
348
348
  {
349
- return state_size_access(self, state_rect_size);
349
+ return state_size_access(self, rtree_rect_size);
350
350
  }
351
351
 
352
352
  static VALUE rt_branch_size(VALUE self)
353
353
  {
354
- return state_size_access(self, state_branch_size);
354
+ return state_size_access(self, rtree_branch_size);
355
355
  }
356
356
 
357
357
  static VALUE rt_branching_factor(VALUE self)
358
358
  {
359
- return state_size_access(self, state_branching_factor);
359
+ return state_size_access(self, rtree_branching_factor);
360
360
  }
361
361
 
362
362
  static VALUE rt_unit_sphere_volume(VALUE self)
363
363
  {
364
364
  rtree_t *rtree;
365
365
  TypedData_Get_Struct(self, rtree_t, &rtree_type, rtree);
366
- return DBL2NUM(state_unit_sphere_volume(rtree->state));
366
+ return DBL2NUM(rtree_unit_sphere_volume(rtree));
367
367
  }
368
368
 
369
369
  static VALUE rt_size(VALUE self)
@@ -398,8 +398,8 @@ static VALUE rt_postscript(VALUE self,
398
398
  rtree_t *rtree;
399
399
  TypedData_Get_Struct(self, rtree_t, &rtree_type, rtree);
400
400
 
401
- style_t *style;
402
- TypedData_Get_Struct(style_obj, style_t, &style_type, style);
401
+ postscript_style_t *style;
402
+ TypedData_Get_Struct(style_obj, postscript_style_t, &style_type, style);
403
403
 
404
404
  Check_Type(io_obj, T_FILE);
405
405
  rb_io_t *io;
@@ -453,13 +453,13 @@ static rb_data_type_t rtree_type = {
453
453
 
454
454
  static void st_dfree(void *p)
455
455
  {
456
- postscript_style_destroy((style_t*)p);
456
+ postscript_style_destroy((postscript_style_t*)p);
457
457
  }
458
458
 
459
459
  static VALUE st_release(VALUE self)
460
460
  {
461
- style_t *style;
462
- TypedData_Get_Struct(self, style_t, &style_type, style);
461
+ postscript_style_t *style;
462
+ TypedData_Get_Struct(self, postscript_style_t, &style_type, style);
463
463
  postscript_style_destroy(style);
464
464
  return self;
465
465
  }
@@ -474,7 +474,7 @@ static VALUE st_json_read(VALUE cls, VALUE io_obj)
474
474
  rb_io_check_readable(io);
475
475
  FILE *fp = rb_io_stdio_file(io);
476
476
 
477
- style_t *style;
477
+ postscript_style_t *style;
478
478
  errno = 0;
479
479
 
480
480
  if ((style = postscript_style_read(fp)) == NULL)
data/lib/rtree.rb CHANGED
@@ -71,10 +71,6 @@ class RTree < RTreeBase
71
71
 
72
72
  # @!visibility private
73
73
  #
74
- # The call to exit! here has a true argument, indicationg success,
75
- # but the value is ignored, so could be omitted; but the sigature
76
- # for exit! is incorrect: https://github.com/ruby/rbs/issues/1298
77
- #
78
74
  def deserialise(string, encoding)
79
75
  raise TypeError unless string.is_a? String
80
76
  rd, wr = IO.pipe(encoding)
@@ -93,7 +89,7 @@ class RTree < RTreeBase
93
89
  wr.write(string)
94
90
  ensure
95
91
  wr.close
96
- exit! true
92
+ exit!
97
93
  end
98
94
  end
99
95
  result
@@ -101,8 +97,6 @@ class RTree < RTreeBase
101
97
 
102
98
  # @!visibility private
103
99
  #
104
- # See note above on argument to exit!
105
- #
106
100
  def serialise(encoding)
107
101
  rd, wr = IO.pipe(encoding)
108
102
  if fork then
@@ -120,7 +114,7 @@ class RTree < RTreeBase
120
114
  yield(wr)
121
115
  ensure
122
116
  wr.close
123
- exit! true
117
+ exit!
124
118
  end
125
119
  end
126
120
  result
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: librtree
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - J.J. Green
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-06 00:00:00.000000000 Z
11
+ date: 2023-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -114,14 +114,28 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '1.3'
117
+ version: '1.4'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '1.3'
124
+ version: '1.4'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rbs
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '3.2'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '3.2'
125
139
  description: |
126
140
  A Ruby extension implementing the R-tree spatial-index of
127
141
  Guttman-Green.
@@ -137,48 +151,53 @@ files:
137
151
  - ext/rtree/extconf.rb
138
152
  - ext/rtree/lib/README.md
139
153
  - ext/rtree/lib/bindex.c
140
- - ext/rtree/lib/bindex.h
141
- - ext/rtree/lib/bounds.h
142
154
  - ext/rtree/lib/branch.c
143
155
  - ext/rtree/lib/branches.c
144
156
  - ext/rtree/lib/bsrt.c
145
- - ext/rtree/lib/bsrt.h
146
- - ext/rtree/lib/constants.h
147
157
  - ext/rtree/lib/csv.c
148
- - ext/rtree/lib/csv.h
149
- - ext/rtree/lib/endianness.h
150
158
  - ext/rtree/lib/error.c
151
159
  - ext/rtree/lib/json.c
152
- - ext/rtree/lib/json.h
153
160
  - ext/rtree/lib/mk/Hdr.mk
154
161
  - ext/rtree/lib/mk/MakeDepend
155
162
  - ext/rtree/lib/mk/Obj.mk
156
163
  - ext/rtree/lib/node.c
157
164
  - ext/rtree/lib/package.c
158
165
  - ext/rtree/lib/page.c
159
- - ext/rtree/lib/page.h
160
166
  - ext/rtree/lib/postscript.c
167
+ - ext/rtree/lib/private/bindex.h
168
+ - ext/rtree/lib/private/bounds.h
169
+ - ext/rtree/lib/private/branch.h
170
+ - ext/rtree/lib/private/branches.h
171
+ - ext/rtree/lib/private/bsrt.h
172
+ - ext/rtree/lib/private/constants.h
173
+ - ext/rtree/lib/private/csv.h
174
+ - ext/rtree/lib/private/endianness.h
175
+ - ext/rtree/lib/private/json.h
176
+ - ext/rtree/lib/private/node.h
177
+ - ext/rtree/lib/private/page.h
178
+ - ext/rtree/lib/private/postscript.h
179
+ - ext/rtree/lib/private/rect.h
180
+ - ext/rtree/lib/private/rectf.h
181
+ - ext/rtree/lib/private/rtree.h
182
+ - ext/rtree/lib/private/search.h
183
+ - ext/rtree/lib/private/split.h
184
+ - ext/rtree/lib/private/spvol.h
185
+ - ext/rtree/lib/private/state.h
161
186
  - ext/rtree/lib/rect.c
162
187
  - ext/rtree/lib/rectf.c
163
188
  - ext/rtree/lib/rtree-base.c
164
189
  - ext/rtree/lib/rtree.h
165
- - ext/rtree/lib/rtree/branch.h
166
- - ext/rtree/lib/rtree/branches.h
167
190
  - ext/rtree/lib/rtree/error.h
168
191
  - ext/rtree/lib/rtree/extent.h
169
192
  - ext/rtree/lib/rtree/node.h
170
193
  - ext/rtree/lib/rtree/package.h
171
194
  - ext/rtree/lib/rtree/postscript.h
172
- - ext/rtree/lib/rtree/rect.h
173
- - ext/rtree/lib/rtree/rectf.h
174
195
  - ext/rtree/lib/rtree/search.h
175
196
  - ext/rtree/lib/rtree/state.h
176
197
  - ext/rtree/lib/rtree/types.h
177
198
  - ext/rtree/lib/search.c
178
199
  - ext/rtree/lib/split.c
179
- - ext/rtree/lib/split.h
180
200
  - ext/rtree/lib/spvol.c
181
- - ext/rtree/lib/spvol.h
182
201
  - ext/rtree/lib/state.c
183
202
  - ext/rtree/rtree.c
184
203
  - lib/rtree.rb
@@ -203,7 +222,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
203
222
  version: '0'
204
223
  requirements:
205
224
  - The Jansson library
206
- rubygems_version: 3.1.6
225
+ rubygems_version: 3.3.7
207
226
  signing_key:
208
227
  specification_version: 4
209
228
  summary: R-tree spatial index
data/ext/rtree/lib/page.h DELETED
@@ -1,13 +0,0 @@
1
- /*
2
- page.h
3
- Copyright (c) J.J. Green 2019
4
- */
5
-
6
- #ifndef PAGE_H
7
- #define PAGE_H
8
-
9
- #include <stdlib.h>
10
-
11
- int page_size(size_t*);
12
-
13
- #endif
@@ -1,15 +0,0 @@
1
- /*
2
- split.h
3
- Copyright (c) J.J. Green 2020
4
- */
5
-
6
- #ifndef SPLIT_H
7
- #define SPLIT_H
8
-
9
- #include <rtree/state.h>
10
- #include <rtree/branch.h>
11
- #include <rtree/node.h>
12
-
13
- node_t* split_node(const state_t*, node_t*, branch_t*);
14
-
15
- #endif