@@ -380,7 +380,7 @@ rb_shape_depth(rb_shape_t *shape)
380380 return depth ;
381381}
382382
383- rb_shape_t *
383+ rb_shape_t *
384384rb_shape_get_shape (VALUE obj )
385385{
386386 return rb_shape_get_shape_by_id (rb_shape_get_shape_id (obj ));
@@ -489,7 +489,7 @@ rb_shape_alloc_new_child(ID id, rb_shape_t *shape, enum shape_type shape_type)
489489 return new_shape ;
490490}
491491
492- static rb_shape_t *
492+ static rb_shape_t *
493493get_next_shape_internal (rb_shape_t * shape , ID id , enum shape_type shape_type , bool * variation_created , bool new_variations_allowed )
494494{
495495 rb_shape_t * res = NULL ;
@@ -574,7 +574,7 @@ get_next_shape_internal(rb_shape_t *shape, ID id, enum shape_type shape_type, bo
574574}
575575
576576int
577- rb_shape_frozen_shape_p (rb_shape_t * shape )
577+ rb_shape_frozen_shape_p (rb_shape_t * shape )
578578{
579579 return SHAPE_FROZEN == (enum shape_type )shape -> type ;
580580}
@@ -682,15 +682,15 @@ rb_shape_transition_shape_remove_ivar(VALUE obj, ID id, rb_shape_t *shape, VALUE
682682rb_shape_t *
683683rb_shape_transition_shape_frozen (VALUE obj )
684684{
685- rb_shape_t * shape = rb_shape_get_shape (obj );
685+ rb_shape_t * shape = rb_shape_get_shape (obj );
686686 RUBY_ASSERT (shape );
687687 RUBY_ASSERT (RB_OBJ_FROZEN (obj ));
688688
689689 if (rb_shape_frozen_shape_p (shape ) || rb_shape_obj_too_complex (obj )) {
690690 return shape ;
691691 }
692692
693- rb_shape_t * next_shape ;
693+ rb_shape_t * next_shape ;
694694
695695 if (shape == rb_shape_get_root_shape ()) {
696696 return rb_shape_get_shape_by_id (SPECIAL_CONST_SHAPE_ID );
@@ -909,7 +909,7 @@ rb_shape_get_iv_index(rb_shape_t *shape, ID id, attr_index_t *value)
909909}
910910
911911void
912- rb_shape_set_shape (VALUE obj , rb_shape_t * shape )
912+ rb_shape_set_shape (VALUE obj , rb_shape_t * shape )
913913{
914914 rb_shape_set_shape_id (obj , rb_shape_id (shape ));
915915}
@@ -1085,14 +1085,14 @@ rb_shape_t_to_rb_cShape(rb_shape_t *shape)
10851085static enum rb_id_table_iterator_result
10861086rb_edges_to_hash (ID key , VALUE value , void * ref )
10871087{
1088- rb_hash_aset (* (VALUE * )ref , parse_key (key ), rb_shape_t_to_rb_cShape ((rb_shape_t * )value ));
1088+ rb_hash_aset (* (VALUE * )ref , parse_key (key ), rb_shape_t_to_rb_cShape ((rb_shape_t * )value ));
10891089 return ID_TABLE_CONTINUE ;
10901090}
10911091
10921092static VALUE
10931093rb_shape_edges (VALUE self )
10941094{
1095- rb_shape_t * shape ;
1095+ rb_shape_t * shape ;
10961096
10971097 shape = rb_shape_get_shape_by_id (NUM2INT (rb_struct_getmember (self , rb_intern ("id" ))));
10981098
@@ -1126,7 +1126,7 @@ rb_shape_edge_name(rb_shape_t *shape)
11261126static VALUE
11271127rb_shape_export_depth (VALUE self )
11281128{
1129- rb_shape_t * shape ;
1129+ rb_shape_t * shape ;
11301130 shape = rb_shape_get_shape_by_id (NUM2INT (rb_struct_getmember (self , rb_intern ("id" ))));
11311131 return SIZET2NUM (rb_shape_depth (shape ));
11321132}
@@ -1171,11 +1171,11 @@ rb_shape_exhaust(int argc, VALUE *argv, VALUE self)
11711171 return Qnil ;
11721172}
11731173
1174- VALUE rb_obj_shape (rb_shape_t * shape );
1174+ VALUE rb_obj_shape (rb_shape_t * shape );
11751175
11761176static enum rb_id_table_iterator_result collect_keys_and_values (ID key , VALUE value , void * ref )
11771177{
1178- rb_hash_aset (* (VALUE * )ref , parse_key (key ), rb_obj_shape ((rb_shape_t * )value ));
1178+ rb_hash_aset (* (VALUE * )ref , parse_key (key ), rb_obj_shape ((rb_shape_t * )value ));
11791179 return ID_TABLE_CONTINUE ;
11801180}
11811181
@@ -1193,7 +1193,7 @@ static VALUE edges(struct rb_id_table* edges)
11931193}
11941194
11951195VALUE
1196- rb_obj_shape (rb_shape_t * shape )
1196+ rb_obj_shape (rb_shape_t * shape )
11971197{
11981198 VALUE rb_shape = rb_hash_new ();
11991199
0 commit comments