summaryrefslogtreecommitdiff
path: root/hash.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 /hash.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 'hash.c')
-rw-r--r--hash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hash.c b/hash.c
index 6a724d1..1fa40b1 100644
--- a/hash.c
+++ b/hash.c
@@ -60,7 +60,7 @@ static ID id_hash, id_yield, id_default;
VALUE
rb_hash_set_ifnone(VALUE hash, VALUE ifnone)
{
- OBJ_WRITE(hash, (&RHASH(hash)->ifnone), ifnone);
+ RB_OBJ_WRITE(hash, (&RHASH(hash)->ifnone), ifnone);
return hash;
}
@@ -390,8 +390,8 @@ tbl_update(VALUE hash, VALUE key, int (*func)(st_data_t *key, st_data_t *val, st
result = st_update(RHASH(hash)->ntbl, (st_data_t)key, func, (st_data_t)&arg);
/* write barrier */
- if (arg.new_key) OBJ_WRITTEN(hash, arg.old_key, arg.new_key);
- if (arg.new_value) OBJ_WRITTEN(hash, arg.old_value, arg.new_value);
+ if (arg.new_key) RB_OBJ_WRITTEN(hash, arg.old_key, arg.new_key);
+ if (arg.new_value) RB_OBJ_WRITTEN(hash, arg.old_value, arg.new_value);
return result;
}