diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-08-31 04:30:25 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-08-31 04:30:25 +0000 |
commit | 378161fe68f283599ce91cda3aaa3658af7c6e89 (patch) | |
tree | 04519222b65b8b8aea5199c56608e1e4b9c6dbb7 /internal.h | |
parent | 07bf69b0857d80b62e9fb1ac0886ee94ca8c2508 (diff) | |
download | ruby-378161fe68f283599ce91cda3aaa3658af7c6e89.tar.gz |
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
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal.h b/internal.h index e900c42271..377baa09ee 100644 --- a/internal.h +++ b/internal.h @@ -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); |