diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-08-21 16:50:51 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-08-21 16:50:51 +0900 |
commit | f51a6ace06cecd193bf00747a63809849e254050 (patch) | |
tree | c0af1ee2fa6bfb151314bf0abbe5135afd7f2486 /doc | |
parent | 8f755ad6c88f5a2318c0f810f872b9e54daa517c (diff) |
[DOC] prefer RUBY_DEFAULT_FREE to a magic number [ci skip]
Diffstat (limited to 'doc')
-rw-r--r-- | doc/extension.ja.rdoc | 4 | ||||
-rw-r--r-- | doc/extension.rdoc | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/extension.ja.rdoc b/doc/extension.ja.rdoc index 37b4cb1453..5087b6785a 100644 --- a/doc/extension.ja.rdoc +++ b/doc/extension.ja.rdoc @@ -741,8 +741,8 @@ dmarkはガーベージコレクタがオブジェクトへの参照をマーク ++ dfreeはこの構造体がもう不要になった時に呼ばれる関数です.こ -の関数がガーベージコレクタから呼ばれます.これが-1の場合は, -単純に構造体が解放されます. +の関数がガーベージコレクタから呼ばれます.これが +RUBY_DEFAULT_FREEの場合は,単純に構造体が解放されます. dsizeは構造体が消費しているメモリのバイト数を返す関数です. 引数として構造体へのポインタが渡されます.実装困難であれば0 diff --git a/doc/extension.rdoc b/doc/extension.rdoc index fc83801b3d..a1ad930d7e 100644 --- a/doc/extension.rdoc +++ b/doc/extension.rdoc @@ -701,7 +701,7 @@ Note that it is recommended to avoid such a reference. ++ dfree is a function to free the pointer allocation. -If this is -1, the pointer will be just freed. +If this is RUBY_DEFAULT_FREE, the pointer will be just freed. dsize calculates memory consumption in bytes by the struct. Its parameter is a pointer to your struct. |