summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-20 08:07:47 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-20 08:07:47 +0000
commitc702005a7bbb807cab666537b5ef1877c14c40ba (patch)
treefe291003d37a71b882b91bceaad7ff3d432cd6d7 /string.c
parentb766cc4e70f18ab1b3be5aef35d2af8817d23714 (diff)
* include/ruby/ruby.h: rename OBJ_WRITE and OBJ_WRITTEN into
RB_OBJ_WRITE and RB_OBJ_WRITTEN. * array.c, class.c, compile.c, hash.c, internal.h, iseq.c, proc.c, process.c, re.c, string.c, variable.c, vm.c, vm_eval.c, vm_insnhelper.c, vm_insnhelper.h, vm_method.c: catch up this change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/string.c b/string.c
index f8dd03d46e..900f900f16 100644
--- a/string.c
+++ b/string.c
@@ -114,7 +114,7 @@ VALUE rb_cSymbol;
} while (0)
#define STR_SET_SHARED(str, shared_str) do { \
- OBJ_WRITE((str), &RSTRING(str)->as.heap.aux.shared, (shared_str)); \
+ RB_OBJ_WRITE((str), &RSTRING(str)->as.heap.aux.shared, (shared_str)); \
FL_SET((str), ELTS_SHARED); \
} while (0)
@@ -822,7 +822,7 @@ rb_str_new_frozen(VALUE orig)
FL_UNSET(orig, STR_ASSOC);
str = str_new4(klass, orig);
FL_SET(str, STR_ASSOC);
- OBJ_WRITE(str, &RSTRING(str)->as.heap.aux.shared, assoc);
+ RB_OBJ_WRITE(str, &RSTRING(str)->as.heap.aux.shared, assoc);
/* TODO: WB is not needed because str is new object */
}
else {
@@ -955,7 +955,7 @@ rb_str_shared_replace(VALUE str, VALUE str2)
if (STR_NOCAPA_P(str2)) {
VALUE shared = RSTRING(str2)->as.heap.aux.shared;
FL_SET(str, RBASIC(str2)->flags & STR_NOCAPA);
- OBJ_WRITE(str, &RSTRING(str)->as.heap.aux.shared, shared);
+ RB_OBJ_WRITE(str, &RSTRING(str)->as.heap.aux.shared, shared);
}
else {
RSTRING(str)->as.heap.aux.capa = RSTRING(str2)->as.heap.aux.capa;
@@ -1523,7 +1523,7 @@ rb_str_associate(VALUE str, VALUE add)
}
FL_SET(str, STR_ASSOC);
RBASIC_CLEAR_CLASS(add);
- OBJ_WRITE(str, &RSTRING(str)->as.heap.aux.shared, add);
+ RB_OBJ_WRITE(str, &RSTRING(str)->as.heap.aux.shared, add);
}
}