summaryrefslogtreecommitdiff
path: root/ext/objspace
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-14 06:11:03 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-14 06:11:03 +0000
commit23b1a3d3fa8ec7d5e6f4d9f89540207682502c66 (patch)
treec85bfd7c063619126e8dcac10cd41c6064370ae7 /ext/objspace
parenta33fdc4ec0e8110a7fe3581e1ee37b871efbdce3 (diff)
* gc.h (rb_objspace_each_objects): used in objspace.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/objspace')
-rw-r--r--ext/objspace/objspace.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ext/objspace/objspace.c b/ext/objspace/objspace.c
index 817380f..32b5b1e 100644
--- a/ext/objspace/objspace.c
+++ b/ext/objspace/objspace.c
@@ -28,6 +28,7 @@
#include <ruby/io.h>
#include <ruby/re.h>
#include <../../node.h>
+#include <../../gc.h>
size_t rb_str_memsize(VALUE);
size_t rb_ary_memsize(VALUE);
@@ -36,10 +37,6 @@ size_t onig_memsize(regex_t *);
size_t rb_generic_ivar_memsize(VALUE);
size_t rb_objspace_data_type_memsize(VALUE obj);
-void rb_objspace_each_objects(
- int (*callback)(void *start, void *end, size_t stride, void *data),
- void *data);
-
static size_t
memsize_of(VALUE obj)
{