diff options
| author | Masaki Muranaka <[email protected]> | 2013-03-01 14:22:42 +0900 |
|---|---|---|
| committer | Masaki Muranaka <[email protected]> | 2013-03-01 14:28:22 +0900 |
| commit | e4231a0a33f8b2961dbae50a53c5fc89fefe83a1 (patch) | |
| tree | e1dc91bf7d7ff64f080e8707df8b0289ef15214f /src/array.c | |
| parent | 028ac46df7c6569f361a685a000ebc425be16c22 (diff) | |
| download | mruby-e4231a0a33f8b2961dbae50a53c5fc89fefe83a1.tar.gz mruby-e4231a0a33f8b2961dbae50a53c5fc89fefe83a1.zip | |
Add typedef to structures that have mrb_ prefix. Use typedef-ed type instead of struct directly.
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) { |
