Skip to content

Commit

Permalink
* README.EXT, README.EXT.ja (3.3): clarified -1 as free for
Browse files Browse the repository at this point in the history
  Data_Wrap_Struct().  [ruby-dev:19881]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Apr 2, 2003
1 parent 8d3e572 commit 153f513
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Wed Apr 02 15:11:23 2003 Nobuyoshi Nakada <[email protected]>

* README.EXT, README.EXT.ja (3.3): clarified -1 as free for
Data_Wrap_Struct(). [ruby-dev:19881]

Mon Mar 31 10:50:48 2003 Yukihiro Matsumoto <[email protected]>

* hash.c (env_reject_bang): untaint key string.
Expand Down
5 changes: 3 additions & 2 deletions README.EXT
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
3 changes: 2 additions & 1 deletion README.EXT.ja
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,8 @@ C
# ���Τ褦�ʻ��Ȥϴ�����ޤ���

free�Ϥ��ι�¤�Τ��⤦���פˤʤä����˸ƤФ��ؿ��Ǥ�������
�ؿ��������١������쥯������ƤФ�ޤ���
�ؿ��������١������쥯������ƤФ�ޤ������줬-1�ξ��ϡ�ñ
��˳�������ޤ���

C�ι�¤�Τγ�����Data���֥������Ȥ�������Ʊ���˹Ԥ��ޥ�����
���ưʲ��Τ�Τ��󶡤���Ƥ��ޤ���
Expand Down

0 comments on commit 153f513

Please sign in to comment.