summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-18 07:31:54 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-18 07:31:54 +0000
commit25b9eb5e5746665ca098f7117ba207692b2bd78d (patch)
tree11dd64192d263971587945bc2f3c7e257f7edddc /proc.c
parentad654fe58e0355096fba7e1ae5b5f06eea62c200 (diff)
* 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 'proc.c')
-rw-r--r--proc.c24
1 files changed, 15 insertions, 9 deletions
diff --git a/proc.c b/proc.c
index 7df2ec890b..0489dd967f 100644
--- a/proc.c
+++ b/proc.c
@@ -71,9 +71,11 @@ proc_memsize(const void *ptr)
static const rb_data_type_t proc_data_type = {
"proc",
- proc_mark,
- proc_free,
- proc_memsize,
+ {
+ proc_mark,
+ proc_free,
+ proc_memsize,
+ },
};
VALUE
@@ -268,9 +270,11 @@ binding_memsize(const void *ptr)
static const rb_data_type_t binding_data_type = {
"binding",
- binding_mark,
- binding_free,
- binding_memsize,
+ {
+ binding_mark,
+ binding_free,
+ binding_memsize,
+ },
};
static VALUE
@@ -882,9 +886,11 @@ bm_memsize(const void *ptr)
static const rb_data_type_t method_data_type = {
"method",
- bm_mark,
- bm_free,
- bm_memsize,
+ {
+ bm_mark,
+ bm_free,
+ bm_memsize,
+ },
};
static inline int