From b12b8bf584952354cf506d8561d55a71b26d5bcc Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 27 Jun 2008 04:18:54 +0000 Subject: * 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 --- string.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'string.c') diff --git a/string.c b/string.c index 7877e64a9..4746842f5 100644 --- a/string.c +++ b/string.c @@ -25,6 +25,10 @@ #include #endif +#undef rb_str_new2 +#undef rb_tainted_str_new2 +#undef rb_usascii_str_new2 + VALUE rb_cString; VALUE rb_cSymbol; -- cgit