* array.c (tmpbuf): use rb_str_tmp_new().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a3f722abef
commit
0c48720b46
@ -1,3 +1,7 @@
|
|||||||
|
Wed Dec 26 13:29:35 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* array.c (tmpbuf): use rb_str_tmp_new().
|
||||||
|
|
||||||
Wed Dec 26 00:57:53 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Wed Dec 26 00:57:53 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* ext/json/ext/generator/generator.c (Init_generator): requires
|
* ext/json/ext/generator/generator.c (Init_generator): requires
|
||||||
|
10
array.c
10
array.c
@ -2969,14 +2969,8 @@ rb_ary_cycle(VALUE ary)
|
|||||||
return Qnil;
|
return Qnil;
|
||||||
}
|
}
|
||||||
|
|
||||||
static VALUE
|
VALUE rb_str_tmp_new(long);
|
||||||
tmpbuf(int n, int size)
|
#define tmpbuf(n, size) rb_str_tmp_new((n)*(size))
|
||||||
{
|
|
||||||
VALUE buf = rb_str_new(0, n*size);
|
|
||||||
|
|
||||||
RBASIC(buf)->klass = 0;
|
|
||||||
return buf;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Recursively compute permutations of r elements of the set [0..n-1].
|
* Recursively compute permutations of r elements of the set [0..n-1].
|
||||||
|
Loading…
x
Reference in New Issue
Block a user