summaryrefslogtreecommitdiff
path: root/internal.h
diff options
context:
space:
mode:
author卜部昌平 <[email protected]>2019-08-27 11:53:39 +0900
committer卜部昌平 <[email protected]>2019-08-27 15:52:26 +0900
commit50f5a0a8d6e7ad89d6caff695a08dbd38edb7a6e ()
tree74d5842d05d0bb28b2beb3853a3ae4ceda75c2e2 /internal.h
parentae2dc3f217ba9f181471f39a7e5ce72a28b27c2a (diff)
rb_hash_foreach now free from ANYARGS
After 5e86b005c0f2ef30df2f9906c7e2f3abefe286a2, I now think ANYARGS is dangerous and should be extinct. This commit adds function s for rb_hash_foreach / st_foreach_safe. Also fixes some mismatches.
-rw-r--r--internal.h4
1 files changed, 2 insertions, 2 deletions
@@ -1661,8 +1661,8 @@ VALUE rb_hash_set_pair(VALUE hash, VALUE pair);
int rb_hash_stlike_lookup(VALUE hash, st_data_t key, st_data_t *pval);
int rb_hash_stlike_delete(VALUE hash, st_data_t *pkey, st_data_t *pval);
-int rb_hash_stlike_foreach(VALUE hash, int (*func)(ANYARGS), st_data_t arg);
-int rb_hash_stlike_foreach_with_replace(VALUE hash, int (*func)(ANYARGS), 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);
/* inits.c */