diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-02-28 23:32:46 -0800 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-02-28 23:32:46 -0800 |
| commit | 0c3bcff9716745c5c3c2db8af395b95171413c31 (patch) | |
| tree | ec9854b2a5e62ec1fc48b9970dff2d7346dcd92c /src/array.c | |
| parent | c567a28f2c7a6bcb6d0095b9cfcc759a9f8b4def (diff) | |
| parent | e4231a0a33f8b2961dbae50a53c5fc89fefe83a1 (diff) | |
| download | mruby-0c3bcff9716745c5c3c2db8af395b95171413c31.tar.gz mruby-0c3bcff9716745c5c3c2db8af395b95171413c31.zip | |
Merge pull request #919 from monaka/pr-use-typedef-names-as-possible
Use typedef names as possible
Diffstat (limited to 'src/array.c')
| -rw-r--r-- | src/array.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/array.c b/src/array.c index 88c15eb2c..c767283aa 100644 --- a/src/array.c +++ b/src/array.c @@ -125,7 +125,7 @@ static void ary_modify(mrb_state *mrb, struct RArray *a) { if (a->flags & MRB_ARY_SHARED) { - struct mrb_shared_array *shared = a->aux.shared; + mrb_shared_array *shared = a->aux.shared; if (shared->refcnt == 1 && a->ptr == shared->ptr) { a->ptr = shared->ptr; @@ -154,7 +154,7 @@ static void ary_make_shared(mrb_state *mrb, struct RArray *a) { if (!(a->flags & MRB_ARY_SHARED)) { - struct mrb_shared_array *shared = (struct mrb_shared_array *)mrb_malloc(mrb, sizeof(struct mrb_shared_array)); + mrb_shared_array *shared = (mrb_shared_array *)mrb_malloc(mrb, sizeof(mrb_shared_array)); shared->refcnt = 1; if (a->aux.capa > a->len) { @@ -667,7 +667,7 @@ mrb_ary_len(mrb_state *mrb, mrb_value ary) } void -mrb_ary_decref(mrb_state *mrb, struct mrb_shared_array *shared) +mrb_ary_decref(mrb_state *mrb, mrb_shared_array *shared) { shared->refcnt--; if (shared->refcnt == 0) { |
