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

ruby-changes:11912

From: takano32 <ko1@a...>
Date: Tue, 26 May 2009 11:10:53 +0900 (JST)
Subject: [ruby-changes:11912] Ruby:r23573 (trunk): Tue May 26 11:01:41 2009 TAKANO Mitsuhiro (takano32) <tak@n...>

takano32	2009-05-26 11:10:36 +0900 (Tue, 26 May 2009)

  New Revision: 23573

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

  Log:
    Tue May 26 11:01:41 2009  TAKANO Mitsuhiro (takano32)  <tak@n...>
    * lib/mkmf.rb: use map! to replace strings in $objs array.

  Modified files:
    trunk/ChangeLog
    trunk/lib/mkmf.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 23572)
+++ ChangeLog	(revision 23573)
@@ -1,3 +1,7 @@
+Tue May 26 11:01:41 2009  TAKANO Mitsuhiro (takano32)  <tak@n...>
+
+	* lib/mkmf.rb: use map! to replace strings in $objs array.
+
 Tue May 26 05:39:28 2009  Nobuyoshi Nakada  <nobu@r...>
 
 	* include/ruby/ruby.h (FilePathValue): prevent from GC.
Index: lib/mkmf.rb
===================================================================
--- lib/mkmf.rb	(revision 23572)
+++ lib/mkmf.rb	(revision 23573)
@@ -1654,8 +1654,8 @@
     srcs = $objs.collect {|o| o.sub(/\.o\z/, '.c')}
   end
   $srcs = srcs
-  for i in $objs
-    i = i.sub(/\.o\z/, ".#{$OBJEXT}")
+  $objs.map! do |obj|
+    obj.sub(/\.o\z/, ".#{$OBJEXT}")
   end
 
   target = nil if $objs.empty?

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

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