summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-29 08:25:49 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-29 08:25:49 +0000
commit987df2ece681f522d9286f0fef410bb373988bd6 (patch)
tree5e5b58ad564b018b23cf4631b3a70a2009721891 /object.c
parent07900180ec9b6f8ce79b69e54ed51f18cabffc60 (diff)
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
Diffstat (limited to 'object.c')
-rw-r--r--object.c4
1 files changed, 4 insertions, 0 deletions
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: