Fix function name for DBM on extension document.
Patch by Yuji Yaginuma, @y-yagi <yuuji.yaginuma@gmail.com> [ci skip][fix GH-1519] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
61701ae167
commit
17ee91960f
@ -865,7 +865,7 @@ Rubyは拡張ライブラリをロードする時に「Init_ライブラリ名
|
|||||||
DBMライブラリはdbmのデータと対応するオブジェクトになるはずで
|
DBMライブラリはdbmのデータと対応するオブジェクトになるはずで
|
||||||
すから,Cの世界のdbmをRubyの世界に取り込む必要があります.
|
すから,Cの世界のdbmをRubyの世界に取り込む必要があります.
|
||||||
|
|
||||||
dbm.cではData_Make_Structを以下のように使っています.
|
dbm.cではTypedData_Make_Structを以下のように使っています.
|
||||||
|
|
||||||
struct dbmdata {
|
struct dbmdata {
|
||||||
int di_size;
|
int di_size;
|
||||||
|
@ -802,7 +802,7 @@ Here's the example of an initializing function.
|
|||||||
}
|
}
|
||||||
|
|
||||||
The dbm extension wraps the dbm struct in the C environment using
|
The dbm extension wraps the dbm struct in the C environment using
|
||||||
Data_Make_Struct.
|
TypedData_Make_Struct.
|
||||||
|
|
||||||
struct dbmdata {
|
struct dbmdata {
|
||||||
int di_size;
|
int di_size;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user