summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/extension.ja.rdoc4
-rw-r--r--doc/extension.rdoc2
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.