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

ruby-changes:34925

From: ktsj <ko1@a...>
Date: Wed, 30 Jul 2014 23:32:02 +0900 (JST)
Subject: [ruby-changes:34925] ktsj:r47008 (trunk): * sprintf.c (rb_str_format): like r47006, get rid of

ktsj	2014-07-30 23:31:53 +0900 (Wed, 30 Jul 2014)

  New Revision: 47008

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

  Log:
    * sprintf.c (rb_str_format): like r47006, get rid of
      function calls in RSTRING_PTR().

  Modified files:
    trunk/ChangeLog
    trunk/sprintf.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 47007)
+++ ChangeLog	(revision 47008)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Jul 30 23:28:10 2014  Kazuki Tsujimoto  <kazuki@c...>
+
+	* sprintf.c (rb_str_format): like r47006, get rid of
+	  function calls in RSTRING_PTR().
+
 Wed Jul 30 22:10:29 2014  Kazuki Tsujimoto  <kazuki@c...>
 
 	* process.c (rlimit_resource_type, rlimit_resource_value):
Index: sprintf.c
===================================================================
--- sprintf.c	(revision 47007)
+++ sprintf.c	(revision 47008)
@@ -602,8 +602,8 @@ rb_str_format(int argc, const VALUE *arg https://github.com/ruby/ruby/blob/trunk/sprintf.c#L602
 #endif
 		len = (int)(p - start + 1); /* including parenthesis */
 		if (sym != Qnil) {
-		    rb_enc_raise(enc, rb_eArgError, "named%.*s after <%s>",
-				 len, start, RSTRING_PTR(rb_sym2str(sym)));
+		    rb_enc_raise(enc, rb_eArgError, "named%.*s after <%"PRIsVALUE">",
+				 len, start, rb_sym2str(sym));
 		}
 		CHECKNAMEARG(start, len, enc);
 		get_hash(&hash, argc, argv);

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

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