ruby-changes:29332
From: zzak <ko1@a...>
Date: Tue, 18 Jun 2013 21:59:14 +0900 (JST)
Subject: [ruby-changes:29332] zzak:r41384 (trunk): * gc.c: Rename rb_mObSpace -> rb_mObjSpace
zzak 2013-06-18 21:59:02 +0900 (Tue, 18 Jun 2013) New Revision: 41384 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41384 Log: * gc.c: Rename rb_mObSpace -> rb_mObjSpace Modified files: trunk/ChangeLog trunk/gc.c Index: ChangeLog =================================================================== --- ChangeLog (revision 41383) +++ ChangeLog (revision 41384) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Tue Jun 18 21:58:17 2013 Zachary Scott <zachary@z...> + + * gc.c: Rename rb_mObSpace -> rb_mObjSpace + Tue Jun 18 20:55:05 2013 Zachary Scott <zachary@z...> * ext/objspace/objspace.c: Document ObjectSpace::InternalObjectWrapper. Index: gc.c =================================================================== --- gc.c (revision 41383) +++ gc.c (revision 41384) @@ -5415,7 +5415,7 @@ rb_gcdebug_sentinel(VALUE obj, const cha https://github.com/ruby/ruby/blob/trunk/gc.c#L5415 void Init_GC(void) { - VALUE rb_mObSpace; + VALUE rb_mObjSpace; VALUE rb_mProfiler; rb_mGC = rb_define_module("GC"); @@ -5438,14 +5438,14 @@ Init_GC(void) https://github.com/ruby/ruby/blob/trunk/gc.c#L5438 rb_define_singleton_method(rb_mProfiler, "report", gc_profile_report, -1); rb_define_singleton_method(rb_mProfiler, "total_time", gc_profile_total_time, 0); - rb_mObSpace = rb_define_module("ObjectSpace"); - rb_define_module_function(rb_mObSpace, "each_object", os_each_obj, -1); - rb_define_module_function(rb_mObSpace, "garbage_collect", rb_gc_start, 0); + rb_mObjSpace = rb_define_module("ObjectSpace"); + rb_define_module_function(rb_mObjSpace, "each_object", os_each_obj, -1); + rb_define_module_function(rb_mObjSpace, "garbage_collect", rb_gc_start, 0); - rb_define_module_function(rb_mObSpace, "define_finalizer", define_final, -1); - rb_define_module_function(rb_mObSpace, "undefine_finalizer", undefine_final, 1); + rb_define_module_function(rb_mObjSpace, "define_finalizer", define_final, -1); + rb_define_module_function(rb_mObjSpace, "undefine_finalizer", undefine_final, 1); - rb_define_module_function(rb_mObSpace, "_id2ref", id2ref, 1); + rb_define_module_function(rb_mObjSpace, "_id2ref", id2ref, 1); nomem_error = rb_exc_new3(rb_eNoMemError, rb_obj_freeze(rb_str_new2("failed to allocate memory"))); @@ -5455,10 +5455,10 @@ Init_GC(void) https://github.com/ruby/ruby/blob/trunk/gc.c#L5455 rb_define_method(rb_cBasicObject, "__id__", rb_obj_id, 0); rb_define_method(rb_mKernel, "object_id", rb_obj_id, 0); - rb_define_module_function(rb_mObSpace, "count_objects", count_objects, -1); + rb_define_module_function(rb_mObjSpace, "count_objects", count_objects, -1); { - VALUE rb_cWeakMap = rb_define_class_under(rb_mObSpace, "WeakMap", rb_cObject); + VALUE rb_cWeakMap = rb_define_class_under(rb_mObjSpace, "WeakMap", rb_cObject); rb_define_alloc_func(rb_cWeakMap, wmap_allocate); rb_define_method(rb_cWeakMap, "[]=", wmap_aset, 2); rb_define_method(rb_cWeakMap, "[]", wmap_aref, 1); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/