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 | e3b0d7320d8ce77a23840a3027ab3678c152ab3a (patch) | |
tree | f1dda39296b6911752cd4b6446a21f2e54ff68e1 /README.EXT | |
parent | 950abe3995d64e96d387eb01f34ec146296b306f (diff) | |
download | ruby-e3b0d7320d8ce77a23840a3027ab3678c152ab3a.tar.gz ruby-e3b0d7320d8ce77a23840a3027ab3678c152ab3a.tar.xz ruby-e3b0d7320d8ce77a23840a3027ab3678c152ab3a.zip |
matz
git-svn-id: http://svn.ruby-lang.org/repos/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 dc5126efa..12d379e09 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 |