From f51a6ace06cecd193bf00747a63809849e254050 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 21 Aug 2021 16:50:51 +0900 Subject: [DOC] prefer RUBY_DEFAULT_FREE to a magic number [ci skip] --- doc/extension.ja.rdoc | 4 ++-- doc/extension.rdoc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'doc') 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. -- cgit v1.2.3