1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Adjust indents [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2022-10-24 17:42:29 +09:00
parent 298221dfe5
commit 3af373285b
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -1497,12 +1497,9 @@ rb_shape_set_shape_id(VALUE obj, shape_id_t shape_id)
break;
case T_CLASS:
case T_MODULE:
{
RCLASS_EXT(obj)->shape_id = shape_id;
break;
}
default:
{
if (shape_id != FROZEN_ROOT_SHAPE_ID) {
struct gen_ivtbl *ivtbl = 0;
RB_VM_LOCK_ENTER();
@ -1519,7 +1516,6 @@ rb_shape_set_shape_id(VALUE obj, shape_id_t shape_id)
RB_VM_LOCK_LEAVE();
}
}
}
#endif
return true;
@ -1604,7 +1600,8 @@ typedef int rb_ivar_foreach_callback_func(ID key, VALUE val, st_data_t arg);
st_data_t rb_st_nth_key(st_table *tab, st_index_t index);
static void
iterate_over_shapes_with_callback(rb_shape_t *shape, VALUE* iv_list, rb_ivar_foreach_callback_func *callback, st_data_t arg) {
iterate_over_shapes_with_callback(rb_shape_t *shape, VALUE* iv_list, rb_ivar_foreach_callback_func *callback, st_data_t arg)
{
switch ((enum shape_type)shape->type) {
case SHAPE_ROOT:
return;