diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-27 04:18:54 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-27 04:18:54 +0000 |
commit | 2983df49d5d7b7747056c7be0a3553537b3cc5eb (patch) | |
tree | 71ea378089e3c7d6f19584830004483348311bf0 /string.c | |
parent | 73567dc1037735de8c8abb7b5412ba52bedd767a (diff) | |
download | ruby-2983df49d5d7b7747056c7be0a3553537b3cc5eb.tar.gz |
* include/ruby/intern.h (rb_str_new2, rb_tainted_str_new2,
rb_usascii_str_new2): use with-length versions with strlen to
optimize strlen.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -25,6 +25,10 @@ #include <unistd.h> #endif +#undef rb_str_new2 +#undef rb_tainted_str_new2 +#undef rb_usascii_str_new2 + VALUE rb_cString; VALUE rb_cSymbol; |