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:
parent
183c1a0fa1
commit
c4fdfabcc8
854 changed files with 854 additions and 0 deletions
|
@ -1 +1,2 @@
|
|||
# frozen_string_literal: false
|
||||
create_makefile("-test-/array/resize")
|
||||
|
|
|
@ -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, ".*")}
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
# frozen_string_literal: false
|
||||
create_makefile("-test-/bug-3571/bug")
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
# frozen_string_literal: false
|
||||
create_makefile("-test-/bug-5832/bug")
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
# frozen_string_literal: false
|
||||
create_makefile("-test-/bug_reporter/bug_reporter")
|
||||
|
|
|
@ -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, ".*")}
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
# frozen_string_literal: false
|
||||
create_makefile("-test-/dln/empty")
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
# frozen_string_literal: false
|
||||
create_makefile("-test-/fatal/rb_fatal")
|
||||
|
|
|
@ -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)}
|
||||
|
|
|
@ -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, ".*")}
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
# frozen_string_literal: false
|
||||
require 'mkmf'
|
||||
create_makefile("-test-/funcall/funcall")
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
# frozen_string_literal: false
|
||||
create_makefile("-test-/gvl/call_without_gvl")
|
||||
|
|
|
@ -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, ".*")}
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
# frozen_string_literal: false
|
||||
create_makefile("-test-/iseq_load/iseq_load")
|
||||
|
|
|
@ -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, ".*")}
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
# frozen_string_literal: false
|
||||
create_makefile("-test-/load/dot.dot/dot.dot")
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
# frozen_string_literal: false
|
||||
create_makefile("-test-/marshal/compat")
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
# frozen_string_literal: false
|
||||
create_makefile("-test-/marshal/internal_ivar")
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
# frozen_string_literal: false
|
||||
create_makefile("-test-/marshal/usr")
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
# frozen_string_literal: false
|
||||
create_makefile("-test-/notimplement")
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
# frozen_string_literal: false
|
||||
create_makefile("-test-/num2int/num2int")
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
case RUBY_PLATFORM
|
||||
when /solaris/i, /linux/i
|
||||
create_makefile("-test-/popen_deadlock/infinite_loop_dlsym")
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
# frozen_string_literal: false
|
||||
create_makefile('-test-/postponed_job')
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
# frozen_string_literal: false
|
||||
create_makefile("-test-/printf")
|
||||
|
|
|
@ -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, ".*")}
|
||||
|
|
|
@ -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, ".*")}
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
# frozen_string_literal: false
|
||||
require 'mkmf'
|
||||
create_makefile("-test-/recursion")
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
# frozen_string_literal: false
|
||||
create_makefile("-test-/st/foreach")
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
# frozen_string_literal: false
|
||||
create_makefile("-test-/st/numhash")
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
# frozen_string_literal: false
|
||||
create_makefile("-test-/st/update")
|
||||
|
|
|
@ -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, ".*")}
|
||||
|
|
|
@ -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, ".*")}
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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, ".*")}
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
# frozen_string_literal: false
|
||||
create_makefile("-test-/tracepoint")
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
# frozen_string_literal: false
|
||||
create_makefile("-test-/typeddata/typeddata")
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
# frozen_string_literal: false
|
||||
create_makefile("-test-/wait_for_single_fd/wait_for_single_fd")
|
||||
|
|
|
@ -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, ".*")}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
if $mingw or $mswin
|
||||
dlntestlib = "dlntest.#{$LIBEXT}"
|
||||
$LOCAL_LIBS << " #{dlntestlib}"
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
if $mingw or $mswin
|
||||
create_makefile("-test-/win32/fd_setsize")
|
||||
end
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
require 'mkmf'
|
||||
|
||||
have_func("labs", "stdlib.h")
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# require 'bigdecimal/jacobian'
|
||||
#
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
require 'bigdecimal'
|
||||
|
||||
#
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
require 'bigdecimal'
|
||||
|
||||
#
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
require "bigdecimal/ludcmp"
|
||||
require "bigdecimal/jacobian"
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/usr/local/bin/ruby
|
||||
# frozen_string_literal: false
|
||||
|
||||
#
|
||||
# linear.rb
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/usr/local/bin/ruby
|
||||
# frozen_string_literal: false
|
||||
|
||||
#
|
||||
# nlsolve.rb
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/usr/local/bin/ruby
|
||||
# frozen_string_literal: false
|
||||
|
||||
#
|
||||
# pi.rb
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
require 'mkmf'
|
||||
create_makefile('continuation')
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
require 'mkmf'
|
||||
$VPATH << '$(topdir)' << '$(top_srcdir)'
|
||||
$INCFLAGS << " -I$(topdir) -I$(top_srcdir)"
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
require 'mkmf'
|
||||
config_string("strict_warnflags") {|w| $warnflags += " #{w}"}
|
||||
create_makefile('date_core')
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
# date.rb: Written by Tadayoshi Funaba 1998-2011
|
||||
|
||||
require 'date_core'
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
# configure option:
|
||||
# --with-dbm-type=COMMA-SEPARATED-NDBM-TYPES
|
||||
#
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
require 'mkmf'
|
||||
|
||||
$defs << "-DHAVE_CONFIG_H"
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
# $RoughId: extconf.rb,v 1.6 2001/07/13 15:38:27 knu Exp $
|
||||
# $Id$
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
require 'digest.so'
|
||||
|
||||
module Digest
|
||||
|
|
|
@ -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$
|
||||
|
||||
|
|
|
@ -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$
|
||||
|
||||
|
|
|
@ -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$
|
||||
|
||||
|
|
|
@ -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$
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#--
|
||||
# sha2.rb - defines Digest::SHA2 class which wraps up the SHA256,
|
||||
# SHA384, and SHA512 classes.
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
require 'mkmf'
|
||||
|
||||
headers = []
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
require 'optparse'
|
||||
require 'erb'
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#! /usr/local/bin/ruby
|
||||
# -*- mode: ruby; coding: us-ascii -*-
|
||||
# frozen_string_literal: false
|
||||
|
||||
# :stopdoc:
|
||||
$extension = nil
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
# frozen_string_literal: false
|
||||
require 'mkmf'
|
||||
create_makefile('fcntl')
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
require 'mkmf'
|
||||
create_makefile('fiber')
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
require 'mkmf'
|
||||
|
||||
# :stopdoc:
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
require 'fiddle.so'
|
||||
require 'fiddle/function'
|
||||
require 'fiddle/closure'
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
module Fiddle
|
||||
class Closure
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
module Fiddle
|
||||
# A mixin that provides methods for parsing C struct and prototype signatures.
|
||||
#
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
module Fiddle
|
||||
class Function
|
||||
# The ABI of the Function.
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
require 'fiddle'
|
||||
require 'fiddle/struct'
|
||||
require 'fiddle/cparser'
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
require 'fiddle'
|
||||
|
||||
module Fiddle
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
require 'fiddle'
|
||||
require 'fiddle/value'
|
||||
require 'fiddle/pack'
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
module Fiddle
|
||||
# Adds Windows type aliases to the including class for use with
|
||||
# Fiddle::Importer.
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
require 'fiddle'
|
||||
|
||||
module Fiddle
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/ruby
|
||||
# frozen_string_literal: false
|
||||
require 'fileutils'
|
||||
|
||||
basedir = File.dirname(__FILE__)
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
require 'mkmf'
|
||||
|
||||
dir_config("gdbm")
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
require 'mkmf'
|
||||
|
||||
ok = true
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
# fallback to console window size
|
||||
def IO.default_console_size
|
||||
[
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
require 'mkmf'
|
||||
target = "io/nonblock"
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
require 'mkmf'
|
||||
target = "io/wait"
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
require 'mkmf'
|
||||
create_makefile('json')
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
require 'mkmf'
|
||||
|
||||
$defs << "-DJSON_GENERATOR"
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
require 'json/common'
|
||||
|
||||
##
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED
|
||||
require 'json'
|
||||
end
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED
|
||||
require 'json'
|
||||
end
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
# This file requires the implementations of ruby core's custom objects for
|
||||
# serialisation/deserialisation.
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED
|
||||
require 'json'
|
||||
end
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED
|
||||
require 'json'
|
||||
end
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED
|
||||
require 'json'
|
||||
end
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED
|
||||
require 'json'
|
||||
end
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED
|
||||
require 'json'
|
||||
end
|
||||
|
|
|
@ -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
Loading…
Reference in a new issue