diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-07 20:28:27 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-07 20:28:27 +0000 |
commit | 9e607430088d2b89576769530aa9069680da97f5 (patch) | |
tree | 0ee8d8249c167842a36aae1ed843a8551f430404 /vm.c | |
parent | 26a1d97d8ccca6987549b3b4b5cdac61dacfdfe6 (diff) |
* include/ruby/ruby.h:
rename
"...TypeStruct" and "typed_struct" to
"TypedData..." and "typeddata", respectively.
rename
rb_data_type_t#name to
rb_data_type_t#wrap_struct_name.
* error.c, gc.c, iseq.c, vm.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r-- | vm.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -248,7 +248,7 @@ env_alloc(void) { VALUE obj; rb_env_t *env; - obj = Data_Make_TypedStruct(rb_cEnv, rb_env_t, &env_data_type, env); + obj = TypedData_Make_Struct(rb_cEnv, rb_env_t, &env_data_type, env); env->env = 0; env->prev_envval = 0; env->block.iseq = 0; @@ -1675,10 +1675,10 @@ thread_alloc(VALUE klass) VALUE volatile obj; #ifdef USE_THREAD_RECYCLE rb_thread_t *th = thread_recycle_struct(); - obj = Data_Wrap_TypedStruct(klass, &thread_data_type, th); + obj = TypedData_Wrap_Struct(klass, &thread_data_type, th); #else rb_thread_t *th; - obj = Data_Make_TypedStruct(klass, rb_thread_t, &thread_data_type, th); + obj = TypedData_Make_Struct(klass, rb_thread_t, &thread_data_type, th); #endif return obj; } @@ -1979,10 +1979,10 @@ Init_VM(void) rb_iseq_t *iseq; /* create vm object */ - vm->self = Data_Wrap_TypedStruct(rb_cRubyVM, &vm_data_type, vm); + vm->self = TypedData_Wrap_Struct(rb_cRubyVM, &vm_data_type, vm); /* create main thread */ - th_self = th->self = Data_Wrap_TypedStruct(rb_cThread, &thread_data_type, th); + th_self = th->self = TypedData_Wrap_Struct(rb_cThread, &thread_data_type, th); vm->main_thread = th; vm->running_thread = th; th->vm = vm; |