summaryrefslogtreecommitdiffstats
path: root/README.EXT
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-04-02 06:11:28 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-04-02 06:11:28 +0000
commit4fc53c6b5599fc522b2e5916c342801069b9231d (patch)
tree1e8054d65b63affb46c7cf750e721b966b291673 /README.EXT
parent6a64352e90457d8e09df3f15648db3f8d5986649 (diff)
downloadruby-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.EXT5
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.