diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-22 09:32:01 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-22 09:32:01 +0000 |
commit | 77e74bef16ef1d600b8e907603d5d89379b479ee (patch) | |
tree | acaa1b37bce93acb0efde304bfd3601312fe7788 /README.EXT.ja | |
parent | 42569dd48e76824da8bfde04852b3af4de2b1a67 (diff) |
* 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
Diffstat (limited to 'README.EXT.ja')
-rw-r--r-- | README.EXT.ja | 25 |
1 files changed, 13 insertions, 12 deletions
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 : 自動生成 == 正規表現エンジン (鬼車) |