Navigation Menu

Skip to content

Commit

Permalink
* README.EXT, README.EXT.ja: use "sval" for the third argument
Browse files Browse the repository at this point in the history
  name of Data_Wrap_Struct().
  Suggested by @satoh_fumiyasu. Thanks!!!


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
kou committed Jun 22, 2012
1 parent c4bc9b5 commit 7b036a8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
@@ -1,3 +1,9 @@
Fri Jun 22 18:48:51 2012 Kouhei Sutou <kou@cozmixng.org>

* README.EXT, README.EXT.ja: use "sval" for the third argument
name of Data_Wrap_Struct().
Suggested by @satoh_fumiyasu. Thanks!!!

Fri Jun 22 18:04:26 2012 Koichi Sasada <ko1@atdot.net>

* iseq.c, vm_eval.c: set th->base_block properly.
Expand Down
2 changes: 1 addition & 1 deletion README.EXT
Expand Up @@ -562,7 +562,7 @@ The prototypes of the getter and setter functions are as follows:
To wrap and objectify a C pointer as a Ruby object (so called
DATA), use Data_Wrap_Struct().

Data_Wrap_Struct(klass, mark, free, ptr)
Data_Wrap_Struct(klass, mark, free, sval)

Data_Wrap_Struct() returns a created DATA object. The klass argument
is the class for the DATA object. The mark argument is the function
Expand Down
2 changes: 1 addition & 1 deletion README.EXT.ja
Expand Up @@ -623,7 +623,7 @@ RubyオブジェクトにCの構造体(へのポインタ)をくるむことでR
Dataオブジェクトを生成して構造体をRubyオブジェクトにカプセル
化するためには,以下のマクロを使います.

Data_Wrap_Struct(klass, mark, free, ptr)
Data_Wrap_Struct(klass, mark, free, sval)

このマクロの戻り値は生成されたDataオブジェクトです.

Expand Down

0 comments on commit 7b036a8

Please sign in to comment.