Skip to content

Commit 6c4ae85

Browse files
committed
Rename rb_shape_frozen_shape_p -> shape_frozen_p
1 parent 925dec8 commit 6c4ae85

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

shape.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ get_next_shape_internal(rb_shape_t *shape, ID id, enum shape_type shape_type, bo
577577
}
578578

579579
static inline bool
580-
rb_shape_frozen_shape_p(rb_shape_t *shape)
580+
shape_frozen_p(rb_shape_t *shape)
581581
{
582582
return SHAPE_FL_FROZEN & shape->flags;
583583
}
@@ -656,7 +656,7 @@ rb_shape_transition_frozen(VALUE obj)
656656
rb_shape_t *shape = RSHAPE(shape_id);
657657
RUBY_ASSERT(shape);
658658

659-
if (rb_shape_frozen_shape_p(shape)) {
659+
if (shape_frozen_p(shape)) {
660660
return shape_id;
661661
}
662662

@@ -1151,7 +1151,7 @@ shape_frozen(VALUE self)
11511151
{
11521152
shape_id_t shape_id = NUM2INT(rb_struct_getmember(self, rb_intern("id")));
11531153
rb_shape_t *shape = RSHAPE(shape_id);
1154-
return RBOOL(rb_shape_frozen_shape_p(shape));
1154+
return RBOOL(shape_frozen_p(shape));
11551155
}
11561156

11571157
static VALUE
@@ -1400,7 +1400,7 @@ Init_default_shapes(void)
14001400
get_next_shape_internal(root, id_frozen, SHAPE_FROZEN, &dont_care, true);
14011401
RUBY_ASSERT(rb_shape_id(special_const_shape) == SPECIAL_CONST_SHAPE_ID);
14021402
RUBY_ASSERT(SPECIAL_CONST_SHAPE_ID == (GET_SHAPE_TREE()->next_shape_id - 1));
1403-
RUBY_ASSERT(rb_shape_frozen_shape_p(special_const_shape));
1403+
RUBY_ASSERT(shape_frozen_p(special_const_shape));
14041404

14051405
rb_shape_t *too_complex_shape = rb_shape_alloc_with_parent_id(0, ROOT_SHAPE_ID);
14061406
too_complex_shape->type = SHAPE_OBJ_TOO_COMPLEX;

0 commit comments

Comments
 (0)