From 77e74bef16ef1d600b8e907603d5d89379b479ee Mon Sep 17 00:00:00 2001 From: usa Date: Fri, 22 Apr 2016 09:32:01 +0000 Subject: * extension.rdoc, extension.ja.rdoc: [DOC] Fix some errors. Renamed files, wrong method names or argument types; the example GetDBM macro is now updated to the current version of the actual code. patches are derived from Marcus Stollsteimer in [ruby-core:74690]. [Bug #12228] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@54696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- README.EXT.ja | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'README.EXT.ja') diff --git a/README.EXT.ja b/README.EXT.ja index f4255ebb69..d67ea2a3ba 100644 --- a/README.EXT.ja +++ b/README.EXT.ja @@ -275,7 +275,7 @@ rb_utf8_str_new_cstr(const char *ptr) エンコーディングがUTF-8のRubyの文字列を生成する. -rb_usascii_str_new_literal(const char *ptr) +rb_utf8_str_new_literal(const char *ptr) Cのリテラル文字列からエンコーディングがUTF-8のRubyの文字列を生成する. @@ -808,8 +808,9 @@ Dataオブジェクトからdbmstruct構造体のポインタを取り出すた に以下のマクロを使っています. #define GetDBM(obj, dbmp) do {\ - Data_Get_Struct(obj, struct dbmdata, dbmp);\ - if (dbmp->di_dbm == 0) closed_dbm();\ + Data_Get_Struct((obj), struct dbmdata, (dbmp));\ + if ((dbmp) == 0) closed_dbm();\ + if ((dbmp)->di_dbm == 0) closed_dbm();\ } while (0) ちょっと複雑なマクロですが,要するにdbmdata構造体のポインタ @@ -986,10 +987,10 @@ variable.c :: 変数と定数 == Rubyの構文解析器 - parse.y : 字句解析器と構文定義 - -> parse.c : 自動生成 - keywords : 予約語 - -> lex.c : 自動生成 + parse.y : 字句解析器と構文定義 + -> parse.c : 自動生成 + defs/keywords : 予約語 + -> lex.c : 自動生成 == Rubyの評価器 (通称YARV) compile.c @@ -1009,12 +1010,12 @@ variable.c :: 変数と定数 vm_insnhelper.c vm_method.c - opt_insns_unif.def : 命令融合 - opt_operand.def : 最適化のための定義 + defs/opt_insns_unif.def : 命令融合 + defs/opt_operand.def : 最適化のための定義 - -> insn*.inc : 自動生成 - -> opt*.inc : 自動生成 - -> vm.inc : 自動生成 + -> insn*.inc : 自動生成 + -> opt*.inc : 自動生成 + -> vm.inc : 自動生成 == 正規表現エンジン (鬼車) -- cgit v1.2.3