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

ruby-changes:38872

From: nobu <ko1@a...>
Date: Thu, 18 Jun 2015 22:31:03 +0900 (JST)
Subject: [ruby-changes:38872] nobu:r50953 (trunk): make_encmake.rb: mandatory dbs

nobu	2015-06-18 22:30:44 +0900 (Thu, 18 Jun 2015)

  New Revision: 50953

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

  Log:
    make_encmake.rb: mandatory dbs
    
    * enc/make_encmake.rb (target_transcoders, target_encodings):
      encdb and transdb are always mandatory.

  Modified files:
    trunk/enc/make_encmake.rb
Index: enc/make_encmake.rb
===================================================================
--- enc/make_encmake.rb	(revision 50952)
+++ enc/make_encmake.rb	(revision 50953)
@@ -51,7 +51,7 @@ def target_encodings https://github.com/ruby/ruby/blob/trunk/enc/make_encmake.rb#L51
   deps = Hash.new {[]}
   inc_srcs = Hash.new {[]}
   default_deps = %w[regenc.h oniguruma.h config.h defines.h]
-  db = encs.delete("encdb")
+  encs.delete(db = "encdb")
   encs.each do |e|
     File.foreach("#$srcdir/#{e}.c") do |l|
       if /^\s*#\s*include\s+(?:"([^\"]+)"|<(ruby\/\sw+.h)>)/ =~ l
@@ -93,7 +93,8 @@ def target_transcoders https://github.com/ruby/ruby/blob/trunk/enc/make_encmake.rb#L93
   trans.uniq!
   atrans = atrans.sort_by(&ALPHANUMERIC_ORDER)
   trans = trans.sort_by(&ALPHANUMERIC_ORDER)
-  trans.unshift(trans.delete("transdb"))
+  trans.delete(db = "transdb")
+  trans.unshift(db)
   trans.compact!
   trans |= atrans
   trans.map! {|e| "trans/#{e}"}

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

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