summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-10 20:02:11 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-10 20:02:11 +0000
commite519c9d960549163c17571689cc977f7ca45073e (patch)
tree37608f94017ecfd639d98d784e4d7d91a88c6159 /include
parent717b5a5f2d4761ccf2775ccb6c9931008773ad6c (diff)
* include/ruby/ruby.h (rb_data_type_t): Add comments.
And add a member variable "data", a multi-purpose storage area for rb_data_type. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r--include/ruby/ruby.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h
index aa96df5a3d..8800e029e8 100644
--- a/include/ruby/ruby.h
+++ b/include/ruby/ruby.h
@@ -741,7 +741,10 @@ typedef struct rb_data_type_struct {
void (*dmark)(void*);
void (*dfree)(void*);
size_t (*dsize)(const void *);
- void *ary[4]; /* for extension */
+ void *reserved[3]; /* For future extension.
+ This array *must* be filled with ZERO. */
+ void *data; /* This area can be used for any purpose
+ by a programmer who define the type. */
} rb_data_type_t;
struct RTypedData {