From be3cc3158103b880c4856e828d24adc2fc6c050c Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 16 May 2015 12:17:14 +0000 Subject: 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 --- ext/objspace/objspace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext') 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. */ -- cgit v1.2.3