aboutsummaryrefslogtreecommitdiffstats
path: root/hash.c
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-08-17 11:12:23 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-08-19 15:10:53 +0900
commit99093e1600ccef17ab99356b689573fcfd336ecc (patch)
treeb0654845b92b038889fff4eab6e1c73b6ba8a4c0 /hash.c
parentd2eeb836344406eff3342b86436cc7eb0f8cc908 (diff)
downloadruby-99093e1600ccef17ab99356b689573fcfd336ecc.tar.gz
RHASH_TBL: is now ext-only
It seems almost no internal codes use RHASH_TBL any longer. Why not just eliminate it entirely, so that the macro can be purely ext-only.
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/hash.c b/hash.c
index a3853e8ef3..2d22f8ab2b 100644
--- a/hash.c
+++ b/hash.c
@@ -1620,23 +1620,16 @@ rb_hash_modify_check(VALUE hash)
}
MJIT_FUNC_EXPORTED struct st_table *
-#if RHASH_CONVERT_TABLE_DEBUG
rb_hash_tbl_raw(VALUE hash, const char *file, int line)
{
return ar_force_convert_table(hash, file, line);
}
-#else
-rb_hash_tbl_raw(VALUE hash)
-{
- return ar_force_convert_table(hash, NULL, 0);
-}
-#endif
struct st_table *
rb_hash_tbl(VALUE hash, const char *file, int line)
{
OBJ_WB_UNPROTECT(hash);
- return RHASH_TBL_RAW(hash);
+ return rb_hash_tbl_raw(hash, file, line);
}
static void