summaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-27 04:18:54 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-27 04:18:54 +0000
commitb12b8bf584952354cf506d8561d55a71b26d5bcc (patch)
tree71ea378089e3c7d6f19584830004483348311bf0 /string.c
parentde61f35fbce6a9fe227bd9718404ac45daf982cc (diff)
downloadruby-b12b8bf584952354cf506d8561d55a71b26d5bcc.tar.gz
ruby-b12b8bf584952354cf506d8561d55a71b26d5bcc.tar.xz
ruby-b12b8bf584952354cf506d8561d55a71b26d5bcc.zip
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@17598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/string.c b/string.c
index 7877e64a9..4746842f5 100644
--- a/string.c
+++ b/string.c
@@ -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;