diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-04-02 06:11:28 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-04-02 06:11:28 +0000 |
commit | 4fc53c6b5599fc522b2e5916c342801069b9231d (patch) | |
tree | 1e8054d65b63affb46c7cf750e721b966b291673 /README.EXT | |
parent | 6a64352e90457d8e09df3f15648db3f8d5986649 (diff) | |
download | ruby-4fc53c6b5599fc522b2e5916c342801069b9231d.tar.gz ruby-4fc53c6b5599fc522b2e5916c342801069b9231d.tar.xz ruby-4fc53c6b5599fc522b2e5916c342801069b9231d.zip |
* README.EXT, README.EXT.ja (3.3): clarified -1 as free for
Data_Wrap_Struct(). [ruby-dev:19881]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'README.EXT')
-rw-r--r-- | README.EXT | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/README.EXT b/README.EXT index 97e57934b..3a37db4e1 100644 --- a/README.EXT +++ b/README.EXT @@ -422,8 +422,9 @@ DATA), use Data_Wrap_Struct(). Data_Wrap_Struct() returns a created DATA object. The klass argument is the class for the DATA object. The mark argument is the function to mark Ruby objects pointed by this data. The free argument is the -function to free the pointer allocation. The functions mark and -free will be called from garbage collector. +function to free the pointer allocation. If this is -1, the pointer +will be just freed. The functions mark and free will be called from +garbage collector. You can allocate and wrap the structure in one step. |