summaryrefslogtreecommitdiff
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
commit153f513f4906aebb5e4b718b25011ddeb5769810 (patch)
tree1e8054d65b63affb46c7cf750e721b966b291673 /README.EXT
parent8d3e57221a6fbd4a5f2aa2b13b32c67678f98853 (diff)
* README.EXT, README.EXT.ja (3.3): clarified -1 as free for
Data_Wrap_Struct(). [ruby-dev:19881] git-svn-id: svn+ssh://ci.ruby-lang.org/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 97e5793..3a37db4 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.