aboutsummaryrefslogtreecommitdiffstats
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
commit23d8fe4215eb63fd7734851f786a76ef8540c381 (patch)
tree5e5b58ad564b018b23cf4631b3a70a2009721891 /object.c
parent3718ecb04ba1c01d3c7e71b2bf75ac0d67d8cb09 (diff)
downloadruby-23d8fe4215eb63fd7734851f786a76ef8540c381.tar.gz
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: