From c67a74570dd056569763f5015e0aafa7d454fca7 Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 10 Jul 2000 04:49:24 +0000 Subject: matz git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- README.EXT | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'README.EXT') 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 -- cgit v1.2.3