summaryrefslogtreecommitdiff
path: root/ext
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 /ext
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 'ext')
-rw-r--r--ext/bigdecimal/bigdecimal.c2
-rw-r--r--ext/dl/cfunc.c2
-rw-r--r--ext/dl/cptr.c2
-rw-r--r--ext/dl/handle.c2
-rw-r--r--ext/socket/raddrinfo.c2
-rw-r--r--ext/stringio/stringio.c8
6 files changed, 10 insertions, 8 deletions
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c
index 340ea8b..146145c 100644
--- a/ext/bigdecimal/bigdecimal.c
+++ b/ext/bigdecimal/bigdecimal.c
@@ -105,7 +105,7 @@ BigDecimal_memsize(const void *ptr)
static const rb_data_type_t BigDecimal_data_type = {
"BigDecimal",
- 0, BigDecimal_delete, BigDecimal_memsize,
+ {0, BigDecimal_delete, BigDecimal_memsize,},
};
static VALUE
diff --git a/ext/dl/cfunc.c b/ext/dl/cfunc.c
index 536a723..7eb5860 100644
--- a/ext/dl/cfunc.c
+++ b/ext/dl/cfunc.c
@@ -70,7 +70,7 @@ dlcfunc_memsize(const void *ptr)
const rb_data_type_t dlcfunc_data_type = {
"dl/cfunc",
- 0, dlcfunc_free, dlcfunc_memsize,
+ {0, dlcfunc_free, dlcfunc_memsize,},
};
VALUE
diff --git a/ext/dl/cptr.c b/ext/dl/cptr.c
index bafbc48..68c18ec 100644
--- a/ext/dl/cptr.c
+++ b/ext/dl/cptr.c
@@ -43,7 +43,7 @@ dlptr_memsize(const void *ptr)
static const rb_data_type_t dlptr_data_type = {
"dl/ptr",
- 0, dlptr_free, dlptr_memsize,
+ {0, dlptr_free, dlptr_memsize,},
};
void
diff --git a/ext/dl/handle.c b/ext/dl/handle.c
index a450e6b..ed042e1 100644
--- a/ext/dl/handle.c
+++ b/ext/dl/handle.c
@@ -48,7 +48,7 @@ dlhandle_memsize(const void *ptr)
static const rb_data_type_t dlhandle_data_type = {
"dl/handle",
- 0, dlhandle_free, dlhandle_memsize,
+ {0, dlhandle_free, dlhandle_memsize,},
};
/*
diff --git a/ext/socket/raddrinfo.c b/ext/socket/raddrinfo.c
index 4bc20c9..2e5f95a 100644
--- a/ext/socket/raddrinfo.c
+++ b/ext/socket/raddrinfo.c
@@ -534,7 +534,7 @@ addrinfo_memsize(const void *ptr)
static const rb_data_type_t addrinfo_type = {
"socket/addrinfo",
- addrinfo_mark, addrinfo_free, addrinfo_memsize,
+ {addrinfo_mark, addrinfo_free, addrinfo_memsize,},
};
static VALUE
diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c
index c93ba10..4628a35 100644
--- a/ext/stringio/stringio.c
+++ b/ext/stringio/stringio.c
@@ -73,9 +73,11 @@ strio_memsize(const void *p)
static const rb_data_type_t strio_data_type = {
"strio",
- strio_mark,
- strio_free,
- strio_memsize,
+ {
+ strio_mark,
+ strio_free,
+ strio_memsize,
+ },
};
#define check_strio(self) ((struct StringIO*)rb_check_typeddata(self, &strio_data_type))