From 987df2ece681f522d9286f0fef410bb373988bd6 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 29 Jul 2015 08:25:49 +0000 Subject: hash.c: move rb_obj_hash * hash.c (rb_obj_hash): move in order to share with rb_any_hash. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- object.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'object.c') diff --git a/object.c b/object.c index 4610070a3c..f6f764af7f 100644 --- a/object.c +++ b/object.c @@ -142,6 +142,7 @@ rb_obj_equal(VALUE obj1, VALUE obj2) return Qfalse; } +#if 0 /* * call-seq: * obj.hash -> fixnum @@ -171,6 +172,9 @@ rb_obj_hash(VALUE obj) #endif return LONG2FIX(rb_objid_hash(index)); } +#else +VALUE rb_obj_hash(VALUE obj); +#endif /* * call-seq: -- cgit v1.2.3