1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* gc.c (Init_GC): move back object_id to Kernel. [ruby-dev:42840]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2010-12-22 05:38:41 +00:00
parent 6a50d27231
commit 049cdff0eb
2 changed files with 5 additions and 1 deletions

View file

@ -7,6 +7,10 @@ Wed Dec 22 07:59:23 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* NEWS: add IO#advise. [ruby-core:33110] [Ruby 1.9-Feature#4038]
Tue Dec 21 23:45:31 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
* gc.c (Init_GC): move back object_id to Kernel. [ruby-dev:42840]
Tue Dec 21 12:45:16 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (target_archs): remove temporary objects.

2
gc.c
View file

@ -3496,7 +3496,7 @@ Init_GC(void)
OBJ_FREEZE(nomem_error);
rb_define_method(rb_cBasicObject, "__id__", rb_obj_id, 0);
rb_define_method(rb_cBasicObject, "object_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);