mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3043170b14
commit
c67a74570d
22 changed files with 560 additions and 440 deletions
|
@ -180,6 +180,16 @@ Ruby
|
|||
Cの文字列からRubyの文字列を生成する.この関数の機能は
|
||||
rb_str_new(ptr, strlen(ptr))と同等である.
|
||||
|
||||
rb_tainted_str_new(char *ptr, int len)
|
||||
|
||||
汚染マークが付加された新しいRubyの文字列を生成する.外部
|
||||
からのデータに基づく文字列には汚染マークが付加されるべき
|
||||
である.
|
||||
|
||||
rb_tainted_str_new2(char *ptr)
|
||||
|
||||
Cの文字列から汚染マークが付加されたRubyの文字列を生成する.
|
||||
|
||||
rb_str_cat(VALUE str, char *ptr, int len)
|
||||
|
||||
Rubyの文字列strにlenバイトの文字列ptrを追加する.
|
||||
|
@ -307,6 +317,10 @@ private
|
|||
void rb_define_global_function(char *name, VALUE (*func)(), int argc)
|
||||
|
||||
|
||||
メソッドの別名を定義するための関数は以下の通りです。
|
||||
|
||||
void rb_define_alias(VALUE module, const char* new, const char* old);
|
||||
|
||||
2.1.3 定数定義
|
||||
|
||||
拡張ライブラリが必要な定数はあらかじめ定義しておいた方が良い
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue