summaryrefslogtreecommitdiffhomepage
path: root/src/string.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-02-28 23:32:46 -0800
committerYukihiro "Matz" Matsumoto <[email protected]>2013-02-28 23:32:46 -0800
commit0c3bcff9716745c5c3c2db8af395b95171413c31 (patch)
treeec9854b2a5e62ec1fc48b9970dff2d7346dcd92c /src/string.c
parentc567a28f2c7a6bcb6d0095b9cfcc759a9f8b4def (diff)
parente4231a0a33f8b2961dbae50a53c5fc89fefe83a1 (diff)
downloadmruby-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/string.c')
-rw-r--r--src/string.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/string.c b/src/string.c
index 7af0d1d59..28cf0ab9a 100644
--- a/src/string.c
+++ b/src/string.c
@@ -35,7 +35,7 @@ _obj_classname(mrb_state *mrb, mrb_value obj)
}
void
-mrb_str_decref(mrb_state *mrb, struct mrb_shared_string *shared)
+mrb_str_decref(mrb_state *mrb, mrb_shared_string *shared)
{
shared->refcnt--;
if (shared->refcnt == 0) {
@@ -48,7 +48,7 @@ static void
str_modify(mrb_state *mrb, struct RString *s)
{
if (s->flags & MRB_STR_SHARED) {
- struct mrb_shared_string *shared = s->aux.shared;
+ mrb_shared_string *shared = s->aux.shared;
if (shared->refcnt == 1 && s->ptr == shared->ptr) {
s->ptr = shared->ptr;
@@ -275,7 +275,7 @@ static void
str_make_shared(mrb_state *mrb, struct RString *s)
{
if (!(s->flags & MRB_STR_SHARED)) {
- struct mrb_shared_string *shared = (struct mrb_shared_string *)mrb_malloc(mrb, sizeof(struct mrb_shared_string));
+ mrb_shared_string *shared = (mrb_shared_string *)mrb_malloc(mrb, sizeof(mrb_shared_string));
shared->refcnt = 1;
if (s->aux.capa > s->len) {
@@ -301,7 +301,7 @@ mrb_value
mrb_str_literal(mrb_state *mrb, mrb_value str)
{
struct RString *s, *orig;
- struct mrb_shared_string *shared;
+ mrb_shared_string *shared;
s = str_alloc(mrb, mrb->string_class);
orig = mrb_str_ptr(str);
@@ -1161,7 +1161,7 @@ static mrb_value
mrb_str_subseq(mrb_state *mrb, mrb_value str, int beg, int len)
{
struct RString *orig, *s;
- struct mrb_shared_string *shared;
+ mrb_shared_string *shared;
orig = mrb_str_ptr(str);
str_make_shared(mrb, orig);