dir.c: reduce string object

* dir.c (dir_each): get rid of allocate new string from UTF-8 string.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-08-31 04:30:25 +00:00
parent 07bf69b085
commit 378161fe68
3 changed files with 12 additions and 4 deletions

View file

@ -434,6 +434,9 @@ VALUE rb_id_quote_unprintable(ID);
#define QUOTE_ID(id) rb_id_quote_unprintable(id)
void rb_str_fill_terminator(VALUE str, const int termlen);
VALUE rb_str_locktmp_ensure(VALUE str, VALUE (*func)(VALUE), VALUE arg);
#ifdef RUBY_ENCODING_H
VALUE rb_external_str_with_enc(VALUE str, rb_encoding *eenc);
#endif
/* struct.c */
VALUE rb_struct_init_copy(VALUE copy, VALUE s);