[前][次][番号順一覧][スレッド一覧]

ruby-changes:33566

From: nobu <ko1@a...>
Date: Mon, 21 Apr 2014 17:31:35 +0900 (JST)
Subject: [ruby-changes:33566] nobu:r45647 (trunk): string.c: rename rb_str_splice as rb_str_update

nobu	2014-04-21 17:31:30 +0900 (Mon, 21 Apr 2014)

  New Revision: 45647

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45647

  Log:
    string.c: rename rb_str_splice as rb_str_update
    
    * string.c (rb_str_update): rename rb_str_splice as exported name
      rb_str_update, and make the former an alias macro of the latter.

  Modified files:
    trunk/string.c
Index: string.c
===================================================================
--- string.c	(revision 45646)
+++ string.c	(revision 45647)
@@ -3600,8 +3600,8 @@ rb_str_splice_0(VALUE str, long beg, lon https://github.com/ruby/ruby/blob/trunk/string.c#L3600
     OBJ_INFECT(str, val);
 }
 
-static void
-rb_str_splice(VALUE str, long beg, long len, VALUE val)
+void
+rb_str_update(VALUE str, long beg, long len, VALUE val)
 {
     long slen;
     char *p, *e;
@@ -3643,11 +3643,7 @@ rb_str_splice(VALUE str, long beg, long https://github.com/ruby/ruby/blob/trunk/string.c#L3643
 	ENC_CODERANGE_SET(str, cr);
 }
 
-void
-rb_str_update(VALUE str, long beg, long len, VALUE val)
-{
-    rb_str_splice(str, beg, len, val);
-}
+#define rb_str_splice(str, beg, len, val) rb_str_update(str, beg, len, val)
 
 static void
 rb_str_subpat_set(VALUE str, VALUE re, VALUE backref, VALUE val)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]