diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-18 07:31:54 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-18 07:31:54 +0000 |
commit | 25b9eb5e5746665ca098f7117ba207692b2bd78d (patch) | |
tree | 11dd64192d263971587945bc2f3c7e257f7edddc /vm.c | |
parent | ad654fe58e0355096fba7e1ae5b5f06eea62c200 (diff) | |
download | ruby-25b9eb5e5746665ca098f7117ba207692b2bd78d.tar.gz |
* include/ruby/ruby.h (rb_data_type_t): restructured. [ruby-dev:41862]
add parent member.
* error.c (rb_typeddata_inherited_p): new function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r-- | vm.c | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -244,7 +244,7 @@ env_memsize(const void *ptr) static const rb_data_type_t env_data_type = { "VM/env", - env_mark, env_free, env_memsize, + {env_mark, env_free, env_memsize,}, }; static VALUE @@ -1569,7 +1569,7 @@ vm_memsize(const void *ptr) static const rb_data_type_t vm_data_type = { "VM", - rb_vm_mark, vm_free, vm_memsize, + {rb_vm_mark, vm_free, vm_memsize,}, }; static void @@ -1759,9 +1759,11 @@ thread_memsize(const void *ptr) static const rb_data_type_t thread_data_type = { "VM/thread", - rb_thread_mark, - thread_free, - thread_memsize, + { + rb_thread_mark, + thread_free, + thread_memsize, + }, }; static VALUE |