Skip to content

Commit 53ae558

Browse files
committed
Improve style consistency of rb_shape_t *
1 parent 5b1a61e commit 53ae558

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

shape.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ rb_shape_depth(rb_shape_t *shape)
380380
return depth;
381381
}
382382

383-
rb_shape_t*
383+
rb_shape_t *
384384
rb_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 *
493493
get_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

576576
int
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
682682
rb_shape_t *
683683
rb_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

911911
void
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)
10851085
static enum rb_id_table_iterator_result
10861086
rb_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

10921092
static VALUE
10931093
rb_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)
11261126
static VALUE
11271127
rb_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

11761176
static 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

11951195
VALUE
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

variable.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2045,7 +2045,7 @@ each_hash_iv(st_data_t id, st_data_t val, st_data_t data)
20452045
static void
20462046
obj_ivar_each(VALUE obj, rb_ivar_foreach_callback_func *func, st_data_t arg)
20472047
{
2048-
rb_shape_t* shape = rb_shape_get_shape(obj);
2048+
rb_shape_t *shape = rb_shape_get_shape(obj);
20492049
struct iv_itr_data itr_data;
20502050
itr_data.obj = obj;
20512051
itr_data.arg = arg;
@@ -2083,7 +2083,7 @@ class_ivar_each(VALUE obj, rb_ivar_foreach_callback_func *func, st_data_t arg)
20832083
{
20842084
RUBY_ASSERT(RB_TYPE_P(obj, T_CLASS) || RB_TYPE_P(obj, T_MODULE));
20852085

2086-
rb_shape_t* shape = rb_shape_get_shape(obj);
2086+
rb_shape_t *shape = rb_shape_get_shape(obj);
20872087
struct iv_itr_data itr_data;
20882088
itr_data.obj = obj;
20892089
itr_data.arg = arg;

0 commit comments

Comments
 (0)