ruby-changes:33259
From: nobu <ko1@a...>
Date: Sat, 15 Mar 2014 09:08:30 +0900 (JST)
Subject: [ruby-changes:33259] nobu:r45338 (trunk): object.c: [DOC] merge rdoc
nobu 2014-03-15 09:08:24 +0900 (Sat, 15 Mar 2014) New Revision: 45338 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45338 Log: object.c: [DOC] merge rdoc * gc.c (rb_obj_id): remove unused rdoc. * object.c (rb_obj_hash): [DOC] merge unused rdoc from rb_obj_id() in gc.c. Modified files: trunk/gc.c trunk/object.c Index: object.c =================================================================== --- object.c (revision 45337) +++ object.c (revision 45338) @@ -146,6 +146,9 @@ rb_obj_equal(VALUE obj1, VALUE obj2) https://github.com/ruby/ruby/blob/trunk/object.c#L146 } /* + * call-seq: + * obj.hash -> fixnum + * * Generates a Fixnum hash value for this object. This function must have the * property that <code>a.eql?(b)</code> implies <code>a.hash == b.hash</code>. * Index: gc.c =================================================================== --- gc.c (revision 45337) +++ gc.c (revision 45338) @@ -2362,23 +2362,6 @@ id2ref(VALUE obj, VALUE objid) https://github.com/ruby/ruby/blob/trunk/gc.c#L2362 * "hi".freeze.object_id == "hi".freeze.object_id # => true */ -/* - * call-seq: - * obj.hash -> fixnum - * - * Generates a Fixnum hash value for this object. - * - * This function must have the property that <code>a.eql?(b)</code> implies - * <code>a.hash == b.hash</code>. - * - * The hash value is used by Hash class. - * - * Any hash value that exceeds the capacity of a Fixnum will be truncated - * before being used. - * - * See also Object#hash. - */ - VALUE rb_obj_id(VALUE obj) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/