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

ruby-changes:45407

From: nobu <ko1@a...>
Date: Tue, 31 Jan 2017 17:03:18 +0900 (JST)
Subject: [ruby-changes:45407] nobu:r57480 (trunk): mkmf.rb: message format string

nobu	2017-01-31 17:03:08 +0900 (Tue, 31 Jan 2017)

  New Revision: 57480

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

  Log:
    mkmf.rb: message format string
    
    * lib/mkmf.rb (checking_for): message needs format string.

  Modified files:
    trunk/lib/mkmf.rb
Index: lib/mkmf.rb
===================================================================
--- lib/mkmf.rb	(revision 57479)
+++ lib/mkmf.rb	(revision 57480)
@@ -943,10 +943,10 @@ SRC https://github.com/ruby/ruby/blob/trunk/lib/mkmf.rb#L943
     a = r = nil
     Logging::postpone do
       r = yield
-      a = (fmt ? "#{fmt % r}" : r ? "yes" : "no") << "\n"
-      "#{f}#{m}-------------------- #{a}\n"
+      a = (fmt ? "#{fmt % r}" : r ? "yes" : "no")
+      "#{f}#{m}-------------------- #{a}\n\n"
     end
-    message(a)
+    message "%s\n", a
     Logging::message "--------------------\n\n"
     r
   end

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

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