1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
naruse 2015-12-16 05:31:54 +00:00
parent 183c1a0fa1
commit c4fdfabcc8
854 changed files with 854 additions and 0 deletions

View file

@ -1 +1,2 @@
# frozen_string_literal: false
create_makefile("-test-/array/resize")

View file

@ -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, ".*")}

View file

@ -1 +1,2 @@
# frozen_string_literal: false
create_makefile("-test-/bug-3571/bug")

View file

@ -1 +1,2 @@
# frozen_string_literal: false
create_makefile("-test-/bug-5832/bug")

View file

@ -1 +1,2 @@
# frozen_string_literal: false
create_makefile("-test-/bug_reporter/bug_reporter")

View file

@ -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, ".*")}

View file

@ -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")

View file

@ -1 +1,2 @@
# frozen_string_literal: false
create_makefile("-test-/dln/empty")

View file

@ -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")

View file

@ -1 +1,2 @@
# frozen_string_literal: false
create_makefile("-test-/fatal/rb_fatal")

View file

@ -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)}

View file

@ -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, ".*")}

View file

@ -1,2 +1,3 @@
# frozen_string_literal: false
require 'mkmf'
create_makefile("-test-/funcall/funcall")

View file

@ -1 +1,2 @@
# frozen_string_literal: false
create_makefile("-test-/gvl/call_without_gvl")

View file

@ -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, ".*")}

View file

@ -1 +1,2 @@
# frozen_string_literal: false
create_makefile("-test-/iseq_load/iseq_load")

View file

@ -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, ".*")}

View file

@ -1 +1,2 @@
# frozen_string_literal: false
create_makefile("-test-/load/dot.dot/dot.dot")

View file

@ -1 +1,2 @@
# frozen_string_literal: false
create_makefile("-test-/marshal/compat")

View file

@ -1 +1,2 @@
# frozen_string_literal: false
create_makefile("-test-/marshal/internal_ivar")

View file

@ -1 +1,2 @@
# frozen_string_literal: false
create_makefile("-test-/marshal/usr")

View file

@ -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")

View file

@ -1 +1,2 @@
# frozen_string_literal: false
create_makefile("-test-/notimplement")

View file

@ -1 +1,2 @@
# frozen_string_literal: false
create_makefile("-test-/num2int/num2int")

View file

@ -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")

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
case RUBY_PLATFORM
when /solaris/i, /linux/i
create_makefile("-test-/popen_deadlock/infinite_loop_dlsym")

View file

@ -1 +1,2 @@
# frozen_string_literal: false
create_makefile('-test-/postponed_job')

View file

@ -1 +1,2 @@
# frozen_string_literal: false
create_makefile("-test-/printf")

View file

@ -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, ".*")}

View file

@ -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, ".*")}

View file

@ -1,2 +1,3 @@
# frozen_string_literal: false
require 'mkmf'
create_makefile("-test-/recursion")

View file

@ -1 +1,2 @@
# frozen_string_literal: false
create_makefile("-test-/st/foreach")

View file

@ -1 +1,2 @@
# frozen_string_literal: false
create_makefile("-test-/st/numhash")

View file

@ -1 +1,2 @@
# frozen_string_literal: false
create_makefile("-test-/st/update")

View file

@ -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, ".*")}

View file

@ -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, ".*")}

View file

@ -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")

View file

@ -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, ".*")}

View file

@ -1 +1,2 @@
# frozen_string_literal: false
create_makefile("-test-/tracepoint")

View file

@ -1 +1,2 @@
# frozen_string_literal: false
create_makefile("-test-/typeddata/typeddata")

View file

@ -1 +1,2 @@
# frozen_string_literal: false
create_makefile("-test-/wait_for_single_fd/wait_for_single_fd")

View file

@ -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, ".*")}

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
if $mingw or $mswin
dlntestlib = "dlntest.#{$LIBEXT}"
$LOCAL_LIBS << " #{dlntestlib}"

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
if $mingw or $mswin
create_makefile("-test-/win32/fd_setsize")
end

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
require 'mkmf'
have_func("labs", "stdlib.h")

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# require 'bigdecimal/jacobian'
#

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
require 'bigdecimal'
#

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
require 'bigdecimal'
#

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
require "bigdecimal/ludcmp"
require "bigdecimal/jacobian"

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
# BigDecimal extends the native Integer class to provide the #to_d method.
#
# When you require the BigDecimal library in your application, this methodwill

View file

