summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-14 10:52:17 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-14 10:52:17 +0000
commite926ef5233cc9f1035d3d51068abe9df8b5429da (patch)
treebad49abdc709d3d53e01ea86153bd1bd05cfcf15 /string.c
parent68cab8a24bcc81494ffc6335056097731a27dcde (diff)
* random.c (rb_genrand_int32, rb_genrand_real), intern.h: Export.
* string.c (rb_str_tmp_new), intern.h: New function. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/string.c b/string.c
index 403d595527..2bebf06c03 100644
--- a/string.c
+++ b/string.c
@@ -251,6 +251,13 @@ rb_str_buf_new2(ptr)
}
VALUE
+rb_str_tmp_new(len)
+ long len;
+{
+ return str_new(0, 0, len);
+}
+
+VALUE
rb_str_to_str(str)
VALUE str;
{