ruby-changes:4136
From: ko1@a...
Date: Thu, 28 Feb 2008 14:38:34 +0900 (JST)
Subject: [ruby-changes:4136] naruse - Ruby:r15626 (trunk): * string.c (rb_enc_str_copy): removed.
naruse 2008-02-28 14:38:16 +0900 (Thu, 28 Feb 2008) New Revision: 15626 Modified files: trunk/ChangeLog trunk/string.c Log: * string.c (rb_enc_str_copy): removed. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/string.c?r1=15626&r2=15625&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=15626&r2=15625&diff_format=u Index: ChangeLog =================================================================== --- ChangeLog (revision 15625) +++ ChangeLog (revision 15626) @@ -1,3 +1,7 @@ +Thu Feb 28 14:36:46 2008 NARUSE, Yui <naruse@r...> + + * string.c (rb_enc_str_copy): removed. + Thu Feb 28 13:51:59 2008 Nobuyoshi Nakada <nobu@r...> * eval.c (stack_check): made flag per threads. Index: string.c =================================================================== --- string.c (revision 15625) +++ string.c (revision 15626) @@ -253,19 +253,7 @@ } } -#if 0 static void -rb_enc_str_copy(VALUE dest, VALUE src) -{ - rb_enc_copy(dest, src); - if (RSTRING_PTR(dest) == RSTRING_PTR(src) && - RSTRING_LEN(dest) == RSTRING_LEN(src)) { - ENC_CODERANGE_SET(dest, ENC_CODERANGE(src)); - } -} -#endif - -static void rb_enc_cr_str_copy_for_substr(VALUE dest, VALUE src) { /* this function is designed for copying encoding and coderange -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/