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

ruby-changes:27284

From: nobu <ko1@a...>
Date: Wed, 20 Feb 2013 21:06:20 +0900 (JST)
Subject: [ruby-changes:27284] nobu:r39336 (trunk): extmk.rb: rename variables

nobu	2013-02-20 21:06:10 +0900 (Wed, 20 Feb 2013)

  New Revision: 39336

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

  Log:
    extmk.rb: rename variables
    
    * ext/extmk.rb: rename working variables as more descriptive so no
      shadowing local variable warnings, and remove unused variables.

  Modified files:
    trunk/ext/extmk.rb

Index: ext/extmk.rb
===================================================================
--- ext/extmk.rb	(revision 39335)
+++ ext/extmk.rb	(revision 39336)
@@ -550,17 +550,18 @@ unless $extlist.empty? https://github.com/ruby/ruby/blob/trunk/ext/extmk.rb#L550
   list = $extlist.dup
   built = []
   while e = list.shift
-    s,t,i,r,os = e
-    if r and !(r -= built).empty?
+    _, target, feature, required = e
+    if required and !(required -= built).empty?
       l = list.size
-      if (while l > 0; break true if r.include?(list[l-=1][1]) end)
+      if (while l > 0; break true if required.include?(list[l-=1][1]) end)
         list.insert(l + 1, e)
       end
       next
     end
-    $extinit << "    init(Init_#{File.basename i}, \"#{i}.so\");\n"
-    $extobjs << format("ext/%s/%s.%s", t, File.basename(i), $LIBEXT)
-    built << t
+    base = File.basename(feature)
+    $extinit << "    init(Init_#{base}, \"#{feature}.so\");\n"
+    $extobjs << format("ext/%s/%s.%s", target, base, $LIBEXT)
+    built << target
   end
 
   src = %{\

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

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