diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-08-17 11:12:23 +0900 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-08-19 15:10:53 +0900 |
commit | 99093e1600ccef17ab99356b689573fcfd336ecc (patch) | |
tree | b0654845b92b038889fff4eab6e1c73b6ba8a4c0 /hash.c | |
parent | d2eeb836344406eff3342b86436cc7eb0f8cc908 (diff) |
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.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3426
Diffstat (limited to 'hash.c')
-rw-r--r-- | hash.c | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -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 |