diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-16 05:31:54 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-16 05:31:54 +0000 |
commit | c4fdfabcc8ea3f6186d1560f7756211fce125be3 (patch) | |
tree | 52953802cfeae93908e52c59596365a3e946118b /ext/-test- | |
parent | 183c1a0fa1c9599f613ea8f4c54ed5229354714f (diff) | |
download | ruby-c4fdfabcc8ea3f6186d1560f7756211fce125be3.tar.gz |
handle ext/ as r53141
g -L frozen_string_literal ext/**/*.rb|xargs ruby -Ka -e'ARGV.each{|fn|puts
fn;open(fn,"r+"){|f|s=f.read.sub(/\A(#!.*\n)?(#.*coding.*\n)?/,"\\&#
frozen_string_literal: false\n");f.rewind;f.write s}}'
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/-test-')
44 files changed, 44 insertions, 0 deletions
diff --git a/ext/-test-/array/resize/extconf.rb b/ext/-test-/array/resize/extconf.rb index 6500a878fc..bc827e1170 100644 --- a/ext/-test-/array/resize/extconf.rb +++ b/ext/-test-/array/resize/extconf.rb @@ -1 +1,2 @@ +# frozen_string_literal: false create_makefile("-test-/array/resize") diff --git a/ext/-test-/bignum/extconf.rb b/ext/-test-/bignum/extconf.rb index e8c1febc82..34f503ca87 100644 --- a/ext/-test-/bignum/extconf.rb +++ b/ext/-test-/bignum/extconf.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false $INCFLAGS << " -I$(topdir) -I$(top_srcdir)" $srcs = Dir[File.join($srcdir, "*.{#{SRC_EXT.join(%q{,})}}")] inits = $srcs.map {|s| File.basename(s, ".*")} diff --git a/ext/-test-/bug-3571/extconf.rb b/ext/-test-/bug-3571/extconf.rb index 6390fce219..10b3bb304b 100644 --- a/ext/-test-/bug-3571/extconf.rb +++ b/ext/-test-/bug-3571/extconf.rb @@ -1 +1,2 @@ +# frozen_string_literal: false create_makefile("-test-/bug-3571/bug") diff --git a/ext/-test-/bug-5832/extconf.rb b/ext/-test-/bug-5832/extconf.rb index 55a4b7d93f..948e7791b6 100644 --- a/ext/-test-/bug-5832/extconf.rb +++ b/ext/-test-/bug-5832/extconf.rb @@ -1 +1,2 @@ +# frozen_string_literal: false create_makefile("-test-/bug-5832/bug") diff --git a/ext/-test-/bug_reporter/extconf.rb b/ext/-test-/bug_reporter/extconf.rb index 0fccd81a41..fb2ed40342 100644 --- a/ext/-test-/bug_reporter/extconf.rb +++ b/ext/-test-/bug_reporter/extconf.rb @@ -1 +1,2 @@ +# frozen_string_literal: false create_makefile("-test-/bug_reporter/bug_reporter") diff --git a/ext/-test-/class/extconf.rb b/ext/-test-/class/extconf.rb index a07d660b87..1c7837d07a 100644 --- a/ext/-test-/class/extconf.rb +++ b/ext/-test-/class/extconf.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false $INCFLAGS << " -I$(topdir) -I$(top_srcdir)" $srcs = Dir[File.join($srcdir, "*.{#{SRC_EXT.join(%q{,})}}")] inits = $srcs.map {|s| File.basename(s, ".*")} diff --git a/ext/-test-/debug/extconf.rb b/ext/-test-/debug/extconf.rb index 8f7922e1a6..0f34383165 100644 --- a/ext/-test-/debug/extconf.rb +++ b/ext/-test-/debug/extconf.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false $srcs = Dir[File.join($srcdir, "*.{#{SRC_EXT.join(%q{,})}}")] inits = $srcs.map {|s| File.basename(s, ".*")} inits.delete("init") diff --git a/ext/-test-/dln/empty/extconf.rb b/ext/-test-/dln/empty/extconf.rb index 6110887b3d..20310b6dde 100644 --- a/ext/-test-/dln/empty/extconf.rb +++ b/ext/-test-/dln/empty/extconf.rb @@ -1 +1,2 @@ +# frozen_string_literal: false create_makefile("-test-/dln/empty") diff --git a/ext/-test-/exception/extconf.rb b/ext/-test-/exception/extconf.rb index 0faf6d53ed..55bbb1fc3e 100644 --- a/ext/-test-/exception/extconf.rb +++ b/ext/-test-/exception/extconf.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false $srcs = Dir[File.join($srcdir, "*.{#{SRC_EXT.join(%q{,})}}")] inits = $srcs.map {|s| File.basename(s, ".*")} inits.delete("init") diff --git a/ext/-test-/fatal/extconf.rb b/ext/-test-/fatal/extconf.rb index e0cfeb2095..d5849c0733 100644 --- a/ext/-test-/fatal/extconf.rb +++ b/ext/-test-/fatal/extconf.rb @@ -1 +1,2 @@ +# frozen_string_literal: false create_makefile("-test-/fatal/rb_fatal") diff --git a/ext/-test-/file/extconf.rb b/ext/-test-/file/extconf.rb index 87a2f4a205..c4cfdadcaf 100644 --- a/ext/-test-/file/extconf.rb +++ b/ext/-test-/file/extconf.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false $INCFLAGS << " -I$(topdir) -I$(top_srcdir)" headers = %w[sys/param.h sys/mount.h sys/vfs.h].select {|h| have_header(h)} diff --git a/ext/-test-/float/extconf.rb b/ext/-test-/float/extconf.rb index 0a9a299aa5..15709a1def 100644 --- a/ext/-test-/float/extconf.rb +++ b/ext/-test-/float/extconf.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false $INCFLAGS << " -I$(topdir) -I$(top_srcdir)" $srcs = Dir[File.join($srcdir, "*.{#{SRC_EXT.join(%q{,})}}")] inits = $srcs.map {|s| File.basename(s, ".*")} diff --git a/ext/-test-/funcall/extconf.rb b/ext/-test-/funcall/extconf.rb index 8a9179ab2f..35c3078bf5 100644 --- a/ext/-test-/funcall/extconf.rb +++ b/ext/-test-/funcall/extconf.rb @@ -1,2 +1,3 @@ +# frozen_string_literal: false require 'mkmf' create_makefile("-test-/funcall/funcall") diff --git a/ext/-test-/gvl/call_without_gvl/extconf.rb b/ext/-test-/gvl/call_without_gvl/extconf.rb index 601944c9e5..56181b6773 100644 --- a/ext/-test-/gvl/call_without_gvl/extconf.rb +++ b/ext/-test-/gvl/call_without_gvl/extconf.rb @@ -1 +1,2 @@ +# frozen_string_literal: false create_makefile("-test-/gvl/call_without_gvl") diff --git a/ext/-test-/hash/extconf.rb b/ext/-test-/hash/extconf.rb index 9d4ef4f935..c823cb95b2 100644 --- a/ext/-test-/hash/extconf.rb +++ b/ext/-test-/hash/extconf.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false $INCFLAGS << " -I$(topdir) -I$(top_srcdir)" $srcs = Dir[File.join($srcdir, "*.{#{SRC_EXT.join(%q{,})}}")] inits = $srcs.map {|s| File.basename(s, ".*")} diff --git a/ext/-test-/iseq_load/extconf.rb b/ext/-test-/iseq_load/extconf.rb index 860f30befd..c5bd6c0569 100644 --- a/ext/-test-/iseq_load/extconf.rb +++ b/ext/-test-/iseq_load/extconf.rb @@ -1 +1,2 @@ +# frozen_string_literal: false create_makefile("-test-/iseq_load/iseq_load") diff --git a/ext/-test-/iter/extconf.rb b/ext/-test-/iter/extconf.rb index 0ba99691bd..a0f03e23a9 100644 --- a/ext/-test-/iter/extconf.rb +++ b/ext/-test-/iter/extconf.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false $INCFLAGS << " -I$(topdir) -I$(top_srcdir)" $srcs = Dir[File.join($srcdir, "*.{#{SRC_EXT.join(%q{,})}}")] inits = $srcs.map {|s| File.basename(s, ".*")} diff --git a/ext/-test-/load/dot.dot/extconf.rb b/ext/-test-/load/dot.dot/extconf.rb index 6287db6bd8..b5292c77f0 100644 --- a/ext/-test-/load/dot.dot/extconf.rb +++ b/ext/-test-/load/dot.dot/extconf.rb @@ -1 +1,2 @@ +# frozen_string_literal: false create_makefile("-test-/load/dot.dot/dot.dot") diff --git a/ext/-test-/marshal/compat/extconf.rb b/ext/-test-/marshal/compat/extconf.rb index bb11ebfb8c..9bf44b473a 100644 --- a/ext/-test-/marshal/compat/extconf.rb +++ b/ext/-test-/marshal/compat/extconf.rb @@ -1 +1,2 @@ +# frozen_string_literal: false create_makefile("-test-/marshal/compat") diff --git a/ext/-test-/marshal/internal_ivar/extconf.rb b/ext/-test-/marshal/internal_ivar/extconf.rb index 9b905d91d7..cb3f825dbd 100644 --- a/ext/-test-/marshal/internal_ivar/extconf.rb +++ b/ext/-test-/marshal/internal_ivar/extconf.rb @@ -1 +1,2 @@ +# frozen_string_literal: false create_makefile("-test-/marshal/internal_ivar") diff --git a/ext/-test-/marshal/usr/extconf.rb b/ext/-test-/marshal/usr/extconf.rb index c662b23dd5..b7886b9eea 100644 --- a/ext/-test-/marshal/usr/extconf.rb +++ b/ext/-test-/marshal/usr/extconf.rb @@ -1 +1,2 @@ +# frozen_string_literal: false create_makefile("-test-/marshal/usr") diff --git a/ext/-test-/method/extconf.rb b/ext/-test-/method/extconf.rb index 658b7af1f1..3a52c1a822 100644 --- a/ext/-test-/method/extconf.rb +++ b/ext/-test-/method/extconf.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false $srcs = Dir[File.join($srcdir, "*.{#{SRC_EXT.join(%q{,})}}")] inits = $srcs.map {|s| File.basename(s, ".*")} inits.delete("init") diff --git a/ext/-test-/notimplement/extconf.rb b/ext/-test-/notimplement/extconf.rb index a2feb77a94..54403cd7ce 100644 --- a/ext/-test-/notimplement/extconf.rb +++ b/ext/-test-/notimplement/extconf.rb @@ -1 +1,2 @@ +# frozen_string_literal: false create_makefile("-test-/notimplement") diff --git a/ext/-test-/num2int/extconf.rb b/ext/-test-/num2int/extconf.rb index 2bc820e480..c585462921 100644 --- a/ext/-test-/num2int/extconf.rb +++ b/ext/-test-/num2int/extconf.rb @@ -1 +1,2 @@ +# frozen_string_literal: false create_makefile("-test-/num2int/num2int") diff --git a/ext/-test-/path_to_class/extconf.rb b/ext/-test-/path_to_class/extconf.rb index e1072b1443..8f05248d87 100644 --- a/ext/-test-/path_to_class/extconf.rb +++ b/ext/-test-/path_to_class/extconf.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false $srcs = Dir[File.join($srcdir, "*.{#{SRC_EXT.join(%q{,})}}")] inits = $srcs.map {|s| File.basename(s, ".*")} inits.delete("init") diff --git a/ext/-test-/popen_deadlock/extconf.rb b/ext/-test-/popen_deadlock/extconf.rb index f993ff7f9a..24a7d79931 100644 --- a/ext/-test-/popen_deadlock/extconf.rb +++ b/ext/-test-/popen_deadlock/extconf.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false case RUBY_PLATFORM when /solaris/i, /linux/i create_makefile("-test-/popen_deadlock/infinite_loop_dlsym") diff --git a/ext/-test-/postponed_job/extconf.rb b/ext/-test-/postponed_job/extconf.rb index aa29b593f4..58fbd3b461 100644 --- a/ext/-test-/postponed_job/extconf.rb +++ b/ext/-test-/postponed_job/extconf.rb @@ -1 +1,2 @@ +# frozen_string_literal: false create_makefile('-test-/postponed_job') diff --git a/ext/-test-/printf/extconf.rb b/ext/-test-/printf/extconf.rb index 7b96da0c85..fb8fa8de36 100644 --- a/ext/-test-/printf/extconf.rb +++ b/ext/-test-/printf/extconf.rb @@ -1 +1,2 @@ +# frozen_string_literal: false create_makefile("-test-/printf") diff --git a/ext/-test-/proc/extconf.rb b/ext/-test-/proc/extconf.rb index 40741d07cc..9f87575749 100644 --- a/ext/-test-/proc/extconf.rb +++ b/ext/-test-/proc/extconf.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false $INCFLAGS << " -I$(topdir) -I$(top_srcdir)" $srcs = Dir[File.join($srcdir, "*.{#{SRC_EXT.join(%q{,})}}")] inits = $srcs.map {|s| File.basename(s, ".*")} diff --git a/ext/-test-/rational/extconf.rb b/ext/-test-/rational/extconf.rb index bd658def46..28c5d690c1 100644 --- a/ext/-test-/rational/extconf.rb +++ b/ext/-test-/rational/extconf.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false $INCFLAGS << " -I$(topdir) -I$(top_srcdir)" $srcs = Dir[File.join($srcdir, "*.{#{SRC_EXT.join(%q{,})}}")] inits = $srcs.map {|s| File.basename(s, ".*")} diff --git a/ext/-test-/recursion/extconf.rb b/ext/-test-/recursion/extconf.rb index 92b28657f0..13828113f0 100644 --- a/ext/-test-/recursion/extconf.rb +++ b/ext/-test-/recursion/extconf.rb @@ -1,2 +1,3 @@ +# frozen_string_literal: false require 'mkmf' create_makefile("-test-/recursion") diff --git a/ext/-test-/st/foreach/extconf.rb b/ext/-test-/st/foreach/extconf.rb index 969f386ff9..a7346203c4 100644 --- a/ext/-test-/st/foreach/extconf.rb +++ b/ext/-test-/st/foreach/extconf.rb @@ -1 +1,2 @@ +# frozen_string_literal: false create_makefile("-test-/st/foreach") diff --git a/ext/-test-/st/numhash/extconf.rb b/ext/-test-/st/numhash/extconf.rb index 867fd75d2a..27d28a0a77 100644 --- a/ext/-test-/st/numhash/extconf.rb +++ b/ext/-test-/st/numhash/extconf.rb @@ -1 +1,2 @@ +# frozen_string_literal: false create_makefile("-test-/st/numhash") diff --git a/ext/-test-/st/update/extconf.rb b/ext/-test-/st/update/extconf.rb index 96dbae43ab..5152b24229 100644 --- a/ext/-test-/st/update/extconf.rb +++ b/ext/-test-/st/update/extconf.rb @@ -1 +1,2 @@ +# frozen_string_literal: false create_makefile("-test-/st/update") diff --git a/ext/-test-/string/extconf.rb b/ext/-test-/string/extconf.rb index 9981a4d603..5e8b709c8a 100644 --- a/ext/-test-/string/extconf.rb +++ b/ext/-test-/string/extconf.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false $INCFLAGS << " -I$(topdir) -I$(top_srcdir)" $srcs = Dir[File.join($srcdir, "*.{#{SRC_EXT.join(%q{,})}}")] inits = $srcs.map {|s| File.basename(s, ".*")} diff --git a/ext/-test-/struct/extconf.rb b/ext/-test-/struct/extconf.rb index 0e4f9551f2..3b01a193fc 100644 --- a/ext/-test-/struct/extconf.rb +++ b/ext/-test-/struct/extconf.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false $INCFLAGS << " -I$(topdir) -I$(top_srcdir)" $srcs = Dir[File.join($srcdir, "*.{#{SRC_EXT.join(%q{,})}}")] inits = $srcs.map {|s| File.basename(s, ".*")} diff --git a/ext/-test-/symbol/extconf.rb b/ext/-test-/symbol/extconf.rb index fc00ec9abf..f62fd47c11 100644 --- a/ext/-test-/symbol/extconf.rb +++ b/ext/-test-/symbol/extconf.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false $srcs = Dir[File.join($srcdir, "*.{#{SRC_EXT.join(%q{,})}}")] inits = $srcs.map {|s| File.basename(s, ".*")} inits.delete("init") diff --git a/ext/-test-/time/extconf.rb b/ext/-test-/time/extconf.rb index b9741992d1..c0b193445c 100644 --- a/ext/-test-/time/extconf.rb +++ b/ext/-test-/time/extconf.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false $INCFLAGS << " -I$(topdir) -I$(top_srcdir)" $srcs = Dir[File.join($srcdir, "*.{#{SRC_EXT.join(%q{,})}}")] inits = $srcs.map {|s| File.basename(s, ".*")} diff --git a/ext/-test-/tracepoint/extconf.rb b/ext/-test-/tracepoint/extconf.rb index c0c2399eb4..2b7258d072 100644 --- a/ext/-test-/tracepoint/extconf.rb +++ b/ext/-test-/tracepoint/extconf.rb @@ -1 +1,2 @@ +# frozen_string_literal: false create_makefile("-test-/tracepoint") diff --git a/ext/-test-/typeddata/extconf.rb b/ext/-test-/typeddata/extconf.rb index 02e3e41c8b..84b92c7530 100644 --- a/ext/-test-/typeddata/extconf.rb +++ b/ext/-test-/typeddata/extconf.rb @@ -1 +1,2 @@ +# frozen_string_literal: false create_makefile("-test-/typeddata/typeddata") diff --git a/ext/-test-/wait_for_single_fd/extconf.rb b/ext/-test-/wait_for_single_fd/extconf.rb index 1a28b23da3..edb18746d1 100644 --- a/ext/-test-/wait_for_single_fd/extconf.rb +++ b/ext/-test-/wait_for_single_fd/extconf.rb @@ -1 +1,2 @@ +# frozen_string_literal: false create_makefile("-test-/wait_for_single_fd/wait_for_single_fd") diff --git a/ext/-test-/win32/console/extconf.rb b/ext/-test-/win32/console/extconf.rb index 4de9fa7e4f..fb9ef9d524 100644 --- a/ext/-test-/win32/console/extconf.rb +++ b/ext/-test-/win32/console/extconf.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false if $mingw or $mswin $srcs = Dir[File.join($srcdir, "*.{#{SRC_EXT.join(%q{,})}}")] inits = $srcs.map {|s| File.basename(s, ".*")} diff --git a/ext/-test-/win32/dln/extconf.rb b/ext/-test-/win32/dln/extconf.rb index edc02ac3f2..55c2d16d1e 100644 --- a/ext/-test-/win32/dln/extconf.rb +++ b/ext/-test-/win32/dln/extconf.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false if $mingw or $mswin dlntestlib = "dlntest.#{$LIBEXT}" $LOCAL_LIBS << " #{dlntestlib}" diff --git a/ext/-test-/win32/fd_setsize/extconf.rb b/ext/-test-/win32/fd_setsize/extconf.rb index ed40f8b1d7..caa4b85a1b 100644 --- a/ext/-test-/win32/fd_setsize/extconf.rb +++ b/ext/-test-/win32/fd_setsize/extconf.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false if $mingw or $mswin create_makefile("-test-/win32/fd_setsize") end |