summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-09 12:00:04 +0000
committernari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-09 12:00:04 +0000
commitbaf3cf128e451c3bf099bc68ec7918973d9a81f6 (patch)
tree0fb050976d759b2b40767de0762867883b720d94
parentc3fdc2cfb0e4b2ede488a36fc224b9e261c23ba5 (diff)
* ext/objspace/object_tracing.c: use declarations in internal.h.
* ext/objspace/objspace.c: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--ext/objspace/object_tracing.c3
-rw-r--r--ext/objspace/objspace.c2
3 files changed, 7 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 96cb2f7858..168c107e92 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Sat Nov 9 20:56:12 2013 Narihiro Nakamura <authornari@gmail.com>
+
+ * ext/objspace/object_tracing.c: use declarations in internal.h.
+
+ * ext/objspace/objspace.c: ditto
+
Sat Nov 9 20:32:59 2013 Tanaka Akira <akr@fsij.org>
* test/objspace/test_objspace.rb (test_dump_all): Make the test string
diff --git a/ext/objspace/object_tracing.c b/ext/objspace/object_tracing.c
index b8fa3edf4d..2475623410 100644
--- a/ext/objspace/object_tracing.c
+++ b/ext/objspace/object_tracing.c
@@ -16,8 +16,7 @@
#include "ruby/ruby.h"
#include "ruby/debug.h"
#include "objspace.h"
-
-size_t rb_gc_count(void); /* from gc.c */
+#include "internal.h"
struct traceobj_arg {
int running;
diff --git a/ext/objspace/objspace.c b/ext/objspace/objspace.c
index 6de5d222ac..f9fa833c99 100644
--- a/ext/objspace/objspace.c
+++ b/ext/objspace/objspace.c
@@ -20,8 +20,6 @@
#include "gc.h"
#include "internal.h"
-size_t rb_obj_memsize_of(VALUE);
-
/*
* call-seq:
* ObjectSpace.memsize_of(obj) -> Integer