diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-05-16 12:17:14 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-05-16 12:17:14 +0000 |
commit | ecbad6dfa87b78832294e3eff7a64f5d94215f87 (patch) | |
tree | cce6b7837cd6b726be4cdf7a27487cfc5134d460 /ext/objspace | |
parent | 4eb4f1fd7e267eee38ed4d402c2cdd7f85532d6b (diff) | |
download | ruby-ecbad6dfa87b78832294e3eff7a64f5d94215f87.tar.gz |
gc.c: rename alloc as wrap
* gc.c (rb_data_object_wrap, rb_data_typed_object_wrap): rename
alloc as wrap. these functions do not allocate data pointers
but just wrap the given pointers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/objspace')
-rw-r--r-- | ext/objspace/objspace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/objspace/objspace.c b/ext/objspace/objspace.c index bf0d31a8e2..844beef381 100644 --- a/ext/objspace/objspace.c +++ b/ext/objspace/objspace.c @@ -600,7 +600,7 @@ static VALUE rb_mInternalObjectWrapper; static VALUE iow_newobj(VALUE obj) { - return rb_data_typed_object_alloc(rb_mInternalObjectWrapper, (void *)obj, &iow_data_type); + return TypedData_Wrap_Struct(rb_mInternalObjectWrapper, &iow_data_type, (void *)obj); } /* Returns the type of the internal object. */ |