aboutsummaryrefslogtreecommitdiffstats
path: root/internal
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2023-09-24 09:07:52 -0400
committerPeter Zhu <peter@peterzhu.ca>2023-09-24 09:07:52 -0400
commitf43dac0df29c137ae966362f7faf26084468a0fb (patch)
tree16a39f84979a86a57727dbf829760a3fff14c8ee /internal
parent36cdf163dfbcac5b0e7fedbd55c817b5d5c971fb (diff)
downloadruby-f43dac0df29c137ae966362f7faf26084468a0fb.tar.gz
Add rb_hash_free for the GC to use
Diffstat (limited to 'internal')
-rw-r--r--internal/hash.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/hash.h b/internal/hash.h
index d1848e5408..fe859cb716 100644
--- a/internal/hash.h
+++ b/internal/hash.h
@@ -87,6 +87,7 @@ int rb_hash_stlike_delete(VALUE hash, st_data_t *pkey, st_data_t *pval);
int rb_hash_stlike_foreach_with_replace(VALUE hash, st_foreach_check_callback_func *func, st_update_callback_func *replace, st_data_t arg);
int rb_hash_stlike_update(VALUE hash, st_data_t key, st_update_callback_func *func, st_data_t arg);
VALUE rb_ident_hash_new_with_size(st_index_t size);
+void rb_hash_free(VALUE hash);
static inline unsigned RHASH_AR_TABLE_SIZE_RAW(VALUE h);
static inline VALUE RHASH_IFNONE(VALUE h);