diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-07-10 04:49:24 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-07-10 04:49:24 +0000 |
commit | c67a74570dd056569763f5015e0aafa7d454fca7 (patch) | |
tree | f1dda39296b6911752cd4b6446a21f2e54ff68e1 /README.EXT | |
parent | 3043170b14875ce53f3a951d665279b12c2c63a8 (diff) | |
download | ruby-c67a74570dd056569763f5015e0aafa7d454fca7.tar.gz |
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'README.EXT')
-rw-r--r-- | README.EXT | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/README.EXT b/README.EXT index dc5126efaf..12d379e09b 100644 --- a/README.EXT +++ b/README.EXT @@ -150,6 +150,15 @@ interpreter. Useful functions are listed below (not all): Creates a new Ruby string from C string. This is equivalent to rb_str_new(ptr, strlen(ptr)). + rb_tainted_str_new(char *ptr, int len) + + Creates a new tainted Ruby string. Strings from external data + should be tainted. + + rb_tainted_str_new2(char *ptr) + + Creates a new tainted Ruby string from C string. + rb_str_cat(VALUE str, char *ptr, int len) Appends len bytes data from ptr to the Ruby string. @@ -266,6 +275,9 @@ in Kernel module, can be defined using: void rb_define_global_function(char *name, VALUE (*func)(), int argc) +To define alias to the method, + + void rb_define_alias(VALUE module, const char* new, const char* old); 2.1.3 Constant definition |