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

ruby-changes:29736

From: nobu <ko1@a...>
Date: Fri, 5 Jul 2013 10:53:49 +0900 (JST)
Subject: [ruby-changes:29736] nobu:r41788 (trunk): mkmf.rb: config_string

nobu	2013-07-05 10:53:38 +0900 (Fri, 05 Jul 2013)

  New Revision: 41788

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

  Log:
    mkmf.rb: config_string
    
    * lib/mkmf.rb (CPPOUTFILE): use config_string.

  Modified files:
    trunk/lib/mkmf.rb

Index: lib/mkmf.rb
===================================================================
--- lib/mkmf.rb	(revision 41787)
+++ lib/mkmf.rb	(revision 41788)
@@ -251,7 +251,7 @@ module MakeMakefile https://github.com/ruby/ruby/blob/trunk/lib/mkmf.rb#L251
 
   OUTFLAG = CONFIG['OUTFLAG']
   COUTFLAG = CONFIG['COUTFLAG']
-  CPPOUTFILE = CONFIG['CPPOUTFILE'] ? CONFIG['CPPOUTFILE'].sub(/\bconftest\b/, CONFTEST) : nil
+  CPPOUTFILE = config_string('CPPOUTFILE') {|str| str.sub(/\bconftest\b/, CONFTEST)}
 
   def rm_f(*files)
     opt = (Hash === files.last ? [files.pop] : [])

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

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