oj 3.9.1 → 3.16.11

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 (171) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +1452 -0
  3. data/README.md +21 -6
  4. data/RELEASE_NOTES.md +61 -0
  5. data/ext/oj/buf.h +50 -68
  6. data/ext/oj/cache.c +329 -0
  7. data/ext/oj/cache.h +22 -0
  8. data/ext/oj/cache8.c +60 -62
  9. data/ext/oj/cache8.h +9 -36
  10. data/ext/oj/circarray.c +38 -42
  11. data/ext/oj/circarray.h +12 -13
  12. data/ext/oj/code.c +158 -179
  13. data/ext/oj/code.h +20 -22
  14. data/ext/oj/compat.c +145 -205
  15. data/ext/oj/custom.c +740 -880
  16. data/ext/oj/debug.c +126 -0
  17. data/ext/oj/dump.c +1145 -844
  18. data/ext/oj/dump.h +71 -57
  19. data/ext/oj/dump_compat.c +575 -655
  20. data/ext/oj/dump_leaf.c +96 -186
  21. data/ext/oj/dump_object.c +533 -660
  22. data/ext/oj/dump_strict.c +306 -340
  23. data/ext/oj/encode.h +4 -33
  24. data/ext/oj/encoder.c +43 -0
  25. data/ext/oj/err.c +28 -28
  26. data/ext/oj/err.h +39 -42
  27. data/ext/oj/extconf.rb +28 -7
  28. data/ext/oj/fast.c +1052 -1113
  29. data/ext/oj/intern.c +313 -0
  30. data/ext/oj/intern.h +22 -0
  31. data/ext/oj/mem.c +318 -0
  32. data/ext/oj/mem.h +53 -0
  33. data/ext/oj/mimic_json.c +471 -430
  34. data/ext/oj/object.c +532 -580
  35. data/ext/oj/odd.c +156 -142
  36. data/ext/oj/odd.h +25 -26
  37. data/ext/oj/oj.c +1346 -961
  38. data/ext/oj/oj.h +307 -290
  39. data/ext/oj/parse.c +954 -858
  40. data/ext/oj/parse.h +74 -72
  41. data/ext/oj/parser.c +1600 -0
  42. data/ext/oj/parser.h +103 -0
  43. data/ext/oj/rails.c +819 -836
  44. data/ext/oj/rails.h +8 -11
  45. data/ext/oj/reader.c +136 -147
  46. data/ext/oj/reader.h +69 -83
  47. data/ext/oj/resolve.c +41 -63
  48. data/ext/oj/resolve.h +4 -6
  49. data/ext/oj/rxclass.c +69 -72
  50. data/ext/oj/rxclass.h +12 -13
  51. data/ext/oj/saj.c +440 -485
  52. data/ext/oj/saj2.c +584 -0
  53. data/ext/oj/saj2.h +23 -0
  54. data/ext/oj/scp.c +79 -118
  55. data/ext/oj/simd.h +10 -0
  56. data/ext/oj/sparse.c +739 -709
  57. data/ext/oj/stream_writer.c +141 -175
  58. data/ext/oj/strict.c +103 -128
  59. data/ext/oj/string_writer.c +244 -261
  60. data/ext/oj/trace.c +34 -41
  61. data/ext/oj/trace.h +42 -15
  62. data/ext/oj/usual.c +1218 -0
  63. data/ext/oj/usual.h +69 -0
  64. data/ext/oj/util.c +107 -107
  65. data/ext/oj/util.h +4 -3
  66. data/ext/oj/val_stack.c +61 -78
  67. data/ext/oj/val_stack.h +80 -114
  68. data/ext/oj/validate.c +46 -0
  69. data/ext/oj/wab.c +316 -361
  70. data/lib/oj/active_support_helper.rb +1 -3
  71. data/lib/oj/bag.rb +8 -1
  72. data/lib/oj/easy_hash.rb +9 -9
  73. data/lib/oj/error.rb +1 -2
  74. data/lib/oj/json.rb +162 -150
  75. data/lib/oj/mimic.rb +54 -20
  76. data/lib/oj/saj.rb +20 -6
  77. data/lib/oj/schandler.rb +5 -4
  78. data/lib/oj/state.rb +12 -8
  79. data/lib/oj/version.rb +1 -2
  80. data/lib/oj.rb +2 -8
  81. data/pages/Compatibility.md +1 -1
  82. data/pages/Encoding.md +1 -1
  83. data/pages/InstallOptions.md +20 -0
  84. data/pages/JsonGem.md +15 -0
  85. data/pages/Modes.md +9 -3
  86. data/pages/Options.md +62 -12
  87. data/pages/Parser.md +309 -0
  88. data/pages/Rails.md +73 -22
  89. metadata +68 -192
  90. data/ext/oj/hash.c +0 -163
  91. data/ext/oj/hash.h +0 -46
  92. data/ext/oj/hash_test.c +0 -512
  93. data/test/_test_active.rb +0 -76
  94. data/test/_test_active_mimic.rb +0 -96
  95. data/test/_test_mimic_rails.rb +0 -126
  96. data/test/activerecord/result_test.rb +0 -27
  97. data/test/activesupport4/decoding_test.rb +0 -108
  98. data/test/activesupport4/encoding_test.rb +0 -531
  99. data/test/activesupport4/test_helper.rb +0 -41
  100. data/test/activesupport5/decoding_test.rb +0 -125
  101. data/test/activesupport5/encoding_test.rb +0 -485
  102. data/test/activesupport5/encoding_test_cases.rb +0 -90
  103. data/test/activesupport5/test_helper.rb +0 -50
  104. data/test/activesupport5/time_zone_test_helpers.rb +0 -24
  105. data/test/bar.rb +0 -25
  106. data/test/files.rb +0 -29
  107. data/test/foo.rb +0 -21
  108. data/test/helper.rb +0 -26
  109. data/test/isolated/shared.rb +0 -308
  110. data/test/isolated/test_mimic_after.rb +0 -13
  111. data/test/isolated/test_mimic_alone.rb +0 -12
  112. data/test/isolated/test_mimic_as_json.rb +0 -45
  113. data/test/isolated/test_mimic_before.rb +0 -13
  114. data/test/isolated/test_mimic_define.rb +0 -28
  115. data/test/isolated/test_mimic_rails_after.rb +0 -22
  116. data/test/isolated/test_mimic_rails_before.rb +0 -21
  117. data/test/isolated/test_mimic_redefine.rb +0 -15
  118. data/test/json_gem/json_addition_test.rb +0 -216
  119. data/test/json_gem/json_common_interface_test.rb +0 -148
  120. data/test/json_gem/json_encoding_test.rb +0 -107
  121. data/test/json_gem/json_ext_parser_test.rb +0 -20
  122. data/test/json_gem/json_fixtures_test.rb +0 -35
  123. data/test/json_gem/json_generator_test.rb +0 -383
  124. data/test/json_gem/json_generic_object_test.rb +0 -90
  125. data/test/json_gem/json_parser_test.rb +0 -470
  126. data/test/json_gem/json_string_matching_test.rb +0 -42
  127. data/test/json_gem/test_helper.rb +0 -18
  128. data/test/perf.rb +0 -107
  129. data/test/perf_compat.rb +0 -130
  130. data/test/perf_fast.rb +0 -164
  131. data/test/perf_file.rb +0 -64
  132. data/test/perf_object.rb +0 -138
  133. data/test/perf_saj.rb +0 -109
  134. data/test/perf_scp.rb +0 -151
  135. data/test/perf_simple.rb +0 -287
  136. data/test/perf_strict.rb +0 -145
  137. data/test/perf_wab.rb +0 -131
  138. data/test/sample/change.rb +0 -14
  139. data/test/sample/dir.rb +0 -19
  140. data/test/sample/doc.rb +0 -36
  141. data/test/sample/file.rb +0 -48
  142. data/test/sample/group.rb +0 -16
  143. data/test/sample/hasprops.rb +0 -16
  144. data/test/sample/layer.rb +0 -12
  145. data/test/sample/line.rb +0 -20
  146. data/test/sample/oval.rb +0 -10
  147. data/test/sample/rect.rb +0 -10
  148. data/test/sample/shape.rb +0 -35
  149. data/test/sample/text.rb +0 -20
  150. data/test/sample.rb +0 -54
  151. data/test/sample_json.rb +0 -37
  152. data/test/test_compat.rb +0 -509
  153. data/test/test_custom.rb +0 -503
  154. data/test/test_debian.rb +0 -53
  155. data/test/test_fast.rb +0 -470
  156. data/test/test_file.rb +0 -239
  157. data/test/test_gc.rb +0 -49
  158. data/test/test_hash.rb +0 -29
  159. data/test/test_integer_range.rb +0 -73
  160. data/test/test_null.rb +0 -376
  161. data/test/test_object.rb +0 -1018
  162. data/test/test_saj.rb +0 -186
  163. data/test/test_scp.rb +0 -433
  164. data/test/test_strict.rb +0 -410
  165. data/test/test_various.rb +0 -741
  166. data/test/test_wab.rb +0 -307
  167. data/test/test_writer.rb +0 -380
  168. data/test/tests.rb +0 -24
  169. data/test/tests_mimic.rb +0 -14
  170. data/test/tests_mimic_addition.rb +0 -7
  171. data/test/zoo.rb +0 -13
