mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
static
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d7b06e282a
commit
499da5f2e7
1 changed files with 2 additions and 2 deletions
|
@ -1,13 +1,13 @@
|
||||||
#include "ruby.h"
|
#include "ruby.h"
|
||||||
#include "ruby/encoding.h"
|
#include "ruby/encoding.h"
|
||||||
|
|
||||||
VALUE
|
static VALUE
|
||||||
bug_str_buf_new(VALUE self, VALUE len)
|
bug_str_buf_new(VALUE self, VALUE len)
|
||||||
{
|
{
|
||||||
return rb_str_buf_new(NUM2LONG(len));
|
return rb_str_buf_new(NUM2LONG(len));
|
||||||
}
|
}
|
||||||
|
|
||||||
VALUE
|
static VALUE
|
||||||
bug_external_str_new(VALUE self, VALUE len, VALUE enc)
|
bug_external_str_new(VALUE self, VALUE len, VALUE enc)
|
||||||
{
|
{
|
||||||
return rb_external_str_new_with_enc(NULL, NUM2LONG(len), rb_to_encoding(enc));
|
return rb_external_str_new_with_enc(NULL, NUM2LONG(len), rb_to_encoding(enc));
|
||||||
|
|
Loading…
Reference in a new issue