diff options
author | Jean Boussier <[email protected]> | 2025-05-08 20:47:51 +0200 |
---|---|---|
committer | Jean Boussier <[email protected]> | 2025-05-09 10:22:51 +0200 |
commit | c9b08882b796c9d3a5f92d57d0b4f866fb24f3ac () | |
tree | 2012f42eea9fc420e656566be1716feec7fe85b1 /shape.h | |
parent | e0200cfba03bf7d23b6e298c35ca2636cbbdbd91 (diff) |
Refactor `rb_shape_get_next` to return an ID
Also rename it, and change parameters to be consistent with other transition functions.
Notes: Merged: https://.com/ruby/ruby/pull/13283
-rw-r--r-- | shape.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -168,8 +168,9 @@ bool rb_shape_frozen_shape_p(rb_shape_t *shape); shape_id_t rb_shape_transition_frozen(VALUE obj); shape_id_t rb_shape_transition_complex(VALUE obj); bool rb_shape_transition_remove_ivar(VALUE obj, ID id, VALUE *removed); -rb_shape_t *rb_shape_get_next(rb_shape_t *shape, VALUE obj, ID id); -rb_shape_t *rb_shape_get_next_no_warnings(rb_shape_t *shape, VALUE obj, ID id); rb_shape_t *rb_shape_object_id_shape(VALUE obj); bool rb_shape_has_object_id(rb_shape_t *shape); attr_index_t rb_shape_object_id_index(rb_shape_t *shape); |