diff options
author | 卜部昌平 <[email protected]> | 2019-08-27 12:08:32 +0900 |
---|---|---|
committer | 卜部昌平 <[email protected]> | 2019-08-27 15:52:26 +0900 |
commit | 79d280a5e855d623957638b6d73f530995e03cae (patch) | |
tree | 4aed99e54fb6ebdbd3fb5e6f9e5032f721993589 /include/ruby/intern.h | |
parent | 50f5a0a8d6e7ad89d6caff695a08dbd38edb7a6e (diff) |
rb_ivar_foreach now free from ANYARGS
After 5e86b005c0f2ef30df2f9906c7e2f3abefe286a2, I now think ANYARGS is
dangerous and should be extinct. This commit adds a function
prototype for rb_ivar_foreach. Luckily this change revealed no
problematic usage of the function.
Diffstat (limited to 'include/ruby/intern.h')
-rw-r--r-- | include/ruby/intern.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/intern.h b/include/ruby/intern.h index 51d4132ae6..3e418c3911 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -957,7 +957,7 @@ void rb_free_generic_ivar(VALUE); VALUE rb_ivar_get(VALUE, ID); VALUE rb_ivar_set(VALUE, ID, VALUE); VALUE rb_ivar_defined(VALUE, ID); -void rb_ivar_foreach(VALUE, int (*)(ANYARGS), st_data_t); +void rb_ivar_foreach(VALUE, int (*)(ID, VALUE, st_data_t), st_data_t); st_index_t rb_ivar_count(VALUE); VALUE rb_attr_get(VALUE, ID); VALUE rb_obj_instance_variables(VALUE); |