diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2019-09-22 16:21:26 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2019-09-22 16:21:26 +0900 |
commit | 28eefb33c8d27e5711319873d065e5414d7ffe25 (patch) | |
tree | 613cd991350e759ef6ecf6052ee5520a76833c51 /internal.h | |
parent | b4c328bebcf45b7a983f7e5ce29ba6ec57ed1a1a (diff) | |
download | ruby-28eefb33c8d27e5711319873d065e5414d7ffe25.tar.gz |
variable.c: Rename rb_st_copy to rb_iv_tbl_copy
This function was created as a variant of st_copy with firing write
barrier.
It should have more explicit name, such as st_copy_with_write_barrier.
But because it is used only for copying iv_tbl, so I rename it to
rb_iv_tbl_copy now. If we face other use case than iv_tbl, we may want
to rename it to more general name.
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal.h b/internal.h index 6845ba825d..b000feee29 100644 --- a/internal.h +++ b/internal.h @@ -2519,7 +2519,7 @@ void rb_mark_generic_ivar(VALUE); void rb_mv_generic_ivar(VALUE src, VALUE dst); VALUE rb_const_missing(VALUE klass, VALUE name); int rb_class_ivar_set(VALUE klass, ID vid, VALUE value); -st_table *rb_st_copy(VALUE obj, struct st_table *orig_tbl); +void rb_iv_tbl_copy(VALUE dst, VALUE src); /* gc.c (export) */ VALUE rb_wb_protected_newobj_of(VALUE, VALUE); |