summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-05 17:25:35 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-05 17:25:35 +0000
commitfb25833690a4e75bf3eb1d8afa65a2334d7282b1 (patch)
tree5675f800cf21be22a937deb1c1c1ef2bd6fc94db /string.c
parent7918dc352f5e93bc660e5083be638f38e07f7205 (diff)
node.c: NODE_ALLOCA for ALLOCV
* node.c (rb_alloc_tmp_buffer): use NODE_ALLOCA to mark locations like as builtin alloca. [ruby-core:70251] [Bug #11418] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/string.c b/string.c
index 2c4fc7405b..99799978cb 100644
--- a/string.c
+++ b/string.c
@@ -1116,22 +1116,6 @@ rb_str_tmp_new(long len)
return str_new(0, 0, len);
}
-void *
-rb_alloc_tmp_buffer(volatile VALUE *store, long len)
-{
- VALUE s = rb_str_tmp_new(len);
- *store = s;
- return RSTRING_PTR(s);
-}
-
-void
-rb_free_tmp_buffer(volatile VALUE *store)
-{
- VALUE s = *store;
- *store = 0;
- if (s) rb_str_clear(s);
-}
-
void
rb_str_free(VALUE str)
{