summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/hash.c b/hash.c
index c8d1406cc7..cd1cc1437f 100644
--- a/hash.c
+++ b/hash.c
@@ -427,6 +427,14 @@ rb_hash_new(void)
}
VALUE
+rb_hash_new_compare_by_id(void)
+{
+ VALUE hash = rb_hash_new();
+ RHASH(hash)->ntbl = rb_init_identtable();
+ return hash;
+}
+
+VALUE
rb_hash_new_with_size(st_index_t size)
{
VALUE ret = rb_hash_new();