data/ext/oj/cache8.c CHANGED
@@ -1,107 +1,105 @@
1
+ // Copyright (c) 2011 Peter Ohler. All rights reserved.
2
+ // Licensed under the MIT License. See LICENSE file in the project root for license details.
3
+
4
+ #include "cache8.h"
1
5
 
2
- #include <stdlib.h>
3
6
  #include <errno.h>
7
+ #include <stdarg.h>
4
8
  #include <stdio.h>
9
+ #include <stdlib.h>
5
10
  #include <string.h>
6
- #include <stdarg.h>
7
11
 
12
+ #include "mem.h"
8
13
  #include "ruby.h"
9
- #include "cache8.h"
10
14
 
11
- #define BITS 4
12
- #define MASK 0x000000000000000FULL
13
- #define SLOT_CNT 16
14
- #define DEPTH 16
15
+ #define BITS 4
16
+ #define MASK 0x000000000000000FULL
17
+ #define SLOT_CNT 16
18
+ #define DEPTH 16
15
19
 
16
20
  typedef union {
17
- struct _cache8 *child;
18
- slot_t value;
21
+ struct _cache8 *child;
22
+ slot_t value;
19
23
  } Bucket;
20
24
 
21
25
  struct _cache8 {
22
- Bucket buckets[SLOT_CNT];
26
+ Bucket buckets[SLOT_CNT];
23
27
  };