@ -1,4 +1,5 @@
#!/usr/local/bin/ruby
# frozen_string_literal: false
#
# linear.rb

View file

@ -1,4 +1,5 @@
#!/usr/local/bin/ruby
# frozen_string_literal: false
#
# nlsolve.rb

View file

@ -1,4 +1,5 @@
#!/usr/local/bin/ruby
# frozen_string_literal: false
#
# pi.rb

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
require 'mkmf'
create_makefile('continuation')

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
require 'mkmf'
$VPATH << '$(topdir)' << '$(top_srcdir)'
$INCFLAGS << " -I$(topdir) -I$(top_srcdir)"

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
require 'mkmf'
config_string("strict_warnflags") {|w| $warnflags += " #{w}"}
create_makefile('date_core')

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
# date.rb: Written by Tadayoshi Funaba 1998-2011
require 'date_core'

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
# configure option:
# --with-dbm-type=COMMA-SEPARATED-NDBM-TYPES
#

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
require 'mkmf'
$defs << "-DHAVE_CONFIG_H"

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
def digest_conf(name, hdr = name, funcs = nil, types = nil)
unless with_config("bundled-#{name}")
cc = with_config("common-digest")

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
# $RoughId: extconf.rb,v 1.6 2001/07/13 15:38:27 knu Exp $
# $Id$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
require 'digest.so'
module Digest

View file

@ -1,4 +1,5 @@
# -*- coding: us-ascii -*-
# frozen_string_literal: false
# $RoughId: extconf.rb,v 1.3 2001/08/14 19:54:51 knu Exp $
# $Id$

View file

@ -1,4 +1,5 @@
# -*- coding: us-ascii -*-
# frozen_string_literal: false
# $RoughId: extconf.rb,v 1.3 2001/08/14 19:54:51 knu Exp $
# $Id$

View file

@ -1,4 +1,5 @@
# -*- coding: us-ascii -*-
# frozen_string_literal: false
# $RoughId: extconf.rb,v 1.3 2001/08/14 19:54:51 knu Exp $
# $Id$

View file

@ -1,4 +1,5 @@
# -*- coding: us-ascii -*-
# frozen_string_literal: false
# $RoughId: extconf.rb,v 1.4 2001/08/14 19:54:51 knu Exp $
# $Id$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#--
# sha2.rb - defines Digest::SHA2 class which wraps up the SHA256,
# SHA384, and SHA512 classes.

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
require 'mkmf'
headers = []

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
require 'optparse'
require 'erb'

View file

@ -1,5 +1,6 @@
#! /usr/local/bin/ruby
# -*- mode: ruby; coding: us-ascii -*-
# frozen_string_literal: false
# :stopdoc:
$extension = nil

View file

@ -1,2 +1,3 @@
# frozen_string_literal: false
require 'mkmf'
create_makefile('fcntl')

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
require 'mkmf'
create_makefile('fiber')

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
require 'mkmf'
# :stopdoc:

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
require 'fiddle.so'
require 'fiddle/function'
require 'fiddle/closure'

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
module Fiddle
class Closure

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
module Fiddle
# A mixin that provides methods for parsing C struct and prototype signatures.
#

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
module Fiddle
class Function
# The ABI of the Function.

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
require 'fiddle'
require 'fiddle/struct'
require 'fiddle/cparser'

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
require 'fiddle'
module Fiddle

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
require 'fiddle'
require 'fiddle/value'
require 'fiddle/pack'

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
module Fiddle
# Adds Windows type aliases to the including class for use with
# Fiddle::Importer.

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
require 'fiddle'
module Fiddle

View file

@ -1,4 +1,5 @@
#!/usr/bin/ruby
# frozen_string_literal: false
require 'fileutils'
basedir = File.dirname(__FILE__)

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
require 'mkmf'
dir_config("gdbm")

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
require 'mkmf'
ok = true

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
# fallback to console window size
def IO.default_console_size
[

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
require 'mkmf'
target = "io/nonblock"

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
require 'mkmf'
target = "io/wait"

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
require 'mkmf'
create_makefile('json')

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
require 'mkmf'
$defs << "-DJSON_GENERATOR"

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
require 'json/common'
##

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED
require 'json'
end

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED
require 'json'
end

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
# This file requires the implementations of ruby core's custom objects for
# serialisation/deserialisation.

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED
require 'json'
end

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED
require 'json'
end

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED
require 'json'
end

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED
require 'json'
end

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED
require 'json'
end

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED
require 'json'
end

Some files were not shown because too many files have changed in this diff Show more