diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-03-17 00:55:45 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-03-17 00:55:45 +0000 |
commit | 05404cba6ef27ea76b30aa39d1c3b368c78c8e7d (patch) | |
tree | e8a9c655651d403740ee5a58364af7eb9ac07a92 /dir.c | |
parent | adce0ea944a9876107808fea5a5972089ae6d18b (diff) | |
download | ruby-05404cba6ef27ea76b30aa39d1c3b368c78c8e7d.tar.gz |
deduplicate "/", ":" and "\n" strings
"/" and ":" are always statically registered in symbol.c (Init_op_tbl),
and "\n" is a commonly seen in source code.
* file.c (Init_File): fstring on File::SEPARATOR and File::PATH_SEPARATOR
* io.c (Init_IO): fstring on rb_default_rs ("\n")
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
0 files changed, 0 insertions, 0 deletions