24
28
 
25
- static void cache8_delete(Cache8 cache, int depth);
26
- static void slot_print(Cache8 cache, sid_t key, unsigned int depth);
29
+ static void cache8_delete(Cache8 cache, int depth);
30
+ static void slot_print(Cache8 cache, sid_t key, unsigned int depth);
27
31
 
28
- void
29
- oj_cache8_new(Cache8 *cache) {
30
- Bucket *b;
31
- int i;
32
-
33
- *cache = ALLOC(struct _cache8);
32
+ void oj_cache8_new(Cache8 *cache) {
33
+ Bucket *b;
34
+ int i;
35
+
36
+ *cache = OJ_R_ALLOC(struct _cache8);
34
37
  for (i = SLOT_CNT, b = (*cache)->buckets; 0 < i; i--, b++) {
35
- b->value = 0;
38
+ b->value = 0;
36
39
  }
37
40
  }
38
41
 
39
- void
40
- oj_cache8_delete(Cache8 cache) {
42
+ void oj_cache8_delete(Cache8 cache) {
41
43
  cache8_delete(cache, 0);
42
44
  }
43
45
 
44
- static void
45
- cache8_delete(Cache8 cache, int depth) {
46
- Bucket *b;
47
- unsigned int i;
46
+ static void cache8_delete(Cache8 cache, int depth) {
47
+ Bucket *b;
48
+ unsigned int i;
48
49
 
49
50
  for (i = 0, b = cache->buckets; i < SLOT_CNT; i++, b++) {
50
- if (0 != b->child) {
51
- if (DEPTH - 1 != depth) {
52
- cache8_delete(b->child, depth + 1);
53
- }
54
- }
51
+ if (0 != b->child) {
52
+ if (DEPTH - 1 != depth) {
53
+ cache8_delete(b->child, depth + 1);
54
+ }
55
+ }
55
56
  }
56
- xfree(cache);
57
+ OJ_R_FREE(cache);
57
58
  }
58
59
 
59
- slot_t
60
- oj_cache8_get(Cache8 cache, sid_t key, slot_t **slot) {
61
- Bucket *b;
62
- int i;
63
- sid_t k8 = (sid_t)key;
64
- sid_t k;
65
-
60
+ slot_t oj_cache8_get(Cache8 cache, sid_t key, slot_t **slot) {
61
+ Bucket *b;
62
+ int i;
63
+ sid_t k8 = (sid_t)key;
64
+ sid_t k;
65
+
66
66
  for (i = 64 - BITS; 0 < i; i -= BITS) {
67
- k = (k8 >> i) & MASK;
68
- b = cache->buckets + k;
69
- if (0 == b->child) {
70
- oj_cache8_new(&b->child);
71
- }
72
- cache = b->child;
67
+ k = (k8 >> i) & MASK;
68
+ b = cache->buckets + k;
69
+ if (0 == b->child) {
70
+ oj_cache8_new(&b->child);
71
+ }
72
+ cache = b->child;
73
73
  }
74
74
  *slot = &(cache->buckets + (k8 & MASK))->value;
75
75
 
76
76
  return **slot;
77
77
  }
78
78
 
79
- void
80
- oj_cache8_print(Cache8 cache) {
79
+ void oj_cache8_print(Cache8 cache) {
81
80
  /*printf("-------------------------------------------\n"); */
82
81
  slot_print(cache, 0, 0);
83
82
  }
84
83
 
85
- static void
86
- slot_print(Cache8 c, sid_t key, unsigned int depth) {
87
- Bucket *b;
88
- unsigned int i;
89
- sid_t k8 = (sid_t)key;
90
- sid_t k;
84
+ static void slot_print(Cache8 c, sid_t key, unsigned int depth) {
85
+ Bucket *b;
86
+ unsigned int i;
87
+ sid_t k8 = (sid_t)key;
88
+ sid_t k;
91
89
 
92
90
  for (i = 0, b = c->buckets; i < SLOT_CNT; i++, b++) {
93
- if (0 != b->child) {
94
- k = (k8 << BITS) | i;
95
- /*printf("*** key: 0x%016llx depth: %u i: %u\n", k, depth, i); */
96
- if (DEPTH - 1 == depth) {
91
+ if (0 != b->child) {
92
+ k = (k8 << BITS) | i;
93
+ /*printf("*** key: 0x%016llx depth: %u i: %u\n", k, depth, i); */
94
+ if (DEPTH - 1 == depth) {
97
95
  #if IS_WINDOWS
98
- printf("0x%016lx: %4lu\n", (long unsigned int)k, (long unsigned int)b->value);
96
+ printf("0x%016lx: %4lu\n", (long unsigned int)k, (long unsigned int)b->value);
99
97
  #else
100
- printf("0x%016llx: %4llu\n", (long long unsigned int)k, (long long unsigned int)b->value);
98
+ printf("0x%016llx: %4llu\n", (long long unsigned int)k, (long long unsigned int)b->value);
101
99
  #endif
102
- } else {
103
- slot_print(b->child, k, depth + 1);
104
- }
105
- }
100
+ } else {
101
+ slot_print(b->child, k, depth + 1);
102
+ }
103
+ }
106
104
  }
107
105
  }
data/ext/oj/cache8.h CHANGED
@@ -1,32 +1,5 @@
1
- /* cache8.h
2
- * Copyright (c) 2011, Peter Ohler
3
- * All rights reserved.
4
- *
5
- * Redistribution and use in source and binary forms, with or without
6
- * modification, are permitted provided that the following conditions are met:
7
- *
8
- * - Redistributions of source code must retain the above copyright notice, this
9
- * list of conditions and the following disclaimer.
10
- *
11
- * - Redistributions in binary form must reproduce the above copyright notice,
12
- * this list of conditions and the following disclaimer in the documentation
13
- * and/or other materials provided with the distribution.
14
- *
15
- * - Neither the name of Peter Ohler nor the names of its contributors may be
16
- * used to endorse or promote products derived from this software without
17
- * specific prior written permission.
18
- *
19
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
- */
1
+ // Copyright (c) 2011 Peter Ohler. All rights reserved.
2
+ // Licensed under the MIT License. See LICENSE file in the project root for license details.
30
3
 
31
4
  #ifndef OJ_CACHE8_H
32
5
  #define OJ_CACHE8_H
@@ -34,15 +7,15 @@
34
7
  #include "ruby.h"
35
8
  #include "stdint.h"
36
9
 
37
- typedef struct _cache8 *Cache8;
38
- typedef uint64_t slot_t;
39
- typedef uint64_t sid_t;
10
+ typedef struct _cache8 *Cache8;
11
+ typedef uint64_t slot_t;
12
+ typedef uint64_t sid_t;
40
13
 
41
- extern void oj_cache8_new(Cache8 *cache);
42
- extern void oj_cache8_delete(Cache8 cache);
14
+ extern void oj_cache8_new(Cache8 *cache);
15
+ extern void oj_cache8_delete(Cache8 cache);
43
16
 
44
- extern slot_t oj_cache8_get(Cache8 cache, sid_t key, slot_t **slot);
17
+ extern slot_t oj_cache8_get(Cache8 cache, sid_t key, slot_t **slot);
45
18
 
46
- extern void oj_cache8_print(Cache8 cache);
19
+ extern void oj_cache8_print(Cache8 cache);
47
20
 
48
21
  #endif /* OJ_CACHE8_H */
data/ext/oj/circarray.c CHANGED
@@ -1,68 +1,64 @@
1
- /* circarray.c
2
- * Copyright (c) 2012, Peter Ohler
3
- * All rights reserved.
4
- */
1
+ // Copyright (c) 2012 Peter Ohler. All rights reserved.
2
+ // Licensed under the MIT License. See LICENSE file in the project root for license details.
5
3
 
6
4
  #include "circarray.h"
7
5
 
8
- CircArray
9
- oj_circ_array_new() {
10
- CircArray ca;
11
-
12
- if (0 == (ca = ALLOC(struct _circArray))) {
13
- rb_raise(rb_eNoMemError, "not enough memory\n");
6
+ #include "mem.h"
7
+
8
+ CircArray oj_circ_array_new(void) {
9
+ CircArray ca;
10
+
11
+ if (0 == (ca = OJ_R_ALLOC(struct _circArray))) {
12
+ rb_raise(rb_eNoMemError, "not enough memory\n");
14
13
  }
15
14
  ca->objs = ca->obj_array;
16
15
  ca->size = sizeof(ca->obj_array) / sizeof(VALUE);
17
- ca->cnt = 0;
18
-
16
+ ca->cnt = 0;
17
+
19
18
  return ca;
20
19
  }
21
20
 
22
- void
23
- oj_circ_array_free(CircArray ca) {
21
+ void oj_circ_array_free(CircArray ca) {
24
22
  if (ca->objs != ca->obj_array) {
25
- xfree(ca->objs);
23
+ OJ_R_FREE(ca->objs);
26
24
  }
27
- xfree(ca);
25
+ OJ_R_FREE(ca);
28
26
  }
29
27
 
30
- void
31
- oj_circ_array_set(CircArray ca, VALUE obj, unsigned long id) {
28
+ void oj_circ_array_set(CircArray ca, VALUE obj, unsigned long id) {
32
29
  if (0 < id && 0 != ca) {
33
- unsigned long i;
30
+ unsigned long i;
34
31
 
35
- if (ca->size < id) {
36
- unsigned long cnt = id + 512;
32
+ if (ca->size < id) {
33
+ unsigned long cnt = id + 512;
37
34
 
38
- if (ca->objs == ca->obj_array) {
39
- if (0 == (ca->objs = ALLOC_N(VALUE, cnt))) {
40
- rb_raise(rb_eNoMemError, "not enough memory\n");
41
- }
42
- memcpy(ca->objs, ca->obj_array, sizeof(VALUE) * ca->cnt);
43
- } else {
44
- REALLOC_N(ca->objs, VALUE, cnt);
45
- }
46
- ca->size = cnt;
47
- }
48
- id--;
49
- for (i = ca->cnt; i < id; i++) {
50
- ca->objs[i] = Qnil;
51
- }
52
- ca->objs[id] = obj;
53
- if (ca->cnt <= id) {
54
- ca->cnt = id + 1;
55
- }
35
+ if (ca->objs == ca->obj_array) {
36
+ if (0 == (ca->objs = OJ_R_ALLOC_N(VALUE, cnt))) {
37
+ rb_raise(rb_eNoMemError, "not enough memory\n");
38
+ }
39
+ memcpy(ca->objs, ca->obj_array, sizeof(VALUE) * ca->cnt);
40
+ } else {
41
+ OJ_R_REALLOC_N(ca->objs, VALUE, cnt);
42
+ }
43
+ ca->size = cnt;
44
+ }
45
+ id--;
46
+ for (i = ca->cnt; i < id; i++) {
47
+ ca->objs[i] = Qnil;
48
+ }
49
+ ca->objs[id] = obj;
50
+ if (ca->cnt <= id) {
51
+ ca->cnt = id + 1;
52
+ }
56
53
  }
57
54
  }
58
55
 
59
56
  VALUE
60
57
  oj_circ_array_get(CircArray ca, unsigned long id) {
61
- VALUE obj = Qnil;
58
+ VALUE obj = Qnil;
62
59
 
63
60
  if (id <= ca->cnt && 0 != ca) {
64
- obj = ca->objs[id - 1];
61
+ obj = ca->objs[id - 1];
65
62
  }
66
63
  return obj;
67
64
  }
68
-
data/ext/oj/circarray.h CHANGED
@@ -1,7 +1,6 @@
1
- /* circarray.h
2
- * Copyright (c) 2012, Peter Ohler
3
- * All rights reserved.
4
- */
1
+ // Copyright (c) 2012 Peter Ohler. All rights reserved.
2
+ // Licensed under the MIT License. See LICENSE file in the project root for
3
+ // license details.
5
4
 
6
5
  #ifndef OJ_CIRCARRAY_H
7
6
  #define OJ_CIRCARRAY_H
@@ -9,15 +8,15 @@
9
8
  #include "ruby.h"
10
9
 
11
10
  typedef struct _circArray {
12
- VALUE obj_array[1024];
13
- VALUE *objs;
14
- unsigned long size; // allocated size or initial array size
15
- unsigned long cnt;
16
- } *CircArray;
11
+ VALUE obj_array[1024];
12
+ VALUE* objs;
13
+ unsigned long size; // allocated size or initial array size
14
+ unsigned long cnt;
15
+ }* CircArray;
17
16
 
18
- extern CircArray oj_circ_array_new(void);
19
- extern void oj_circ_array_free(CircArray ca);
20
- extern void oj_circ_array_set(CircArray ca, VALUE obj, unsigned long id);
21
- extern VALUE oj_circ_array_get(CircArray ca, unsigned long id);
17
+ extern CircArray oj_circ_array_new(void);
18
+ extern void oj_circ_array_free(CircArray ca);
19
+ extern void oj_circ_array_set(CircArray ca, VALUE obj, unsigned long id);
20
+ extern VALUE oj_circ_array_get(CircArray ca, unsigned long id);
22
21
 
23
22
  #endif /* OJ_CIRCARRAY_H */