diff options
| author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-10 20:02:11 +0000 |
|---|---|---|
| committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-10 20:02:11 +0000 |
| commit | 4ccd215cd379f74311525aa2d867b4beef963201 (patch) | |
| tree | 37608f94017ecfd639d98d784e4d7d91a88c6159 | |
| parent | 2733aefe4b36d55fc5b2974f7602abc13cbafbb0 (diff) | |
| download | ruby-4ccd215cd379f74311525aa2d867b4beef963201.tar.gz ruby-4ccd215cd379f74311525aa2d867b4beef963201.tar.xz ruby-4ccd215cd379f74311525aa2d867b4beef963201.zip | |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@24835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 6 | ||||
| -rw-r--r-- | include/ruby/ruby.h | 5 |
2 files changed, 10 insertions, 1 deletions
@@ -1,3 +1,9 @@ +Fri Sep 11 05:00:19 2009 Koichi Sasada <ko1@atdot.net> + + * 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. + Fri Sep 11 02:14:21 2009 Tanaka Akira <akr@fsij.org> * test/dl: use require_relative to require test_base.rb. diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index aa96df5a3..8800e029e 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 { |
