ruby-changes:5347
From: mame <ko1@a...>
Date: Thu, 5 Jun 2008 23:42:01 +0900 (JST)
Subject: [ruby-changes:5347] Ruby:r16848 (trunk): * gc.c (rb_objspace_alloc): this function is needed only when
mame 2008-06-05 23:41:41 +0900 (Thu, 05 Jun 2008)
New Revision: 16848
Modified files:
trunk/ChangeLog
trunk/gc.c
trunk/vm.c
Log:
* gc.c (rb_objspace_alloc): this function is needed only when
ENABLE_VM_OBJSPACE macro is defined.
* vm.c: ditto.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=16848&r2=16847&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/gc.c?r1=16848&r2=16847&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/vm.c?r1=16848&r2=16847&diff_format=u
Index: ChangeLog
===================================================================
--- ChangeLog (revision 16847)
+++ ChangeLog (revision 16848)
@@ -1,3 +1,10 @@
+Thu Jun 5 23:40:08 2008 Yusuke Endoh <mame@t...>
+
+ * gc.c (rb_objspace_alloc): this function is needed only when
+ ENABLE_VM_OBJSPACE macro is defined.
+
+ * vm.c: ditto.
+
Thu Jun 5 23:31:21 2008 Yusuke Endoh <mame@t...>
* test/stringio/test_stringio.rb: add tests to achieve over 95% test
Index: gc.c
===================================================================
--- gc.c (revision 16847)
+++ gc.c (revision 16848)
@@ -201,6 +201,7 @@
#define mark_stack_overflow objspace->markstack.overflow
#define global_List objspace->global_list
+#if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE
rb_objspace_t *
rb_objspace_alloc(void)
{
@@ -210,6 +211,7 @@
return objspace;
}
+#endif
/* tiny heap size */
/* 32KB */
Index: vm.c
===================================================================
--- vm.c (revision 16847)
+++ vm.c (revision 16848)
@@ -1728,7 +1728,9 @@
vm_init_redefined_flag();
}
+#if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE
struct rb_objspace *rb_objspace_alloc(void);
+#endif
void
Init_BareVM(void)
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/