Version in base suite: 3.3.8-2 Version in overlay suite: 3.3.13-0+deb13u1 Base version: ruby3.3_3.3.13-0+deb13u1 Target version: ruby3.3_3.3.14-0+deb13u1 Base file: /srv/ftp-master.debian.org/ftp/pool/main/r/ruby3.3/ruby3.3_3.3.13-0+deb13u1.dsc Target file: /srv/ftp-master.debian.org/policy/pool/main/r/ruby3.3/ruby3.3_3.3.14-0+deb13u1.dsc .bundle/gems/debug-1.9.2/.bundled.debug-1.9.2.gemspec | 4 .bundle/gems/debug-1.9.2/debug-1.9.2.gemspec | 8 .bundle/gems/racc-1.7.3/.bundled.racc-1.7.3.gemspec | 4 .bundle/gems/racc-1.7.3/racc-1.7.3.gemspec | 4 .bundle/gems/rbs-3.4.0/.bundled.rbs-3.4.0.gemspec | 4 .bundle/gems/rbs-3.4.0/rbs-3.4.0.gemspec | 6 .bundle/specifications/matrix-0.4.2.gemspec | 4 .bundle/specifications/minitest-5.20.0.gemspec | 8 .bundle/specifications/net-ftp-0.3.4.gemspec | 4 .bundle/specifications/net-imap-0.4.25.gemspec | 6 .bundle/specifications/net-pop-0.1.2.gemspec | 4 .bundle/specifications/net-smtp-0.5.1.gemspec | 4 .bundle/specifications/power_assert-2.0.3.gemspec | 18 .bundle/specifications/prime-0.1.2.gemspec | 4 .bundle/specifications/rake-13.1.0.gemspec | 4 .bundle/specifications/rexml-3.4.4.gemspec | 4 .bundle/specifications/rss-0.3.1.gemspec | 6 .bundle/specifications/test-unit-3.6.1.gemspec | 16 .bundle/specifications/typeprof-0.21.9.gemspec | 6 array.c | 46 bignum.c | 24 compile.c | 24 configure | 7728 ++++++++++-------- cont.c | 4 coroutine/arm64/Context.S | 79 coroutine/arm64/Context.asm | 81 coroutine/arm64/Context.h | 25 coroutine/asyncify/Context.h | 6 coroutine/emscripten/Context.h | 6 coroutine/pthread/Context.c | 4 coroutine/ucontext/Context.h | 6 debian/changelog | 28 enc/emacs_mule.c | 19 enc/iso_8859_1.c | 2 enc/iso_8859_10.c | 2 enc/iso_8859_13.c | 2 enc/iso_8859_14.c | 2 enc/iso_8859_15.c | 2 enc/iso_8859_16.c | 2 enc/iso_8859_2.c | 2 enc/iso_8859_3.c | 2 enc/iso_8859_4.c | 2 enc/iso_8859_9.c | 2 enc/trans/iso2022.c | 4 enc/trans/iso2022.trans | 2 enc/trans/utf_16_32.c | 6 enc/trans/utf_16_32.trans | 4 enc/windows_1250.c | 2 enc/windows_1252.c | 2 enc/windows_1254.c | 2 enc/windows_1257.c | 2 enum.c | 10 enumerator.c | 19 error.c | 4 ext/-test-/string/cstr.c | 3 ext/ripper/ripper.c | 3651 ++++---- ext/ripper/ripper.y | 37 ext/socket/ancdata.c | 69 ext/socket/socket.c | 3 include/ruby/atomic.h | 12 include/ruby/internal/memory.h | 11 include/ruby/random.h | 2 internal/string.h | 1 io.c | 44 iseq.c | 19 iseq.h | 7 lib/bundler/mirror.rb | 14 marshal.c | 76 memory_view.c | 6 pack.c | 20 parse.c | 3239 +++---- parse.h | 2 parse.y | 37 proc.c | 20 range.c | 14 re.c | 40 regcomp.c | 134 regenc.c | 9 regexec.c | 86 regint.h | 44 regparse.c | 58 revision.h | 8 sprintf.c | 76 strftime.c | 27 string.c | 127 test/-ext-/string/test_cstr.rb | 54 test/-ext-/string/test_modify_expand.rb | 4 test/resolv/test_dns.rb | 330 test/ruby/enc/test_case_mapping.rb | 21 test/ruby/test_array.rb | 64 test/ruby/test_econv.rb | 17 test/ruby/test_enum.rb | 13 test/ruby/test_exception.rb | 12 test/ruby/test_io.rb | 76 test/ruby/test_io_m17n.rb | 22 test/ruby/test_marshal.rb | 82 test/ruby/test_memory_view.rb | 24 test/ruby/test_pack.rb | 13 test/ruby/test_parse.rb | 4 test/ruby/test_proc.rb | 3 test/ruby/test_regexp.rb | 149 test/ruby/test_sprintf.rb | 32 test/ruby/test_string.rb | 160 test/ruby/test_time.rb | 31 test/ruby/test_transcode.rb | 41 test/ruby/test_yjit.rb | 6 test/socket/test_ancdata.rb | 18 thread.c | 2 thread_pthread.c | 4 time.c | 3 tool/config.guess | 111 tool/config.sub | 942 +- tool/lib/core_assertions.rb | 194 transcode.c | 6 version.h | 4 vm_args.c | 10 vm_backtrace.c | 17 vm_dump.c | 12 win32/Makefile.sub | 14 win32/setup.mak | 6 win32/win32.c | 159 yjit/src/options.rs | 6 122 files changed, 10980 insertions(+), 7857 deletions(-) dpkg-source: warning: cannot verify inline signature for /srv/release.debian.org/tmp/tmpjdxrcdt7/ruby3.3_3.3.13-0+deb13u1.dsc: no acceptable signature found dpkg-source: warning: cannot verify inline signature for /srv/release.debian.org/tmp/tmpjdxrcdt7/ruby3.3_3.3.14-0+deb13u1.dsc: no acceptable signature found diff -Nru ruby3.3-3.3.13/.bundle/gems/debug-1.9.2/.bundled.debug-1.9.2.gemspec ruby3.3-3.3.14/.bundle/gems/debug-1.9.2/.bundled.debug-1.9.2.gemspec --- ruby3.3-3.3.13/.bundle/gems/debug-1.9.2/.bundled.debug-1.9.2.gemspec 2026-10-23 03:17:43.000000000 +0000 +++ ruby3.3-3.3.14/.bundle/gems/debug-1.9.2/.bundled.debug-1.9.2.gemspec 2026-11-18 21:52:33.000000000 +0000 @@ -4,7 +4,7 @@ Gem::Specification.new do |s| s.name = "debug".freeze - s.version = "1.9.2" + s.version = "1.9.2".freeze s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.metadata = { "homepage_uri" => "https://github.com/ruby/debug", "source_code_uri" => "https://github.com/ruby/debug" } if s.respond_to? :metadata= @@ -20,6 +20,6 @@ s.homepage = "https://github.com/ruby/debug".freeze s.licenses = ["Ruby".freeze, "BSD-2-Clause".freeze] s.required_ruby_version = Gem::Requirement.new(">= 2.7.0".freeze) - s.rubygems_version = "3.4.20".freeze + s.rubygems_version = "3.6.0.dev".freeze s.summary = "Debugging functionality for Ruby".freeze end diff -Nru ruby3.3-3.3.13/.bundle/gems/debug-1.9.2/debug-1.9.2.gemspec ruby3.3-3.3.14/.bundle/gems/debug-1.9.2/debug-1.9.2.gemspec --- ruby3.3-3.3.13/.bundle/gems/debug-1.9.2/debug-1.9.2.gemspec 2026-10-23 03:17:43.000000000 +0000 +++ ruby3.3-3.3.14/.bundle/gems/debug-1.9.2/debug-1.9.2.gemspec 2026-11-18 21:52:33.000000000 +0000 @@ -4,7 +4,7 @@ Gem::Specification.new do |s| s.name = "debug".freeze - s.version = "1.9.2" + s.version = "1.9.2".freeze s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.metadata = { "homepage_uri" => "https://github.com/ruby/debug", "source_code_uri" => "https://github.com/ruby/debug" } if s.respond_to? :metadata= @@ -20,11 +20,11 @@ s.homepage = "https://github.com/ruby/debug".freeze s.licenses = ["Ruby".freeze, "BSD-2-Clause".freeze] s.required_ruby_version = Gem::Requirement.new(">= 2.7.0".freeze) - s.rubygems_version = "3.4.20".freeze + s.rubygems_version = "3.6.0.dev".freeze s.summary = "Debugging functionality for Ruby".freeze s.specification_version = 4 - s.add_runtime_dependency(%q.freeze, ["~> 1.10"]) - s.add_runtime_dependency(%q.freeze, [">= 0.3.8"]) + s.add_runtime_dependency(%q.freeze, ["~> 1.10".freeze]) + s.add_runtime_dependency(%q.freeze, [">= 0.3.8".freeze]) end diff -Nru ruby3.3-3.3.13/.bundle/gems/racc-1.7.3/.bundled.racc-1.7.3.gemspec ruby3.3-3.3.14/.bundle/gems/racc-1.7.3/.bundled.racc-1.7.3.gemspec --- ruby3.3-3.3.13/.bundle/gems/racc-1.7.3/.bundled.racc-1.7.3.gemspec 2026-10-23 03:17:43.000000000 +0000 +++ ruby3.3-3.3.14/.bundle/gems/racc-1.7.3/.bundled.racc-1.7.3.gemspec 2026-11-18 21:52:33.000000000 +0000 @@ -4,7 +4,7 @@ Gem::Specification.new do |s| s.name = "racc".freeze - s.version = "1.7.3" + s.version = "1.7.3".freeze s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.require_paths = ["lib".freeze] @@ -20,6 +20,6 @@ s.licenses = ["Ruby".freeze, "BSD-2-Clause".freeze] s.rdoc_options = ["--main".freeze, "README.rdoc".freeze] s.required_ruby_version = Gem::Requirement.new(">= 2.5".freeze) - s.rubygems_version = "3.4.20".freeze + s.rubygems_version = "3.4.10".freeze s.summary = "Racc is a LALR(1) parser generator".freeze end diff -Nru ruby3.3-3.3.13/.bundle/gems/racc-1.7.3/racc-1.7.3.gemspec ruby3.3-3.3.14/.bundle/gems/racc-1.7.3/racc-1.7.3.gemspec --- ruby3.3-3.3.13/.bundle/gems/racc-1.7.3/racc-1.7.3.gemspec 2026-10-23 03:17:43.000000000 +0000 +++ ruby3.3-3.3.14/.bundle/gems/racc-1.7.3/racc-1.7.3.gemspec 2026-11-18 21:52:33.000000000 +0000 @@ -4,7 +4,7 @@ Gem::Specification.new do |s| s.name = "racc".freeze - s.version = "1.7.3" + s.version = "1.7.3".freeze s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.require_paths = ["lib".freeze] @@ -20,6 +20,6 @@ s.licenses = ["Ruby".freeze, "BSD-2-Clause".freeze] s.rdoc_options = ["--main".freeze, "README.rdoc".freeze] s.required_ruby_version = Gem::Requirement.new(">= 2.5".freeze) - s.rubygems_version = "3.4.20".freeze + s.rubygems_version = "3.4.10".freeze s.summary = "Racc is a LALR(1) parser generator".freeze end diff -Nru ruby3.3-3.3.13/.bundle/gems/rbs-3.4.0/.bundled.rbs-3.4.0.gemspec ruby3.3-3.3.14/.bundle/gems/rbs-3.4.0/.bundled.rbs-3.4.0.gemspec --- ruby3.3-3.3.13/.bundle/gems/rbs-3.4.0/.bundled.rbs-3.4.0.gemspec 2026-10-23 03:17:43.000000000 +0000 +++ ruby3.3-3.3.14/.bundle/gems/rbs-3.4.0/.bundled.rbs-3.4.0.gemspec 2026-11-18 21:52:33.000000000 +0000 @@ -4,7 +4,7 @@ Gem::Specification.new do |s| s.name = "rbs".freeze - s.version = "3.4.0" + s.version = "3.4.0".freeze s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.metadata = { "changelog_uri" => "https://github.com/ruby/rbs/blob/master/CHANGELOG.md", "homepage_uri" => "https://github.com/ruby/rbs", "source_code_uri" => "https://github.com/ruby/rbs.git" } if s.respond_to? :metadata= @@ -20,6 +20,6 @@ s.homepage = "https://github.com/ruby/rbs".freeze s.licenses = ["BSD-2-Clause".freeze, "Ruby".freeze] s.required_ruby_version = Gem::Requirement.new(">= 3.0".freeze) - s.rubygems_version = "3.4.20".freeze + s.rubygems_version = "3.5.0.dev".freeze s.summary = "Type signature for Ruby.".freeze end diff -Nru ruby3.3-3.3.13/.bundle/gems/rbs-3.4.0/rbs-3.4.0.gemspec ruby3.3-3.3.14/.bundle/gems/rbs-3.4.0/rbs-3.4.0.gemspec --- ruby3.3-3.3.13/.bundle/gems/rbs-3.4.0/rbs-3.4.0.gemspec 2026-10-23 03:17:43.000000000 +0000 +++ ruby3.3-3.3.14/.bundle/gems/rbs-3.4.0/rbs-3.4.0.gemspec 2026-11-18 21:52:33.000000000 +0000 @@ -4,7 +4,7 @@ Gem::Specification.new do |s| s.name = "rbs".freeze - s.version = "3.4.0" + s.version = "3.4.0".freeze s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.metadata = { "changelog_uri" => "https://github.com/ruby/rbs/blob/master/CHANGELOG.md", "homepage_uri" => "https://github.com/ruby/rbs", "source_code_uri" => "https://github.com/ruby/rbs.git" } if s.respond_to? :metadata= @@ -20,10 +20,10 @@ s.homepage = "https://github.com/ruby/rbs".freeze s.licenses = ["BSD-2-Clause".freeze, "Ruby".freeze] s.required_ruby_version = Gem::Requirement.new(">= 3.0".freeze) - s.rubygems_version = "3.4.20".freeze + s.rubygems_version = "3.5.0.dev".freeze s.summary = "Type signature for Ruby.".freeze s.specification_version = 4 - s.add_runtime_dependency(%q.freeze, [">= 0"]) + s.add_runtime_dependency(%q.freeze, [">= 0".freeze]) end diff -Nru ruby3.3-3.3.13/.bundle/specifications/matrix-0.4.2.gemspec ruby3.3-3.3.14/.bundle/specifications/matrix-0.4.2.gemspec --- ruby3.3-3.3.13/.bundle/specifications/matrix-0.4.2.gemspec 2026-10-23 03:17:43.000000000 +0000 +++ ruby3.3-3.3.14/.bundle/specifications/matrix-0.4.2.gemspec 2026-11-18 21:52:33.000000000 +0000 @@ -3,7 +3,7 @@ Gem::Specification.new do |s| s.name = "matrix".freeze - s.version = "0.4.2" + s.version = "0.4.2".freeze s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.require_paths = ["lib".freeze] @@ -16,6 +16,6 @@ s.homepage = "https://github.com/ruby/matrix".freeze s.licenses = ["Ruby".freeze, "BSD-2-Clause".freeze] s.required_ruby_version = Gem::Requirement.new(">= 2.5.0".freeze) - s.rubygems_version = "3.4.20".freeze + s.rubygems_version = "3.3.0.dev".freeze s.summary = "An implementation of Matrix and Vector classes.".freeze end diff -Nru ruby3.3-3.3.13/.bundle/specifications/minitest-5.20.0.gemspec ruby3.3-3.3.14/.bundle/specifications/minitest-5.20.0.gemspec --- ruby3.3-3.3.13/.bundle/specifications/minitest-5.20.0.gemspec 2026-10-23 03:17:43.000000000 +0000 +++ ruby3.3-3.3.14/.bundle/specifications/minitest-5.20.0.gemspec 2026-11-18 21:52:33.000000000 +0000 @@ -3,7 +3,7 @@ Gem::Specification.new do |s| s.name = "minitest".freeze - s.version = "5.20.0" + s.version = "5.20.0".freeze s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.metadata = { "bug_tracker_uri" => "https://github.com/minitest/minitest/issues", "homepage_uri" => "https://github.com/minitest/minitest" } if s.respond_to? :metadata= @@ -19,11 +19,11 @@ s.licenses = ["MIT".freeze] s.rdoc_options = ["--main".freeze, "README.rdoc".freeze] s.required_ruby_version = Gem::Requirement.new([">= 2.6".freeze, "< 4.0".freeze]) - s.rubygems_version = "3.4.20".freeze + s.rubygems_version = "3.4.10".freeze s.summary = "minitest provides a complete suite of testing facilities supporting TDD, BDD, mocking, and benchmarking".freeze s.specification_version = 4 - s.add_development_dependency(%q.freeze, [">= 4.0", "< 7"]) - s.add_development_dependency(%q.freeze, ["~> 4.0"]) + s.add_development_dependency(%q.freeze, [">= 4.0".freeze, "< 7".freeze]) + s.add_development_dependency(%q.freeze, ["~> 4.0".freeze]) end diff -Nru ruby3.3-3.3.13/.bundle/specifications/net-ftp-0.3.4.gemspec ruby3.3-3.3.14/.bundle/specifications/net-ftp-0.3.4.gemspec --- ruby3.3-3.3.13/.bundle/specifications/net-ftp-0.3.4.gemspec 2026-10-23 03:17:43.000000000 +0000 +++ ruby3.3-3.3.14/.bundle/specifications/net-ftp-0.3.4.gemspec 2026-11-18 21:52:33.000000000 +0000 @@ -3,7 +3,7 @@ Gem::Specification.new do |s| s.name = "net-ftp".freeze - s.version = "0.3.4" + s.version = "0.3.4".freeze s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.metadata = { "homepage_uri" => "https://github.com/ruby/net-ftp", "source_code_uri" => "https://github.com/ruby/net-ftp" } if s.respond_to? :metadata= @@ -16,6 +16,6 @@ s.homepage = "https://github.com/ruby/net-ftp".freeze s.licenses = ["Ruby".freeze, "BSD-2-Clause".freeze] s.required_ruby_version = Gem::Requirement.new(">= 2.6.0".freeze) - s.rubygems_version = "3.4.20".freeze + s.rubygems_version = "3.4.19".freeze s.summary = "Support for the File Transfer Protocol.".freeze end diff -Nru ruby3.3-3.3.13/.bundle/specifications/net-imap-0.4.25.gemspec ruby3.3-3.3.14/.bundle/specifications/net-imap-0.4.25.gemspec --- ruby3.3-3.3.13/.bundle/specifications/net-imap-0.4.25.gemspec 2026-10-23 03:17:43.000000000 +0000 +++ ruby3.3-3.3.14/.bundle/specifications/net-imap-0.4.25.gemspec 2026-11-18 21:52:33.000000000 +0000 @@ -3,7 +3,7 @@ Gem::Specification.new do |s| s.name = "net-imap".freeze - s.version = "0.4.25" + s.version = "0.4.25".freeze s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.metadata = { "changelog_uri" => "https://github.com/ruby/net-imap/releases", "homepage_uri" => "https://github.com/ruby/net-imap", "source_code_uri" => "https://github.com/ruby/net-imap" } if s.respond_to? :metadata= @@ -17,10 +17,10 @@ s.homepage = "https://github.com/ruby/net-imap".freeze s.licenses = ["Ruby".freeze, "BSD-2-Clause".freeze] s.required_ruby_version = Gem::Requirement.new(">= 2.7.3".freeze) - s.rubygems_version = "3.4.20".freeze + s.rubygems_version = "4.0.10".freeze s.summary = "Ruby client api for Internet Message Access Protocol".freeze s.specification_version = 4 - s.add_runtime_dependency(%q.freeze, [">= 0"]) + s.add_runtime_dependency(%q.freeze, [">= 0".freeze]) end diff -Nru ruby3.3-3.3.13/.bundle/specifications/net-pop-0.1.2.gemspec ruby3.3-3.3.14/.bundle/specifications/net-pop-0.1.2.gemspec --- ruby3.3-3.3.13/.bundle/specifications/net-pop-0.1.2.gemspec 2026-10-23 03:17:43.000000000 +0000 +++ ruby3.3-3.3.14/.bundle/specifications/net-pop-0.1.2.gemspec 2026-11-18 21:52:33.000000000 +0000 @@ -3,7 +3,7 @@ Gem::Specification.new do |s| s.name = "net-pop".freeze - s.version = "0.1.2" + s.version = "0.1.2".freeze s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.metadata = { "homepage_uri" => "https://github.com/ruby/net-pop", "source_code_uri" => "https://github.com/ruby/net-pop" } if s.respond_to? :metadata= @@ -16,6 +16,6 @@ s.files = [".github/dependabot.yml".freeze, ".github/workflows/test.yml".freeze, ".gitignore".freeze, "Gemfile".freeze, "LICENSE.txt".freeze, "README.md".freeze, "Rakefile".freeze, "lib/net/pop.rb".freeze, "net-pop.gemspec".freeze] s.homepage = "https://github.com/ruby/net-pop".freeze s.licenses = ["Ruby".freeze, "BSD-2-Clause".freeze] - s.rubygems_version = "3.4.20".freeze + s.rubygems_version = "3.4.0.dev".freeze s.summary = "Ruby client library for POP3.".freeze end diff -Nru ruby3.3-3.3.13/.bundle/specifications/net-smtp-0.5.1.gemspec ruby3.3-3.3.14/.bundle/specifications/net-smtp-0.5.1.gemspec --- ruby3.3-3.3.13/.bundle/specifications/net-smtp-0.5.1.gemspec 2026-10-23 03:17:43.000000000 +0000 +++ ruby3.3-3.3.14/.bundle/specifications/net-smtp-0.5.1.gemspec 2026-11-18 21:52:33.000000000 +0000 @@ -3,7 +3,7 @@ Gem::Specification.new do |s| s.name = "net-smtp".freeze - s.version = "0.5.1" + s.version = "0.5.1".freeze s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.metadata = { "homepage_uri" => "https://github.com/ruby/net-smtp", "source_code_uri" => "https://github.com/ruby/net-smtp" } if s.respond_to? :metadata= @@ -16,6 +16,6 @@ s.homepage = "https://github.com/ruby/net-smtp".freeze s.licenses = ["Ruby".freeze, "BSD-2-Clause".freeze] s.required_ruby_version = Gem::Requirement.new(">= 2.6.0".freeze) - s.rubygems_version = "3.4.20".freeze + s.rubygems_version = "3.7.0.dev".freeze s.summary = "Simple Mail Transfer Protocol client library for Ruby.".freeze end diff -Nru ruby3.3-3.3.13/.bundle/specifications/power_assert-2.0.3.gemspec ruby3.3-3.3.14/.bundle/specifications/power_assert-2.0.3.gemspec --- ruby3.3-3.3.13/.bundle/specifications/power_assert-2.0.3.gemspec 2026-10-23 03:17:43.000000000 +0000 +++ ruby3.3-3.3.14/.bundle/specifications/power_assert-2.0.3.gemspec 2026-11-18 21:52:33.000000000 +0000 @@ -3,7 +3,7 @@ Gem::Specification.new do |s| s.name = "power_assert".freeze - s.version = "2.0.3" + s.version = "2.0.3".freeze s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.require_paths = ["lib".freeze] @@ -17,16 +17,16 @@ s.homepage = "https://github.com/ruby/power_assert".freeze s.licenses = ["BSD-2-Clause".freeze, "Ruby".freeze] s.rdoc_options = ["--main".freeze, "README.md".freeze] - s.rubygems_version = "3.4.20".freeze + s.rubygems_version = "3.3.7".freeze s.summary = "Power Assert for Ruby".freeze s.specification_version = 4 - s.add_development_dependency(%q.freeze, [">= 0"]) - s.add_development_dependency(%q.freeze, [">= 0"]) - s.add_development_dependency(%q.freeze, [">= 0"]) - s.add_development_dependency(%q.freeze, [">= 0"]) - s.add_development_dependency(%q.freeze, [">= 1.3.1"]) - s.add_development_dependency(%q.freeze, [">= 0"]) - s.add_development_dependency(%q.freeze, [">= 0"]) + s.add_development_dependency(%q.freeze, [">= 0".freeze]) + s.add_development_dependency(%q.freeze, [">= 0".freeze]) + s.add_development_dependency(%q.freeze, [">= 0".freeze]) + s.add_development_dependency(%q.freeze, [">= 0".freeze]) + s.add_development_dependency(%q.freeze, [">= 1.3.1".freeze]) + s.add_development_dependency(%q.freeze, [">= 0".freeze]) + s.add_development_dependency(%q.freeze, [">= 0".freeze]) end diff -Nru ruby3.3-3.3.13/.bundle/specifications/prime-0.1.2.gemspec ruby3.3-3.3.14/.bundle/specifications/prime-0.1.2.gemspec --- ruby3.3-3.3.13/.bundle/specifications/prime-0.1.2.gemspec 2026-10-23 03:17:43.000000000 +0000 +++ ruby3.3-3.3.14/.bundle/specifications/prime-0.1.2.gemspec 2026-11-18 21:52:33.000000000 +0000 @@ -3,7 +3,7 @@ Gem::Specification.new do |s| s.name = "prime".freeze - s.version = "0.1.2" + s.version = "0.1.2".freeze s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.require_paths = ["lib".freeze] @@ -16,6 +16,6 @@ s.homepage = "https://github.com/ruby/prime".freeze s.licenses = ["Ruby".freeze, "BSD-2-Clause".freeze] s.required_ruby_version = Gem::Requirement.new(">= 2.5.0".freeze) - s.rubygems_version = "3.4.20".freeze + s.rubygems_version = "3.1.4".freeze s.summary = "Prime numbers and factorization library.".freeze end diff -Nru ruby3.3-3.3.13/.bundle/specifications/rake-13.1.0.gemspec ruby3.3-3.3.14/.bundle/specifications/rake-13.1.0.gemspec --- ruby3.3-3.3.13/.bundle/specifications/rake-13.1.0.gemspec 2026-10-23 03:17:43.000000000 +0000 +++ ruby3.3-3.3.14/.bundle/specifications/rake-13.1.0.gemspec 2026-11-18 21:52:33.000000000 +0000 @@ -3,7 +3,7 @@ Gem::Specification.new do |s| s.name = "rake".freeze - s.version = "13.1.0" + s.version = "13.1.0".freeze s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.metadata = { "bug_tracker_uri" => "https://github.com/ruby/rake/issues", "changelog_uri" => "https://github.com/ruby/rake/blob/v13.1.0/History.rdoc", "documentation_uri" => "https://ruby.github.io/rake", "source_code_uri" => "https://github.com/ruby/rake/tree/v13.1.0" } if s.respond_to? :metadata= @@ -19,6 +19,6 @@ s.licenses = ["MIT".freeze] s.rdoc_options = ["--main".freeze, "README.rdoc".freeze] s.required_ruby_version = Gem::Requirement.new(">= 2.3".freeze) - s.rubygems_version = "3.4.20".freeze + s.rubygems_version = "3.5.0.dev".freeze s.summary = "Rake is a Make-like program implemented in Ruby".freeze end diff -Nru ruby3.3-3.3.13/.bundle/specifications/rexml-3.4.4.gemspec ruby3.3-3.3.14/.bundle/specifications/rexml-3.4.4.gemspec --- ruby3.3-3.3.13/.bundle/specifications/rexml-3.4.4.gemspec 2026-10-23 03:17:43.000000000 +0000 +++ ruby3.3-3.3.14/.bundle/specifications/rexml-3.4.4.gemspec 2026-11-18 21:52:33.000000000 +0000 @@ -3,7 +3,7 @@ Gem::Specification.new do |s| s.name = "rexml".freeze - s.version = "3.4.4" + s.version = "3.4.4".freeze s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.metadata = { "changelog_uri" => "https://github.com/ruby/rexml/releases/tag/v3.4.4" } if s.respond_to? :metadata= @@ -18,6 +18,6 @@ s.licenses = ["BSD-2-Clause".freeze] s.rdoc_options = ["--main".freeze, "README.md".freeze] s.required_ruby_version = Gem::Requirement.new(">= 2.5.0".freeze) - s.rubygems_version = "3.4.20".freeze + s.rubygems_version = "3.6.9".freeze s.summary = "An XML toolkit for Ruby".freeze end diff -Nru ruby3.3-3.3.13/.bundle/specifications/rss-0.3.1.gemspec ruby3.3-3.3.14/.bundle/specifications/rss-0.3.1.gemspec --- ruby3.3-3.3.13/.bundle/specifications/rss-0.3.1.gemspec 2026-10-23 03:17:43.000000000 +0000 +++ ruby3.3-3.3.14/.bundle/specifications/rss-0.3.1.gemspec 2026-11-18 21:52:33.000000000 +0000 @@ -3,7 +3,7 @@ Gem::Specification.new do |s| s.name = "rss".freeze - s.version = "0.3.1" + s.version = "0.3.1".freeze s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.require_paths = ["lib".freeze] @@ -14,10 +14,10 @@ s.files = ["LICENSE.txt".freeze, "NEWS.md".freeze, "README.md".freeze, "lib/rss.rb".freeze, "lib/rss/0.9.rb".freeze, "lib/rss/1.0.rb".freeze, "lib/rss/2.0.rb".freeze, "lib/rss/atom.rb".freeze, "lib/rss/content.rb".freeze, "lib/rss/content/1.0.rb".freeze, "lib/rss/content/2.0.rb".freeze, "lib/rss/converter.rb".freeze, "lib/rss/dublincore.rb".freeze, "lib/rss/dublincore/1.0.rb".freeze, "lib/rss/dublincore/2.0.rb".freeze, "lib/rss/dublincore/atom.rb".freeze, "lib/rss/image.rb".freeze, "lib/rss/itunes.rb".freeze, "lib/rss/maker.rb".freeze, "lib/rss/maker/0.9.rb".freeze, "lib/rss/maker/1.0.rb".freeze, "lib/rss/maker/2.0.rb".freeze, "lib/rss/maker/atom.rb".freeze, "lib/rss/maker/base.rb".freeze, "lib/rss/maker/content.rb".freeze, "lib/rss/maker/dublincore.rb".freeze, "lib/rss/maker/entry.rb".freeze, "lib/rss/maker/feed.rb".freeze, "lib/rss/maker/image.rb".freeze, "lib/rss/maker/itunes.rb".freeze, "lib/rss/maker/slash.rb".freeze, "lib/rss/maker/syndication.rb".freeze, "lib/rss/maker/taxonomy.rb".freeze, "lib/rss/maker/trackback.rb".freeze, "lib/rss/parser.rb".freeze, "lib/rss/rexmlparser.rb".freeze, "lib/rss/rss.rb".freeze, "lib/rss/slash.rb".freeze, "lib/rss/syndication.rb".freeze, "lib/rss/taxonomy.rb".freeze, "lib/rss/trackback.rb".freeze, "lib/rss/utils.rb".freeze, "lib/rss/version.rb".freeze, "lib/rss/xml-stylesheet.rb".freeze, "lib/rss/xml.rb".freeze, "lib/rss/xmlparser.rb".freeze, "lib/rss/xmlscanner.rb".freeze] s.homepage = "https://github.com/ruby/rss".freeze s.licenses = ["BSD-2-Clause".freeze] - s.rubygems_version = "3.4.20".freeze + s.rubygems_version = "3.6.0.dev".freeze s.summary = "Family of libraries that support various formats of XML \"feeds\".".freeze s.specification_version = 4 - s.add_runtime_dependency(%q.freeze, [">= 0"]) + s.add_runtime_dependency(%q.freeze, [">= 0".freeze]) end diff -Nru ruby3.3-3.3.13/.bundle/specifications/test-unit-3.6.1.gemspec ruby3.3-3.3.14/.bundle/specifications/test-unit-3.6.1.gemspec --- ruby3.3-3.3.13/.bundle/specifications/test-unit-3.6.1.gemspec 2026-10-23 03:17:43.000000000 +0000 +++ ruby3.3-3.3.14/.bundle/specifications/test-unit-3.6.1.gemspec 2026-11-18 21:52:33.000000000 +0000 @@ -3,7 +3,7 @@ Gem::Specification.new do |s| s.name = "test-unit".freeze - s.version = "3.6.1" + s.version = "3.6.1".freeze s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.metadata = { "bug_tracker_uri" => "https://github.com/test-unit/test-unit/issues", "documentation_uri" => "https://test-unit.github.io/test-unit/en/", "source_code_uri" => "https://github.com/test-unit/test-unit" } if s.respond_to? :metadata= @@ -15,15 +15,15 @@ s.files = ["BSDL".freeze, "COPYING".freeze, "PSFL".freeze, "README.md".freeze, "Rakefile".freeze, "doc/text/getting-started.md".freeze, "doc/text/how-to.md".freeze, "doc/text/news.md".freeze, "lib/test-unit.rb".freeze, "lib/test/unit.rb".freeze, "lib/test/unit/assertion-failed-error.rb".freeze, "lib/test/unit/assertions.rb".freeze, "lib/test/unit/attribute-matcher.rb".freeze, "lib/test/unit/attribute.rb".freeze, "lib/test/unit/auto-runner-loader.rb".freeze, "lib/test/unit/autorunner.rb".freeze, "lib/test/unit/code-snippet-fetcher.rb".freeze, "lib/test/unit/collector.rb".freeze, "lib/test/unit/collector/descendant.rb".freeze, "lib/test/unit/collector/dir.rb".freeze, "lib/test/unit/collector/load.rb".freeze, "lib/test/unit/collector/objectspace.rb".freeze, "lib/test/unit/collector/xml.rb".freeze, "lib/test/unit/color-scheme.rb".freeze, "lib/test/unit/color.rb".freeze, "lib/test/unit/data-sets.rb".freeze, "lib/test/unit/data.rb".freeze, "lib/test/unit/diff.rb".freeze, "lib/test/unit/error.rb".freeze, "lib/test/unit/exception-handler.rb".freeze, "lib/test/unit/failure.rb".freeze, "lib/test/unit/fault-location-detector.rb".freeze, "lib/test/unit/fixture.rb".freeze, "lib/test/unit/notification.rb".freeze, "lib/test/unit/omission.rb".freeze, "lib/test/unit/pending.rb".freeze, "lib/test/unit/priority.rb".freeze, "lib/test/unit/runner/console.rb".freeze, "lib/test/unit/runner/emacs.rb".freeze, "lib/test/unit/runner/xml.rb".freeze, "lib/test/unit/test-suite-creator.rb".freeze, "lib/test/unit/testcase.rb".freeze, "lib/test/unit/testresult.rb".freeze, "lib/test/unit/testsuite.rb".freeze, "lib/test/unit/ui/console/outputlevel.rb".freeze, "lib/test/unit/ui/console/testrunner.rb".freeze, "lib/test/unit/ui/emacs/testrunner.rb".freeze, "lib/test/unit/ui/testrunner.rb".freeze, "lib/test/unit/ui/testrunnermediator.rb".freeze, "lib/test/unit/ui/testrunnerutilities.rb".freeze, "lib/test/unit/ui/xml/testrunner.rb".freeze, "lib/test/unit/util/backtracefilter.rb".freeze, "lib/test/unit/util/memory-usage.rb".freeze, "lib/test/unit/util/method-owner-finder.rb".freeze, "lib/test/unit/util/observable.rb".freeze, "lib/test/unit/util/output.rb".freeze, "lib/test/unit/util/procwrapper.rb".freeze, "lib/test/unit/version.rb".freeze, "lib/test/unit/warning.rb".freeze, "sample/adder.rb".freeze, "sample/subtracter.rb".freeze, "sample/test_adder.rb".freeze, "sample/test_subtracter.rb".freeze, "sample/test_user.rb".freeze] s.homepage = "http://test-unit.github.io/".freeze s.licenses = ["Ruby".freeze, "BSDL".freeze, "PSFL".freeze] - s.rubygems_version = "3.4.20".freeze + s.rubygems_version = "3.5.0.dev".freeze s.summary = "An xUnit family unit testing framework for Ruby.".freeze s.specification_version = 4 - s.add_runtime_dependency(%q.freeze, [">= 0"]) - s.add_development_dependency(%q.freeze, [">= 0"]) - s.add_development_dependency(%q.freeze, [">= 0"]) - s.add_development_dependency(%q.freeze, [">= 0"]) - s.add_development_dependency(%q.freeze, [">= 0"]) - s.add_development_dependency(%q.freeze, [">= 0"]) + s.add_runtime_dependency(%q.freeze, [">= 0".freeze]) + s.add_development_dependency(%q.freeze, [">= 0".freeze]) + s.add_development_dependency(%q.freeze, [">= 0".freeze]) + s.add_development_dependency(%q.freeze, [">= 0".freeze]) + s.add_development_dependency(%q.freeze, [">= 0".freeze]) + s.add_development_dependency(%q.freeze, [">= 0".freeze]) end diff -Nru ruby3.3-3.3.13/.bundle/specifications/typeprof-0.21.9.gemspec ruby3.3-3.3.14/.bundle/specifications/typeprof-0.21.9.gemspec --- ruby3.3-3.3.13/.bundle/specifications/typeprof-0.21.9.gemspec 2026-10-23 03:17:43.000000000 +0000 +++ ruby3.3-3.3.14/.bundle/specifications/typeprof-0.21.9.gemspec 2026-11-18 21:52:33.000000000 +0000 @@ -3,7 +3,7 @@ Gem::Specification.new do |s| s.name = "typeprof".freeze - s.version = "0.21.9" + s.version = "0.21.9".freeze s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.metadata = { "homepage_uri" => "https://github.com/ruby/typeprof", "source_code_uri" => "https://github.com/ruby/typeprof" } if s.respond_to? :metadata= @@ -18,10 +18,10 @@ s.homepage = "https://github.com/ruby/typeprof".freeze s.licenses = ["MIT".freeze] s.required_ruby_version = Gem::Requirement.new(">= 2.7".freeze) - s.rubygems_version = "3.4.20".freeze + s.rubygems_version = "3.5.1".freeze s.summary = "TypeProf is a type analysis tool for Ruby code based on abstract interpretation".freeze s.specification_version = 4 - s.add_runtime_dependency(%q.freeze, [">= 1.8.1"]) + s.add_runtime_dependency(%q.freeze, [">= 1.8.1".freeze]) end diff -Nru ruby3.3-3.3.13/array.c ruby3.3-3.3.14/array.c --- ruby3.3-3.3.13/array.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/array.c 2026-11-18 21:52:31.000000000 +0000 @@ -382,13 +382,14 @@ if (!ARY_EMBED_P(ary)) { const VALUE *buf = ARY_HEAP_PTR(ary); long len = ARY_HEAP_LEN(ary); + long capa = ARY_HEAP_CAPA(ary); FL_SET_EMBED(ary); ARY_SET_EMBED_LEN(ary, len); MEMCPY((void *)ARY_EMBED_PTR(ary), (void *)buf, VALUE, len); - ary_heap_free_ptr(ary, buf, len * sizeof(VALUE)); + ary_heap_free_ptr(ary, buf, capa * sizeof(VALUE)); } } @@ -423,7 +424,7 @@ if (len > capacity) len = capacity; MEMCPY((VALUE *)RARRAY(ary)->as.ary, ptr, VALUE, len); - ary_heap_free_ptr(ary, ptr, old_capa); + ary_heap_free_ptr(ary, ptr, old_capa * sizeof(VALUE)); FL_SET_EMBED(ary); ARY_SET_LEN(ary, len); @@ -1116,6 +1117,7 @@ } /* recheck after argument conversion */ rb_ary_modify(ary); + ARY_SET_LEN(ary, 0); ary_resize_capa(ary, len); if (rb_block_given_p()) { long i; @@ -1444,6 +1446,7 @@ rb_ary_modify_check(ary); result = ary_take_first_or_last(argc, argv, ary, ARY_TAKE_LAST); + rb_ary_modify_check(ary); ARY_INCREASE_LEN(ary, -RARRAY_LEN(result)); ary_verify(ary); return result; @@ -3086,6 +3089,7 @@ const VALUE *p1 = RARRAY_CONST_PTR(ary); VALUE *p2 = (VALUE *)RARRAY_CONST_PTR(dup) + len - 1; do *p2-- = *p1++; while (--len > 0); + rb_gc_writebarrier_remember(dup); } ARY_SET_LEN(dup, RARRAY_LEN(ary)); return dup; @@ -5171,8 +5175,8 @@ return rb_exec_recursive_paired(recursive_eql, ary1, ary2, ary2); } -VALUE -rb_ary_hash_values(long len, const VALUE *elements) +static VALUE +ary_hash_values(long len, const VALUE *elements, const VALUE ary) { long i; st_index_t h; @@ -5183,11 +5187,21 @@ for (i=0; i integer @@ -5204,7 +5218,8 @@ static VALUE rb_ary_hash(VALUE ary) { - return rb_ary_hash_values(RARRAY_LEN(ary), RARRAY_CONST_PTR(ary)); + RBIMPL_ASSERT_OR_ASSUME(ary); + return ary_hash_values(RARRAY_LEN(ary), RARRAY_CONST_PTR(ary), ary); } /* @@ -6543,6 +6558,7 @@ n = NUM2LONG(nv); if (n < 0) rb_raise(rb_eArgError, "negative sample number"); if (n > len) n = len; + if (n <= 0) return rb_ary_new_capa(0); if (n <= numberof(idx)) { for (i = 0; i < n; ++i) { rnds[i] = RAND_UPTO(len - i); @@ -6931,13 +6947,17 @@ static VALUE rb_ary_permutation(int argc, VALUE *argv, VALUE ary) { - long r, n, i; + long r, i; - n = RARRAY_LEN(ary); /* Array length */ RETURN_SIZED_ENUMERATOR(ary, argc, argv, rb_ary_permutation_size); /* Return enumerator if no block */ - r = n; - if (rb_check_arity(argc, 0, 1) && !NIL_P(argv[0])) + if (rb_check_arity(argc, 0, 1) && !NIL_P(argv[0])) { r = NUM2LONG(argv[0]); /* Permutation size from argument */ + } + else { + r = RARRAY_LEN(ary); + } + + long n = RARRAY_LEN(ary); if (r < 0 || n < r) { /* no permutations: yield nothing */ @@ -7200,11 +7220,9 @@ static VALUE rb_ary_repeated_permutation(VALUE ary, VALUE num) { - long r, n, i; - - n = RARRAY_LEN(ary); /* Array length */ RETURN_SIZED_ENUMERATOR(ary, 1, &num, rb_ary_repeated_permutation_size); /* Return Enumerator if no block */ - r = NUM2LONG(num); /* Permutation size from argument */ + long r = NUM2LONG(num); /* Permutation size from argument */ + long n = RARRAY_LEN(ary); if (r < 0) { /* no permutations: yield nothing */ @@ -7213,7 +7231,7 @@ rb_yield(rb_ary_new2(0)); } else if (r == 1) { /* this is a special, easy case */ - for (i = 0; i < RARRAY_LEN(ary); i++) { + for (long i = 0; i < RARRAY_LEN(ary); i++) { rb_yield(rb_ary_new3(1, RARRAY_AREF(ary, i))); } } diff -Nru ruby3.3-3.3.13/bignum.c ruby3.3-3.3.14/bignum.c --- ruby3.3-3.3.13/bignum.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/bignum.c 2026-11-18 21:52:31.000000000 +0000 @@ -4143,7 +4143,7 @@ base = 10; } } - else if (len == 1 || !(flags & RB_INT_PARSE_PREFIX)) { + else if (len == 0 || len == 1 || !(flags & RB_INT_PARSE_PREFIX)) { /* no prefix */ } else if (base == 2) { @@ -4174,20 +4174,24 @@ if (*str == '0' && len != 1) { /* squeeze preceding 0s */ int us = 0; const char *end = len < 0 ? NULL : str + len; - ++num_digits; - while ((c = *++str) == '0' || - ((flags & RB_INT_PARSE_UNDERSCORE) && c == '_')) { - if (c == '_') { - if (++us >= 2) + while (str != end) { + const char *next = str + 1; + c = *str; + if (c == '0') { + if (next == end || !*next || ISSPACE(*next)) break; - } - else { ++num_digits; us = 0; } - if (str == end) break; + else if ((flags & RB_INT_PARSE_UNDERSCORE) && c == '_') { + if (++us >= 2 || next == end || !*next || ISSPACE(*next)) + break; + } + else { + break; + } + str = next; } - if (!c || ISSPACE(c)) --str; if (end) len = end - str; } c = *str; diff -Nru ruby3.3-3.3.13/compile.c ruby3.3-3.3.14/compile.c --- ruby3.3-3.3.13/compile.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/compile.c 2026-11-18 21:52:31.000000000 +0000 @@ -1008,10 +1008,10 @@ VALUE * rb_iseq_original_iseq(const rb_iseq_t *iseq) /* cold path */ { - VALUE *original_code; + VALUE *original_code = RUBY_ATOMIC_PTR_LOAD(ISEQ_BODY(iseq)->variable.original_iseq); - if (ISEQ_ORIGINAL_ISEQ(iseq)) return ISEQ_ORIGINAL_ISEQ(iseq); - original_code = ISEQ_ORIGINAL_ISEQ_ALLOC(iseq, ISEQ_BODY(iseq)->iseq_size); + if (original_code) return original_code; + original_code = ALLOC_N(VALUE, ISEQ_BODY(iseq)->iseq_size); MEMCPY(original_code, ISEQ_BODY(iseq)->iseq_encoded, VALUE, ISEQ_BODY(iseq)->iseq_size); #if OPT_DIRECT_THREADED_CODE || OPT_CALL_THREADED_CODE @@ -1027,6 +1027,15 @@ } } #endif + + /* Concurrent callers can each build a copy; publish only fully + * translated code and keep the first one. */ + VALUE *prev = ATOMIC_PTR_CAS(ISEQ_BODY(iseq)->variable.original_iseq, + NULL, original_code); + if (prev) { + ruby_xfree(original_code); + return prev; + } return original_code; } @@ -11432,7 +11441,7 @@ TypedData_Get_Struct(list, struct pinned_list, &pinned_list_type, ptr); - if (offset >= ptr->size) { + if (offset < 0 || offset >= ptr->size) { rb_raise(rb_eIndexError, "object index out of range: %ld", offset); } @@ -11446,7 +11455,7 @@ TypedData_Get_Struct(list, struct pinned_list, &pinned_list_type, ptr); - if (offset >= ptr->size) { + if (offset < 0 || offset >= ptr->size) { rb_raise(rb_eIndexError, "object index out of range: %ld", offset); } @@ -11733,7 +11742,8 @@ const struct rb_builtin_function *table = GET_VM()->builtin_function_table; if (table == NULL) rb_raise(rb_eArgError, "builtin function table is not provided"); if (strncmp(table[i].name, name, len) != 0) { - rb_raise(rb_eArgError, "builtin function index (%d) mismatch (expect %s but %s)", i, name, table[i].name); + rb_raise(rb_eArgError, "builtin function index (%d) mismatch (expect %.*s but %s)", + i, len, name, table[i].name); } // fprintf(stderr, "load-builtin: name:%s(%d)\n", table[i].name, table[i].argc); @@ -13613,7 +13623,7 @@ fprintf(stderr, "ibf_load_iseq: new iseq=%p\n", (void *)iseq); #endif FL_SET((VALUE)iseq, ISEQ_NOT_LOADED_YET); - iseq->aux.loader.obj = load->loader_obj; + RB_OBJ_WRITE((VALUE)iseq, &iseq->aux.loader.obj, load->loader_obj); iseq->aux.loader.index = iseq_index; #if IBF_ISEQ_DEBUG fprintf(stderr, "ibf_load_iseq: iseq=%p loader_obj=%p index=%d\n", diff -Nru ruby3.3-3.3.13/configure ruby3.3-3.3.14/configure --- ruby3.3-3.3.13/configure 2026-10-23 03:17:43.000000000 +0000 +++ ruby3.3-3.3.14/configure 2026-11-18 21:52:33.000000000 +0000 @@ -1,9 +1,9 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.71. +# Generated by GNU Autoconf 2.72. # # -# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, +# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, # Inc. # # @@ -15,7 +15,6 @@ # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -as_nop=: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh @@ -24,12 +23,13 @@ # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST -else $as_nop - case `(set -o) 2>/dev/null` in #( +else case e in #( + e) case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; +esac ;; esac fi @@ -101,7 +101,7 @@ ;; esac -# We did not find ourselves, most probably we were run as `sh COMMAND' +# We did not find ourselves, most probably we were run as 'sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 @@ -131,15 +131,14 @@ esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail -# out after a failed `exec'. +# out after a failed 'exec'. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then - as_bourne_compatible="as_nop=: -if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 + as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh NULLCMD=: @@ -147,12 +146,13 @@ # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST -else \$as_nop - case \`(set -o) 2>/dev/null\` in #( +else case e in #( + e) case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; +esac ;; esac fi " @@ -170,8 +170,9 @@ if ( set x; as_fn_ret_success y && test x = \"\$1\" ) then : -else \$as_nop - exitcode=1; echo positional parameters were not saved. +else case e in #( + e) exitcode=1; echo positional parameters were not saved. ;; +esac fi test x\$exitcode = x0 || exit 1 blah=\$(echo \$(echo blah)) @@ -185,14 +186,15 @@ if (eval "$as_required") 2>/dev/null then : as_have_required=yes -else $as_nop - as_have_required=no +else case e in #( + e) as_have_required=no ;; +esac fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null then : -else $as_nop - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +else case e in #( + e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do @@ -225,12 +227,13 @@ if $as_found then : -else $as_nop - if { test -f "$SHELL" || test -f "$SHELL.exe"; } && +else case e in #( + e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null then : CONFIG_SHELL=$SHELL as_have_required=yes -fi +fi ;; +esac fi @@ -252,7 +255,7 @@ esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail -# out after a failed `exec'. +# out after a failed 'exec'. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi @@ -271,7 +274,8 @@ $0: the script under such a shell if you do have one." fi exit 1 -fi +fi ;; +esac fi fi SHELL=${CONFIG_SHELL-/bin/sh} @@ -310,14 +314,6 @@ as_fn_set_status $1 exit $1 } # as_fn_exit -# as_fn_nop -# --------- -# Do nothing but, unlike ":", preserve the value of $?. -as_fn_nop () -{ - return $? -} -as_nop=as_fn_nop # as_fn_mkdir_p # ------------- @@ -386,11 +382,12 @@ { eval $1+=\$2 }' -else $as_nop - as_fn_append () +else case e in #( + e) as_fn_append () { eval $1=\$$1\$2 - } + } ;; +esac fi # as_fn_append # as_fn_arith ARG... @@ -404,11 +401,12 @@ { as_val=$(( $* )) }' -else $as_nop - as_fn_arith () +else case e in #( + e) as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` - } + } ;; +esac fi # as_fn_arith @@ -426,14 +424,6 @@ printf "%s\n" "${msg_result_other}$1${msg_reset}" >&6 ;; esac } # colorize_result -# as_fn_nop -# --------- -# Do nothing but, unlike ":", preserve the value of $?. -as_fn_nop () -{ - return $? -} -as_nop=as_fn_nop # config_summary NAME, VAL # ------------------------ @@ -443,8 +433,8 @@ if test -z "$2" then : -else $as_nop - +else case e in #( + e) printf %s " * $1: " | dd bs=1 count=26 2>/dev/null if test "$FOLD" then : @@ -452,10 +442,12 @@ echo "$2" | fold -s -w$fold_width | sed '1!s/^/ /;$!s/$/\\/' -else $as_nop - echo "$2" +else case e in #( + e) echo "$2" ;; +esac fi - + ;; +esac fi } # config_summary @@ -532,6 +524,8 @@ /[$]LINENO/= ' <$as_myself | sed ' + t clear + :clear s/[$]LINENO.*/&-/ t lineno b @@ -580,7 +574,6 @@ as_echo='printf %s\n' as_echo_n='printf %s' - rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file @@ -592,9 +585,9 @@ if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. + # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. + # In both cases, we have to default to 'cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then @@ -619,10 +612,12 @@ as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" +as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" +as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated # Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" +as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" +as_tr_sh="eval sed '$as_sed_sh'" # deprecated test -n "$DJDIR" || exec 7<&0 /dev/null && - as_fn_error $? "invalid feature name: \`$ac_useropt'" + as_fn_error $? "invalid feature name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1194,7 +1189,7 @@ ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: \`$ac_useropt'" + as_fn_error $? "invalid feature name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1407,7 +1402,7 @@ ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: \`$ac_useropt'" + as_fn_error $? "invalid package name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1423,7 +1418,7 @@ ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: \`$ac_useropt'" + as_fn_error $? "invalid package name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1453,8 +1448,8 @@ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; - -*) as_fn_error $? "unrecognized option: \`$ac_option' -Try \`$0 --help' for more information" + -*) as_fn_error $? "unrecognized option: '$ac_option' +Try '$0 --help' for more information" ;; *=*) @@ -1462,7 +1457,7 @@ # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) - as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + as_fn_error $? "invalid variable name: '$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; @@ -1512,7 +1507,7 @@ as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done -# There might be people who depend on the old broken behavior: `$host' +# There might be people who depend on the old broken behavior: '$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias @@ -1580,7 +1575,7 @@ test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi -ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` @@ -1608,7 +1603,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures this package to adapt to many kinds of systems. +'configure' configures this package to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1622,11 +1617,11 @@ --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit - -q, --quiet, --silent do not print \`checking ...' messages + -q, --quiet, --silent do not print 'checking ...' messages --cache-file=FILE cache test results in FILE [disabled] - -C, --config-cache alias for \`--cache-file=config.cache' + -C, --config-cache alias for '--cache-file=config.cache' -n, --no-create do not create output files - --srcdir=DIR find the sources in DIR [configure dir or \`..'] + --srcdir=DIR find the sources in DIR [configure dir or '..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX @@ -1634,10 +1629,10 @@ --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] -By default, \`make install' will install all the files in -\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify -an installation prefix other than \`$ac_default_prefix' using \`--prefix', -for instance \`--prefix=\$HOME'. +By default, 'make install' will install all the files in +'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify +an installation prefix other than '$ac_default_prefix' using '--prefix', +for instance '--prefix=\$HOME'. For better control, use the options below. @@ -1721,6 +1716,7 @@ --enable-debug-env enable RUBY_DEBUG environment variable --enable-mkmf-verbose enable verbose in mkmf --disable-rubygems disable rubygems by default + --enable-year2038 support timestamps after 2038 Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] @@ -1823,7 +1819,7 @@ CXXFLAGS C++ compiler flags CPP C preprocessor -Use these variables to override the choices made by `configure' or to help +Use these variables to override the choices made by 'configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to the package provider. @@ -1891,9 +1887,9 @@ if $ac_init_version; then cat <<\_ACEOF configure -generated by GNU Autoconf 2.71 +generated by GNU Autoconf 2.72 -Copyright (C) 2021 Free Software Foundation, Inc. +Copyright (C) 2023 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF @@ -1932,11 +1928,12 @@ } && test -s conftest.$ac_objext then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval @@ -1971,11 +1968,12 @@ } && test -s conftest.$ac_objext then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval @@ -2009,11 +2007,12 @@ } then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval @@ -2032,8 +2031,8 @@ if eval test \${$3+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> @@ -2041,10 +2040,12 @@ if ac_fn_c_try_compile "$LINENO" then : eval "$3=yes" -else $as_nop - eval "$3=no" +else case e in #( + e) eval "$3=no" ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -2084,11 +2085,12 @@ } then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would @@ -2131,11 +2133,12 @@ } then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would @@ -2177,12 +2180,13 @@ test $ac_status = 0; }; } then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: program exited with status $ac_status" >&5 +else case e in #( + e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5 printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=$ac_status + ac_retval=$ac_status ;; +esac fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno @@ -2202,8 +2206,8 @@ if eval test \${$3+y} then : printf %s "(cached) " >&6 -else $as_nop - eval "$3=no" +else case e in #( + e) eval "$3=no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 @@ -2233,12 +2237,14 @@ if ac_fn_c_try_compile "$LINENO" then : -else $as_nop - eval "$3=yes" +else case e in #( + e) eval "$3=yes" ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -2258,15 +2264,15 @@ if eval test \${$3+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $2 (); below. */ + which can conflict with char $2 (void); below. */ #include #undef $2 @@ -2277,7 +2283,7 @@ #ifdef __cplusplus extern "C" #endif -char $2 (); +char $2 (void); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ @@ -2296,11 +2302,13 @@ if ac_fn_c_try_link "$LINENO" then : eval "$3=yes" -else $as_nop - eval "$3=no" +else case e in #( + e) eval "$3=no" ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext + conftest$ac_exeext conftest.$ac_ext ;; +esac fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -2354,18 +2362,19 @@ if ac_fn_c_try_compile "$LINENO" then : ac_hi=$ac_mid; break -else $as_nop - as_fn_arith $ac_mid + 1 && ac_lo=$as_val +else case e in #( + e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi - as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val + as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int @@ -2400,20 +2409,23 @@ if ac_fn_c_try_compile "$LINENO" then : ac_lo=$ac_mid; break -else $as_nop - as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val +else case e in #( + e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi - as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val + as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done -else $as_nop - ac_lo= ac_hi= +else case e in #( + e) ac_lo= ac_hi= ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext # Binary search between lo and hi bounds. @@ -2436,8 +2448,9 @@ if ac_fn_c_try_compile "$LINENO" then : ac_hi=$ac_mid -else $as_nop - as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val +else case e in #( + e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done @@ -2485,8 +2498,9 @@ if ac_fn_c_try_run "$LINENO" then : echo >>conftest.val; read $3 &6 -else $as_nop - as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` +else case e in #( + e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` eval ac_save_FLAGS=\$$6 as_fn_append $6 " $5" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -2536,12 +2550,14 @@ if ac_fn_c_try_compile "$LINENO" then : eval "$3=yes" -else $as_nop - eval "$3=no" +else case e in #( + e) eval "$3=no" ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext eval $6=\$ac_save_FLAGS - + ;; +esac fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -2562,8 +2578,8 @@ if eval test \${$4+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $5 int @@ -2579,8 +2595,8 @@ if ac_fn_c_try_compile "$LINENO" then : eval "$4=yes" -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $5 int @@ -2596,12 +2612,15 @@ if ac_fn_c_try_compile "$LINENO" then : eval "$4=yes" -else $as_nop - eval "$4=no" +else case e in #( + e) eval "$4=no" ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi eval ac_res=\$$4 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -2634,7 +2653,7 @@ running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was -generated by GNU Autoconf 2.71. Invocation command line was +generated by GNU Autoconf 2.72. Invocation command line was $ $0$ac_configure_args_raw @@ -2880,10 +2899,10 @@ printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ - || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } fi done @@ -2919,9 +2938,7 @@ /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ struct buf { int x; }; struct buf * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; +static char *e (char **p, int i) { return p[i]; } @@ -2935,6 +2952,21 @@ return s; } +/* C89 style stringification. */ +#define noexpand_stringify(a) #a +const char *stringified = noexpand_stringify(arbitrary+token=sequence); + +/* C89 style token pasting. Exercises some of the corner cases that + e.g. old MSVC gets wrong, but not very hard. */ +#define noexpand_concat(a,b) a##b +#define expand_concat(a,b) noexpand_concat(a,b) +extern int vA; +extern int vbee; +#define aye A +#define bee B +int *pvA = &expand_concat(v,aye); +int *pvbee = &noexpand_concat(v,bee); + /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not \xHH hex character constants. These do not provoke an error unfortunately, instead are silently treated @@ -2962,16 +2994,19 @@ # Test code for whether the C compiler supports C99 (global declarations) ac_c_conftest_c99_globals=' -// Does the compiler advertise C99 conformance? +/* Does the compiler advertise C99 conformance? */ #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L # error "Compiler does not advertise C99 conformance" #endif +// See if C++-style comments work. + #include extern int puts (const char *); extern int printf (const char *, ...); extern int dprintf (int, const char *, ...); extern void *malloc (size_t); +extern void free (void *); // Check varargs macros. These examples are taken from C99 6.10.3.5. // dprintf is used instead of fprintf to avoid needing to declare @@ -3021,7 +3056,6 @@ static inline int test_restrict (ccp restrict text) { - // See if C++-style comments work. // Iterate through items via the restricted pointer. // Also check for declarations in for loops. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) @@ -3087,6 +3121,8 @@ ia->datasize = 10; for (int i = 0; i < ia->datasize; ++i) ia->data[i] = i * 1.234; + // Work around memory leak warnings. + free (ia); // Check named initializers. struct named_init ni = { @@ -3108,7 +3144,7 @@ # Test code for whether the C compiler supports C11 (global declarations) ac_c_conftest_c11_globals=' -// Does the compiler advertise C11 conformance? +/* Does the compiler advertise C11 conformance? */ #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L # error "Compiler does not advertise C11 conformance" #endif @@ -3521,8 +3557,9 @@ if $as_found then : -else $as_nop - as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 +else case e in #( + e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; +esac fi @@ -3550,12 +3587,12 @@ eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 +printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 -printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 +printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) @@ -3564,18 +3601,18 @@ ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 -printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 +printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 -printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 +printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 -printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 -printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 +printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 +printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. @@ -3591,11 +3628,11 @@ fi done if $ac_cache_corrupted; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} - as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' + as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## @@ -3633,8 +3670,9 @@ if test -t 1 then : configure_tty=1 -else $as_nop - configure_tty=0 +else case e in #( + e) configure_tty=0 ;; +esac fi ;; esac if test $configure_tty -eq 1 @@ -3675,10 +3713,11 @@ begin_group() { printf "%s\n" "::group::$1";} end_group() { printf "%s\n" "::endgroup::";} -else $as_nop - begin_group() { :;} +else case e in #( + e) begin_group() { :;} end_group() { :;} - + ;; +esac fi @@ -3698,8 +3737,8 @@ as_fn_error $? "need ruby" "$LINENO" 5 ;; esac -else $as_nop - +else case e in #( + e) # Extract the first word of "ruby", so it can be a program name with args. set dummy ruby; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 @@ -3707,8 +3746,8 @@ if test ${ac_cv_path_BASERUBY+y} then : printf %s "(cached) " >&6 -else $as_nop - case $BASERUBY in +else case e in #( + e) case $BASERUBY in [\\/]* | ?:[\\/]*) ac_cv_path_BASERUBY="$BASERUBY" # Let the user override the test with a path. ;; @@ -3734,6 +3773,7 @@ test -z "$ac_cv_path_BASERUBY" && ac_cv_path_BASERUBY="false" ;; +esac ;; esac fi BASERUBY=$ac_cv_path_BASERUBY @@ -3746,7 +3786,8 @@ fi - + ;; +esac fi # BASERUBY must be >= 2.5.0. Note that `"2.5.0" > "2.5"` is true. @@ -3774,10 +3815,11 @@ BASERUBY_VERSION=`$BASERUBY -v` $BASERUBY -C "$srcdir" tool/downloader.rb -d tool -e gnu config.guess config.sub >&6 -else $as_nop - +else case e in #( + e) HAVE_BASERUBY=no - + ;; +esac fi if test "$HAVE_BASERUBY" = no then : @@ -3876,15 +3918,16 @@ if test ${ac_cv_build+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_build_alias=$build_alias +else case e in #( + e) ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 colorize_result "$ac_cv_build" ; } @@ -3911,14 +3954,15 @@ if test ${ac_cv_host+y} then : printf %s "(cached) " >&6 -else $as_nop - if test "x$host_alias" = x; then +else case e in #( + e) if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 colorize_result "$ac_cv_host" ; } @@ -3945,14 +3989,15 @@ if test ${ac_cv_target+y} then : printf %s "(cached) " >&6 -else $as_nop - if test "x$target_alias" = x; then +else case e in #( + e) if test "x$target_alias" = x; then ac_cv_target=$ac_cv_host else ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` || as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5 fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 colorize_result "$ac_cv_target" ; } @@ -4009,7 +4054,7 @@ test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. -# By default was `s,x,x', remove it if useless. +# By default was 's,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` @@ -4048,8 +4093,8 @@ if test ${ac_cv_prog_WASMOPT+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$WASMOPT"; then +else case e in #( + e) if test -n "$WASMOPT"; then ac_cv_prog_WASMOPT="$WASMOPT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -4071,7 +4116,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi WASMOPT=$ac_cv_prog_WASMOPT if test -n "$WASMOPT"; then @@ -4093,8 +4139,8 @@ if test ${ac_cv_prog_ac_ct_WASMOPT+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_WASMOPT"; then +else case e in #( + e) if test -n "$ac_ct_WASMOPT"; then ac_cv_prog_ac_ct_WASMOPT="$ac_ct_WASMOPT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -4116,7 +4162,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_WASMOPT=$ac_cv_prog_ac_ct_WASMOPT if test -n "$ac_ct_WASMOPT"; then @@ -4160,15 +4207,16 @@ printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } as_fn_error $? "WASI_SDK_PATH environment variable is required" "$LINENO" 5 -else $as_nop - +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } CC="${CC:-${WASI_SDK_PATH}/bin/clang}" LD="${LD:-${WASI_SDK_PATH}/bin/clang}" AR="${AR:-${WASI_SDK_PATH}/bin/llvm-ar}" RANLIB="${RANLIB:-${WASI_SDK_PATH}/bin/llvm-ranlib}" - + ;; +esac fi ;; #( *) : @@ -4190,8 +4238,8 @@ if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in #( + e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -4213,7 +4261,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -4239,8 +4288,8 @@ if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CC"; then +else case e in #( + e) if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -4262,7 +4311,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then @@ -4305,8 +4355,8 @@ if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in #( + e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -4328,7 +4378,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -4354,8 +4405,8 @@ if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CC"; then +else case e in #( + e) if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -4377,7 +4428,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then @@ -4420,8 +4472,8 @@ if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in #( + e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -4443,7 +4495,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -4469,8 +4522,8 @@ if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CC"; then +else case e in #( + e) if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -4492,7 +4545,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then @@ -4551,8 +4605,8 @@ if test ${ac_cv_prog_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CXX"; then +else case e in #( + e) if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -4574,7 +4628,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then @@ -4603,8 +4658,8 @@ if test ${ac_cv_prog_AR+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$AR"; then +else case e in #( + e) if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -4626,7 +4681,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi AR=$ac_cv_prog_AR if test -n "$AR"; then @@ -4648,8 +4704,8 @@ if test ${ac_cv_prog_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CXX"; then +else case e in #( + e) if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -4671,7 +4727,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then @@ -4693,8 +4750,8 @@ if test ${ac_cv_prog_LD+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$LD"; then +else case e in #( + e) if test -n "$LD"; then ac_cv_prog_LD="$LD" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -4716,7 +4773,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi LD=$ac_cv_prog_LD if test -n "$LD"; then @@ -4742,8 +4800,8 @@ if test ${ac_cv_prog_LD+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$LD"; then +else case e in #( + e) if test -n "$LD"; then ac_cv_prog_LD="$LD" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -4765,7 +4823,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi LD=$ac_cv_prog_LD if test -n "$LD"; then @@ -4787,8 +4846,8 @@ if test ${ac_cv_prog_AR+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$AR"; then +else case e in #( + e) if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -4810,7 +4869,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi AR=$ac_cv_prog_AR if test -n "$AR"; then @@ -4832,8 +4892,8 @@ if test ${ac_cv_prog_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CXX"; then +else case e in #( + e) if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -4855,7 +4915,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then @@ -4877,8 +4938,8 @@ if test ${ac_cv_prog_NM+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$NM"; then +else case e in #( + e) if test -n "$NM"; then ac_cv_prog_NM="$NM" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -4900,7 +4961,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi NM=$ac_cv_prog_NM if test -n "$NM"; then @@ -4922,8 +4984,8 @@ if test ${ac_cv_prog_RANLIB+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$RANLIB"; then +else case e in #( + e) if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -4945,7 +5007,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then @@ -4970,8 +5033,9 @@ if $rb_CC -E -dM -xc - < /dev/null | grep -F __apple_build_version__ > /dev/null then : llvm_prefix= -else $as_nop - llvm_prefix=llvm- +else case e in #( + e) llvm_prefix=llvm- ;; +esac fi # AC_PREPROC_IFELSE cannot be used before AC_USE_SYSTEM_EXTENSIONS @@ -4984,8 +5048,8 @@ if test ${ac_cv_prog_LD+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$LD"; then +else case e in #( + e) if test -n "$LD"; then ac_cv_prog_LD="$LD" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5007,7 +5071,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi LD=$ac_cv_prog_LD if test -n "$LD"; then @@ -5029,8 +5094,8 @@ if test ${ac_cv_prog_AR+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$AR"; then +else case e in #( + e) if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5052,7 +5117,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi AR=$ac_cv_prog_AR if test -n "$AR"; then @@ -5075,8 +5141,8 @@ if test ${ac_cv_prog_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CXX"; then +else case e in #( + e) if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5098,7 +5164,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then @@ -5120,8 +5187,8 @@ if test ${ac_cv_prog_NM+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$NM"; then +else case e in #( + e) if test -n "$NM"; then ac_cv_prog_NM="$NM" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5143,7 +5210,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi NM=$ac_cv_prog_NM if test -n "$NM"; then @@ -5165,8 +5233,8 @@ if test ${ac_cv_prog_OBJCOPY+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$OBJCOPY"; then +else case e in #( + e) if test -n "$OBJCOPY"; then ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5188,7 +5256,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi OBJCOPY=$ac_cv_prog_OBJCOPY if test -n "$OBJCOPY"; then @@ -5210,8 +5279,8 @@ if test ${ac_cv_prog_OBJDUMP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$OBJDUMP"; then +else case e in #( + e) if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5233,7 +5302,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then @@ -5255,8 +5325,8 @@ if test ${ac_cv_prog_RANLIB+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$RANLIB"; then +else case e in #( + e) if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5278,7 +5348,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then @@ -5300,8 +5371,8 @@ if test ${ac_cv_prog_STRIP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$STRIP"; then +else case e in #( + e) if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5323,7 +5394,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then @@ -5354,8 +5426,8 @@ if test ${ac_cv_path_LD+y} then : printf %s "(cached) " >&6 -else $as_nop - case $LD in +else case e in #( + e) case $LD in [\\/]* | ?:[\\/]*) ac_cv_path_LD="$LD" # Let the user override the test with a path. ;; @@ -5381,6 +5453,7 @@ IFS=$as_save_IFS ;; +esac ;; esac fi LD=$ac_cv_path_LD @@ -5403,8 +5476,8 @@ if test ${ac_cv_path_ac_pt_LD+y} then : printf %s "(cached) " >&6 -else $as_nop - case $ac_pt_LD in +else case e in #( + e) case $ac_pt_LD in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_LD="$ac_pt_LD" # Let the user override the test with a path. ;; @@ -5430,6 +5503,7 @@ IFS=$as_save_IFS ;; +esac ;; esac fi ac_pt_LD=$ac_cv_path_ac_pt_LD @@ -5467,8 +5541,8 @@ if test ${ac_cv_path_NM+y} then : printf %s "(cached) " >&6 -else $as_nop - case $NM in +else case e in #( + e) case $NM in [\\/]* | ?:[\\/]*) ac_cv_path_NM="$NM" # Let the user override the test with a path. ;; @@ -5494,6 +5568,7 @@ IFS=$as_save_IFS ;; +esac ;; esac fi NM=$ac_cv_path_NM @@ -5516,8 +5591,8 @@ if test ${ac_cv_path_ac_pt_NM+y} then : printf %s "(cached) " >&6 -else $as_nop - case $ac_pt_NM in +else case e in #( + e) case $ac_pt_NM in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_NM="$ac_pt_NM" # Let the user override the test with a path. ;; @@ -5543,6 +5618,7 @@ IFS=$as_save_IFS ;; +esac ;; esac fi ac_pt_NM=$ac_cv_path_ac_pt_NM @@ -5609,8 +5685,8 @@ if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in #( + e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5632,7 +5708,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -5654,8 +5731,8 @@ if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CC"; then +else case e in #( + e) if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5677,7 +5754,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then @@ -5712,8 +5790,8 @@ if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in #( + e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5735,7 +5813,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -5757,8 +5836,8 @@ if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in #( + e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no @@ -5797,7 +5876,8 @@ ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" fi fi -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -5821,8 +5901,8 @@ if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in #( + e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5844,7 +5924,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -5870,8 +5951,8 @@ if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CC"; then +else case e in #( + e) if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5893,7 +5974,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then @@ -5931,8 +6013,8 @@ if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in #( + e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5954,7 +6036,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -5976,8 +6059,8 @@ if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CC"; then +else case e in #( + e) if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5999,7 +6082,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then @@ -6028,10 +6112,10 @@ fi -test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 @@ -6103,8 +6187,8 @@ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then : - # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. -# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' + # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. +# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. @@ -6124,7 +6208,7 @@ ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not - # safe: cross compilers may not add the suffix if given an `-o' + # safe: cross compilers may not add the suffix if given an '-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. @@ -6135,8 +6219,9 @@ done test "$ac_cv_exeext" = no && ac_cv_exeext= -else $as_nop - ac_file='' +else case e in #( + e) ac_file='' ;; +esac fi if test -z "$ac_file" then : @@ -6145,13 +6230,14 @@ printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables -See \`config.log' for more details" "$LINENO" 5; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 - printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } +See 'config.log' for more details" "$LINENO" 5; } +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 + printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 printf %s "checking for C compiler default output file name... " >&6; } @@ -6175,10 +6261,10 @@ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then : - # If both `conftest.exe' and `conftest' are `present' (well, observable) -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will -# work properly (i.e., refer to `conftest.exe'), while it won't with -# `rm'. + # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) +# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will +# work properly (i.e., refer to 'conftest.exe'), while it won't with +# 'rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in @@ -6188,11 +6274,12 @@ * ) break;; esac done -else $as_nop - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } ;; +esac fi rm -f conftest conftest$ac_cv_exeext { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 @@ -6208,6 +6295,8 @@ main (void) { FILE *f = fopen ("conftest.out", "w"); + if (!f) + return 1; return ferror (f) || fclose (f) != 0; ; @@ -6247,26 +6336,27 @@ if test "$cross_compiling" = maybe; then cross_compiling=yes else - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details" "$LINENO" 5; } +If you meant to cross compile, use '--host'. +See 'config.log' for more details" "$LINENO" 5; } fi fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 colorize_result "$cross_compiling" ; } -rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +rm -f conftest.$ac_ext conftest$ac_cv_exeext \ + conftest.o conftest.obj conftest.out ac_clean_files=$ac_clean_files_save { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 printf %s "checking for suffix of object files... " >&6; } if test ${ac_cv_objext+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -6298,16 +6388,18 @@ break;; esac done -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } ;; +esac fi -rm -f conftest.$ac_cv_objext conftest.$ac_ext +rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 colorize_result "$ac_cv_objext" ; } @@ -6318,8 +6410,8 @@ if test ${ac_cv_c_compiler_gnu+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -6336,12 +6428,14 @@ if ac_fn_c_try_compile "$LINENO" then : ac_compiler_gnu=yes -else $as_nop - ac_compiler_gnu=no +else case e in #( + e) ac_compiler_gnu=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 colorize_result "$ac_cv_c_compiler_gnu" ; } @@ -6359,8 +6453,8 @@ if test ${ac_cv_prog_cc_g+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_save_c_werror_flag=$ac_c_werror_flag +else case e in #( + e) ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" @@ -6378,8 +6472,8 @@ if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_g=yes -else $as_nop - CFLAGS="" +else case e in #( + e) CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6394,8 +6488,8 @@ if ac_fn_c_try_compile "$LINENO" then : -else $as_nop - ac_c_werror_flag=$ac_save_c_werror_flag +else case e in #( + e) ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6412,12 +6506,15 @@ then : ac_cv_prog_cc_g=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag + ac_c_werror_flag=$ac_save_c_werror_flag ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 colorize_result "$ac_cv_prog_cc_g" ; } @@ -6444,8 +6541,8 @@ if test ${ac_cv_prog_cc_c11+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cc_c11=no +else case e in #( + e) ac_cv_prog_cc_c11=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6462,25 +6559,28 @@ test "x$ac_cv_prog_cc_c11" != "xno" && break done rm -f conftest.$ac_ext -CC=$ac_save_CC +CC=$ac_save_CC ;; +esac fi if test "x$ac_cv_prog_cc_c11" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "${msg_result_other}unsupported${msg_reset}" >&6 ; } -else $as_nop - if test "x$ac_cv_prog_cc_c11" = x +else case e in #( + e) if test "x$ac_cv_prog_cc_c11" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "${msg_result_other}none needed${msg_reset}" >&6 ; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 colorize_result "$ac_cv_prog_cc_c11" ; } - CC="$CC $ac_cv_prog_cc_c11" + CC="$CC $ac_cv_prog_cc_c11" ;; +esac fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 - ac_prog_cc_stdc=c11 + ac_prog_cc_stdc=c11 ;; +esac fi fi if test x$ac_prog_cc_stdc = xno @@ -6490,8 +6590,8 @@ if test ${ac_cv_prog_cc_c99+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cc_c99=no +else case e in #( + e) ac_cv_prog_cc_c99=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6508,25 +6608,28 @@ test "x$ac_cv_prog_cc_c99" != "xno" && break done rm -f conftest.$ac_ext -CC=$ac_save_CC +CC=$ac_save_CC ;; +esac fi if test "x$ac_cv_prog_cc_c99" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "${msg_result_other}unsupported${msg_reset}" >&6 ; } -else $as_nop - if test "x$ac_cv_prog_cc_c99" = x +else case e in #( + e) if test "x$ac_cv_prog_cc_c99" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "${msg_result_other}none needed${msg_reset}" >&6 ; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 colorize_result "$ac_cv_prog_cc_c99" ; } - CC="$CC $ac_cv_prog_cc_c99" + CC="$CC $ac_cv_prog_cc_c99" ;; +esac fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 - ac_prog_cc_stdc=c99 + ac_prog_cc_stdc=c99 ;; +esac fi fi if test x$ac_prog_cc_stdc = xno @@ -6536,8 +6639,8 @@ if test ${ac_cv_prog_cc_c89+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cc_c89=no +else case e in #( + e) ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6554,25 +6657,28 @@ test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext -CC=$ac_save_CC +CC=$ac_save_CC ;; +esac fi if test "x$ac_cv_prog_cc_c89" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "${msg_result_other}unsupported${msg_reset}" >&6 ; } -else $as_nop - if test "x$ac_cv_prog_cc_c89" = x +else case e in #( + e) if test "x$ac_cv_prog_cc_c89" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "${msg_result_other}none needed${msg_reset}" >&6 ; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 colorize_result "$ac_cv_prog_cc_c89" ; } - CC="$CC $ac_cv_prog_cc_c89" + CC="$CC $ac_cv_prog_cc_c89" ;; +esac fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 - ac_prog_cc_stdc=c89 + ac_prog_cc_stdc=c89 ;; +esac fi fi @@ -6608,8 +6714,8 @@ if test ${ac_cv_prog_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CXX"; then +else case e in #( + e) if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -6631,7 +6737,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then @@ -6657,8 +6764,8 @@ if test ${ac_cv_prog_ac_ct_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CXX"; then +else case e in #( + e) if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -6680,7 +6787,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then @@ -6740,8 +6848,8 @@ if test ${ac_cv_cxx_compiler_gnu+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -6758,12 +6866,14 @@ if ac_fn_cxx_try_compile "$LINENO" then : ac_compiler_gnu=yes -else $as_nop - ac_compiler_gnu=no +else case e in #( + e) ac_compiler_gnu=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 colorize_result "$ac_cv_cxx_compiler_gnu" ; } @@ -6781,8 +6891,8 @@ if test ${ac_cv_prog_cxx_g+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_save_cxx_werror_flag=$ac_cxx_werror_flag +else case e in #( + e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" @@ -6800,8 +6910,8 @@ if ac_fn_cxx_try_compile "$LINENO" then : ac_cv_prog_cxx_g=yes -else $as_nop - CXXFLAGS="" +else case e in #( + e) CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6816,8 +6926,8 @@ if ac_fn_cxx_try_compile "$LINENO" then : -else $as_nop - ac_cxx_werror_flag=$ac_save_cxx_werror_flag +else case e in #( + e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6834,12 +6944,15 @@ then : ac_cv_prog_cxx_g=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - ac_cxx_werror_flag=$ac_save_cxx_werror_flag + ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 colorize_result "$ac_cv_prog_cxx_g" ; } @@ -6866,8 +6979,8 @@ if test ${ac_cv_prog_cxx_cxx11+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cxx_cxx11=no +else case e in #( + e) ac_cv_prog_cxx_cxx11=no ac_save_CXX=$CXX cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6884,25 +6997,28 @@ test "x$ac_cv_prog_cxx_cxx11" != "xno" && break done rm -f conftest.$ac_ext -CXX=$ac_save_CXX +CXX=$ac_save_CXX ;; +esac fi if test "x$ac_cv_prog_cxx_cxx11" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "${msg_result_other}unsupported${msg_reset}" >&6 ; } -else $as_nop - if test "x$ac_cv_prog_cxx_cxx11" = x +else case e in #( + e) if test "x$ac_cv_prog_cxx_cxx11" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "${msg_result_other}none needed${msg_reset}" >&6 ; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 colorize_result "$ac_cv_prog_cxx_cxx11" ; } - CXX="$CXX $ac_cv_prog_cxx_cxx11" + CXX="$CXX $ac_cv_prog_cxx_cxx11" ;; +esac fi ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 - ac_prog_cxx_stdcxx=cxx11 + ac_prog_cxx_stdcxx=cxx11 ;; +esac fi fi if test x$ac_prog_cxx_stdcxx = xno @@ -6912,8 +7028,8 @@ if test ${ac_cv_prog_cxx_cxx98+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cxx_cxx98=no +else case e in #( + e) ac_cv_prog_cxx_cxx98=no ac_save_CXX=$CXX cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6930,25 +7046,28 @@ test "x$ac_cv_prog_cxx_cxx98" != "xno" && break done rm -f conftest.$ac_ext -CXX=$ac_save_CXX +CXX=$ac_save_CXX ;; +esac fi if test "x$ac_cv_prog_cxx_cxx98" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "${msg_result_other}unsupported${msg_reset}" >&6 ; } -else $as_nop - if test "x$ac_cv_prog_cxx_cxx98" = x +else case e in #( + e) if test "x$ac_cv_prog_cxx_cxx98" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "${msg_result_other}none needed${msg_reset}" >&6 ; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 colorize_result "$ac_cv_prog_cxx_cxx98" ; } - CXX="$CXX $ac_cv_prog_cxx_cxx98" + CXX="$CXX $ac_cv_prog_cxx_cxx98" ;; +esac fi ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 - ac_prog_cxx_stdcxx=cxx98 + ac_prog_cxx_stdcxx=cxx98 ;; +esac fi fi @@ -6973,8 +7092,8 @@ if test ${ac_cv_prog_CPP+y} then : printf %s "(cached) " >&6 -else $as_nop - # Double quotes because $CC needs to be expanded +else case e in #( + e) # Double quotes because $CC needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp do ac_preproc_ok=false @@ -6992,9 +7111,10 @@ if ac_fn_c_try_cpp "$LINENO" then : -else $as_nop - # Broken: fails on valid input. -continue +else case e in #( + e) # Broken: fails on valid input. +continue ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext @@ -7008,15 +7128,16 @@ then : # Broken: success on invalid input. continue -else $as_nop - # Passes both tests. +else case e in #( + e) # Passes both tests. ac_preproc_ok=: -break +break ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok then : @@ -7025,7 +7146,8 @@ done ac_cv_prog_CPP=$CPP - + ;; +esac fi CPP=$ac_cv_prog_CPP else @@ -7048,9 +7170,10 @@ if ac_fn_c_try_cpp "$LINENO" then : -else $as_nop - # Broken: fails on valid input. -continue +else case e in #( + e) # Broken: fails on valid input. +continue ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext @@ -7064,24 +7187,26 @@ then : # Broken: success on invalid input. continue -else $as_nop - # Passes both tests. +else case e in #( + e) # Passes both tests. ac_preproc_ok=: -break +break ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok then : -else $as_nop - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } ;; +esac fi ac_ext=c @@ -7098,8 +7223,8 @@ if test ${ac_cv_prog_RANLIB+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$RANLIB"; then +else case e in #( + e) if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -7121,7 +7246,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then @@ -7143,8 +7269,8 @@ if test ${ac_cv_prog_ac_ct_RANLIB+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_RANLIB"; then +else case e in #( + e) if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -7166,7 +7292,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then @@ -7202,8 +7329,8 @@ if test ${ac_cv_prog_AR+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$AR"; then +else case e in #( + e) if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -7225,7 +7352,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi AR=$ac_cv_prog_AR if test -n "$AR"; then @@ -7251,8 +7379,8 @@ if test ${ac_cv_prog_ac_ct_AR+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_AR"; then +else case e in #( + e) if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -7274,7 +7402,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then @@ -7312,8 +7441,8 @@ if test ${ac_cv_prog_AS+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$AS"; then +else case e in #( + e) if test -n "$AS"; then ac_cv_prog_AS="$AS" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -7335,7 +7464,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi AS=$ac_cv_prog_AS if test -n "$AS"; then @@ -7361,8 +7491,8 @@ if test ${ac_cv_prog_ac_ct_AS+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_AS"; then +else case e in #( + e) if test -n "$ac_ct_AS"; then ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -7384,7 +7514,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_AS=$ac_cv_prog_ac_ct_AS if test -n "$ac_ct_AS"; then @@ -7422,8 +7553,8 @@ if test ${ac_cv_prog_LD+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$LD"; then +else case e in #( + e) if test -n "$LD"; then ac_cv_prog_LD="$LD" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -7445,7 +7576,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi LD=$ac_cv_prog_LD if test -n "$LD"; then @@ -7471,8 +7603,8 @@ if test ${ac_cv_prog_ac_ct_LD+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_LD"; then +else case e in #( + e) if test -n "$ac_ct_LD"; then ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -7494,7 +7626,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_LD=$ac_cv_prog_ac_ct_LD if test -n "$ac_ct_LD"; then @@ -7532,8 +7665,8 @@ if test ${ac_cv_prog_NM+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$NM"; then +else case e in #( + e) if test -n "$NM"; then ac_cv_prog_NM="$NM" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -7555,7 +7688,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi NM=$ac_cv_prog_NM if test -n "$NM"; then @@ -7581,8 +7715,8 @@ if test ${ac_cv_prog_ac_ct_NM+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_NM"; then +else case e in #( + e) if test -n "$ac_ct_NM"; then ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -7604,7 +7738,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_NM=$ac_cv_prog_ac_ct_NM if test -n "$ac_ct_NM"; then @@ -7642,8 +7777,8 @@ if test ${ac_cv_prog_OBJCOPY+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$OBJCOPY"; then +else case e in #( + e) if test -n "$OBJCOPY"; then ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -7665,7 +7800,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi OBJCOPY=$ac_cv_prog_OBJCOPY if test -n "$OBJCOPY"; then @@ -7691,8 +7827,8 @@ if test ${ac_cv_prog_ac_ct_OBJCOPY+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_OBJCOPY"; then +else case e in #( + e) if test -n "$ac_ct_OBJCOPY"; then ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -7714,7 +7850,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY if test -n "$ac_ct_OBJCOPY"; then @@ -7752,8 +7889,8 @@ if test ${ac_cv_prog_OBJDUMP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$OBJDUMP"; then +else case e in #( + e) if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -7775,7 +7912,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then @@ -7801,8 +7939,8 @@ if test ${ac_cv_prog_ac_ct_OBJDUMP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_OBJDUMP"; then +else case e in #( + e) if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -7824,7 +7962,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then @@ -7862,8 +8001,8 @@ if test ${ac_cv_prog_STRIP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$STRIP"; then +else case e in #( + e) if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -7885,7 +8024,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then @@ -7911,8 +8051,8 @@ if test ${ac_cv_prog_ac_ct_STRIP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_STRIP"; then +else case e in #( + e) if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -7934,7 +8074,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then @@ -7998,8 +8139,8 @@ if test ${with_os_version_style+y} then : withval=$with_os_version_style; os_version_style=$withval -else $as_nop - os_version_style=full +else case e in #( + e) os_version_style=full case $target_os in #( *[0-9].*) : case `/usr/bin/ruby -e 'puts RUBY_PLATFORM' 2>/dev/null` in #( @@ -8019,7 +8160,8 @@ *) : ;; esac - + ;; +esac fi os_version_style_transform= @@ -8052,8 +8194,9 @@ if test ${with_arch+y} then : withval=$with_arch; target_archs="$withval" -else $as_nop - unset target_archs +else case e in #( + e) unset target_archs ;; +esac fi @@ -8106,8 +8249,8 @@ if test ${ac_cv_safe_to_define___extensions__+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ # define __EXTENSIONS__ 1 @@ -8123,10 +8266,12 @@ if ac_fn_c_try_compile "$LINENO" then : ac_cv_safe_to_define___extensions__=yes -else $as_nop - ac_cv_safe_to_define___extensions__=no +else case e in #( + e) ac_cv_safe_to_define___extensions__=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 colorize_result "$ac_cv_safe_to_define___extensions__" ; } @@ -8136,8 +8281,8 @@ if test ${ac_cv_should_define__xopen_source+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_should_define__xopen_source=no +else case e in #( + e) ac_cv_should_define__xopen_source=no if test $ac_cv_header_wchar_h = yes then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -8156,8 +8301,8 @@ if ac_fn_c_try_compile "$LINENO" then : -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _XOPEN_SOURCE 500 @@ -8175,10 +8320,12 @@ then : ac_cv_should_define__xopen_source=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -fi +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 colorize_result "$ac_cv_should_define__xopen_source" ; } @@ -8203,6 +8350,8 @@ printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h + printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h + printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h @@ -8222,8 +8371,9 @@ printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h -else $as_nop - MINIX= +else case e in #( + e) MINIX= ;; +esac fi if test $ac_cv_safe_to_define___extensions__ = yes then : @@ -8280,8 +8430,9 @@ if ac_fn_c_try_cpp "$LINENO" then : -else $as_nop - as_fn_error $? "clang version 3.0 or later is required" "$LINENO" 5 +else case e in #( + e) as_fn_error $? "clang version 3.0 or later is required" "$LINENO" 5 ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext ;; #( @@ -8307,10 +8458,11 @@ then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } - as_fn_error $? "Unsupported OS X version is required" "$LINENO" 5 + as_fn_error $? "Unsupported OS X version is required" "$LINENO" 5 ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext ;; #( @@ -8326,8 +8478,8 @@ if test ${rb_cv_mingw32+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __MINGW32__ @@ -8338,11 +8490,13 @@ if ac_fn_c_try_cpp "$LINENO" then : rb_cv_mingw32=yes -else $as_nop - rb_cv_mingw32=no +else case e in #( + e) rb_cv_mingw32=no ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_mingw32" >&5 colorize_result "$rb_cv_mingw32" ; } @@ -8397,10 +8551,11 @@ fi -else $as_nop - +else case e in #( + e) linker_flag= - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker is GNU ld" >&5 @@ -8408,17 +8563,19 @@ if test ${rb_cv_prog_gnu_ld+y} then : printf %s "(cached) " >&6 -else $as_nop - if `$CC $CFLAGS $CPPFLAGS $LDFLAGS --print-prog-name=ld 2>&1` -v 2>&1 | grep "GNU ld" > /dev/null +else case e in #( + e) if `$CC $CFLAGS $CPPFLAGS $LDFLAGS --print-prog-name=ld 2>&1` -v 2>&1 | grep "GNU ld" > /dev/null then : rb_cv_prog_gnu_ld=yes -else $as_nop - +else case e in #( + e) rb_cv_prog_gnu_ld=no - -fi + ;; +esac +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_prog_gnu_ld" >&5 colorize_result "$rb_cv_prog_gnu_ld" ; } @@ -8429,8 +8586,8 @@ if test ${rb_cv_cppoutfile+y} then : printf %s "(cached) " >&6 -else $as_nop - save_CPPFLAGS="$CPPFLAGS" +else case e in #( + e) save_CPPFLAGS="$CPPFLAGS" CPPFLAGS='-o conftest-1.i' rb_cv_cppoutfile=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -8443,7 +8600,8 @@ fi rm -f conftest.err conftest.i conftest.$ac_ext CPPFLAGS="$save_CPPFLAGS" -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_cppoutfile" >&5 colorize_result "$rb_cv_cppoutfile" ; } @@ -8586,8 +8744,8 @@ target_cpu=universal real_cross_compiling=$cross_compiling -else $as_nop - +else case e in #( + e) if test x"$target_cpu" != x"${target_archs}" then : @@ -8631,10 +8789,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -8663,10 +8822,11 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi test x"$ARCH_FLAG" = x || break done @@ -8680,7 +8840,8 @@ fi target_cpu=${target_archs} - + ;; +esac fi case "$target" in #( -*) : @@ -8695,8 +8856,8 @@ ;; esac -else $as_nop - +else case e in #( + e) if test x"$target_alias" = x then : @@ -8734,17 +8895,19 @@ fi target_archs="$target_cpu" - + ;; +esac fi if test "${target_archs}" != "${rb_cv_target_archs-${target_archs}}" then : as_fn_error $? "target arch(s) has changed from ${rb_cv_target_archs-nothing} to ${target_archs}" "$LINENO" 5 -else $as_nop - +else case e in #( + e) rb_cv_target_archs=${target_archs} - + ;; +esac fi if test "x${ARCH_FLAG}" != x then : @@ -8789,10 +8952,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -8821,10 +8985,11 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi test x"$ARCH_FLAG" = x || break done @@ -8846,15 +9011,17 @@ if test ${rb_cv_arflags+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) if $AR rcD conftest.a > /dev/null 2>&1 && rm conftest.a then : rb_cv_arflags=rcD -else $as_nop - rb_cv_arflags=rcu +else case e in #( + e) rb_cv_arflags=rcu ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_arflags" >&5 colorize_result "$rb_cv_arflags" ; } @@ -8873,8 +9040,8 @@ if test ${ac_cv_prog_WINDRES+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$WINDRES"; then +else case e in #( + e) if test -n "$WINDRES"; then ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -8896,7 +9063,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi WINDRES=$ac_cv_prog_WINDRES if test -n "$WINDRES"; then @@ -8918,8 +9086,8 @@ if test ${ac_cv_prog_ac_ct_WINDRES+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_WINDRES"; then +else case e in #( + e) if test -n "$ac_ct_WINDRES"; then ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -8941,7 +9109,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES if test -n "$ac_ct_WINDRES"; then @@ -8975,8 +9144,8 @@ if test ${ac_cv_prog_DLLWRAP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$DLLWRAP"; then +else case e in #( + e) if test -n "$DLLWRAP"; then ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -8998,7 +9167,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi DLLWRAP=$ac_cv_prog_DLLWRAP if test -n "$DLLWRAP"; then @@ -9020,8 +9190,8 @@ if test ${ac_cv_prog_ac_ct_DLLWRAP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_DLLWRAP"; then +else case e in #( + e) if test -n "$ac_ct_DLLWRAP"; then ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -9043,7 +9213,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP if test -n "$ac_ct_DLLWRAP"; then @@ -9093,8 +9264,8 @@ if test ${rb_cv_msvcrt+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -9112,12 +9283,14 @@ tr A-Z a-z | sed -n '/^[ ]*dll name: \(msvc.*\)\.dll$/{s//\1/p;q;}; /^[ ]*dll name: \(ucrtbase\|api-ms-win-crt-.*\)\.dll$/{s//ucrt/p;q;}'` -else $as_nop - rb_cv_msvcrt=msvcrt +else case e in #( + e) rb_cv_msvcrt=msvcrt ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext - test "$rb_cv_msvcrt" = "" && rb_cv_msvcrt=msvcrt + test "$rb_cv_msvcrt" = "" && rb_cv_msvcrt=msvcrt ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_msvcrt" >&5 colorize_result "$rb_cv_msvcrt" ; } @@ -9136,8 +9309,9 @@ if $WINDRES --version | grep LLVM > /dev/null then : USE_LLVM_WINDRES=yes -else $as_nop - USE_LLVM_WINDRES=no +else case e in #( + e) USE_LLVM_WINDRES=no ;; +esac fi ;; #( hiuxmpp*) : @@ -9165,8 +9339,8 @@ if eval test \${ac_cv_prog_make_${ac_make}_set+y} then : printf %s "(cached) " >&6 -else $as_nop - cat >conftest.make <<\_ACEOF +else case e in #( + e) cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' @@ -9178,7 +9352,8 @@ *) eval ac_cv_prog_make_${ac_make}_set=no;; esac -rm -f conftest.make +rm -f conftest.make ;; +esac fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 @@ -9211,8 +9386,8 @@ if test ${ac_cv_path_install+y} then : printf %s "(cached) " >&6 -else $as_nop - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +else case e in #( + e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS @@ -9266,7 +9441,8 @@ IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir - + ;; +esac fi if test ${ac_cv_path_install+y}; then INSTALL=$ac_cv_path_install @@ -9306,8 +9482,8 @@ if test ${ac_cv_path_mkdir+y} then : printf %s "(cached) " >&6 -else $as_nop - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +else case e in #( + e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS @@ -9321,7 +9497,7 @@ as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir ('*'coreutils) '* | \ - 'BusyBox '* | \ + *'BusyBox '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext break 3;; @@ -9330,23 +9506,17 @@ done done IFS=$as_save_IFS - + ;; +esac fi test -d ./--version && rmdir ./--version if test ${ac_cv_path_mkdir+y}; then MKDIR_P="$ac_cv_path_mkdir -p" else - # As a last resort, use the slow shell script. Don't cache a - # value for MKDIR_P within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - - if test "x$MKDIR_P" = "xfalse" -then : - as_fn_error $? "mkdir -p is required" "$LINENO" 5 -fi - MKDIR_P="mkdir -p" + # As a last resort, use plain mkdir -p, + # in the hope it doesn't have the bugs of ancient mkdir. + MKDIR_P='mkdir -p' fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 @@ -9364,8 +9534,8 @@ if test ${ac_cv_prog_DTRACE+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$DTRACE"; then +else case e in #( + e) if test -n "$DTRACE"; then ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -9387,7 +9557,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi DTRACE=$ac_cv_prog_DTRACE if test -n "$DTRACE"; then @@ -9409,8 +9580,8 @@ if test ${ac_cv_prog_DTRACE+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$DTRACE"; then +else case e in #( + e) if test -n "$DTRACE"; then ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -9432,7 +9603,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi DTRACE=$ac_cv_prog_DTRACE if test -n "$DTRACE"; then @@ -9456,8 +9628,8 @@ if test ${ac_cv_prog_DOT+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$DOT"; then +else case e in #( + e) if test -n "$DOT"; then ac_cv_prog_DOT="$DOT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -9479,7 +9651,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi DOT=$ac_cv_prog_DOT if test -n "$DOT"; then @@ -9503,8 +9676,8 @@ if test ${ac_cv_prog_DOXYGEN+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$DOXYGEN"; then +else case e in #( + e) if test -n "$DOXYGEN"; then ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -9526,7 +9699,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi DOXYGEN=$ac_cv_prog_DOXYGEN if test -n "$DOXYGEN"; then @@ -9551,8 +9725,8 @@ if test ${ac_cv_prog_PKG_CONFIG+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$PKG_CONFIG"; then +else case e in #( + e) if test -n "$PKG_CONFIG"; then ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -9574,7 +9748,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi PKG_CONFIG=$ac_cv_prog_PKG_CONFIG if test -n "$PKG_CONFIG"; then @@ -9596,8 +9771,8 @@ if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_PKG_CONFIG"; then +else case e in #( + e) if test -n "$ac_ct_PKG_CONFIG"; then ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -9619,7 +9794,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG if test -n "$ac_ct_PKG_CONFIG"; then @@ -9652,13 +9828,14 @@ elif "$PKG_CONFIG" --print-errors --version > /dev/null 2>&1 then : -else $as_nop - +else case e in #( + e) unset ac_cv_prog_PKG_CONFIG PKG_CONFIG= { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $PKG_CONFIG does not work; ignore" >&5 printf "%s\n" "$as_me: WARNING: $PKG_CONFIG does not work; ignore" >&2;} - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is Android" >&5 @@ -9707,9 +9884,10 @@ fi -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 - printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 + printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -9744,10 +9922,11 @@ read CHDIR < conf$$.dir/src/cdcmd 2> /dev/null -else $as_nop - +else case e in #( + e) CHDIR=cd - + ;; +esac fi rm -fr conf$$.dir { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHDIR" >&5 @@ -9763,10 +9942,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -9787,13 +9967,14 @@ then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } -else $as_nop - +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } as_fn_error $? "something wrong with CFLAGS=\"$CFLAGS\"" "$LINENO" 5 - + ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -9821,14 +10002,15 @@ then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } -else $as_nop - +else case e in #( + e) cd .. && rm -fr tmp.$$.try_link { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } as_fn_error $? "something wrong with LDFLAGS=\"$LDFLAGS\"" "$LINENO" 5 - + ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext @@ -9841,10 +10023,11 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi : "rpath" && { @@ -9853,8 +10036,8 @@ if test ${rb_cv_binary_elf+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -9874,11 +10057,13 @@ *) : rb_cv_binary_elf=no ;; esac -else $as_nop - rb_cv_binary_elf=no +else case e in #( + e) rb_cv_binary_elf=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext + conftest$ac_exeext conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_binary_elf" >&5 colorize_result "$rb_cv_binary_elf" ; } @@ -9916,10 +10101,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -9939,10 +10125,11 @@ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } -else $as_nop - rpathflag= +else case e in #( + e) rpathflag= { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 - printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } + printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext @@ -9954,10 +10141,11 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi LDFLAGS="$save_LDFLAGS" save_LDFLAGS= @@ -9969,18 +10157,20 @@ done ;; esac -else $as_nop - +else case e in #( + e) rpathflag=`echo "$RPATHFLAG" | sed 's/%.*//'` - + ;; +esac fi # Check whether --enable-rpath was given. if test ${enable_rpath+y} then : enableval=$enable_rpath; enable_rpath=$enableval -else $as_nop - enable_rpath="$rb_cv_binary_elf" +else case e in #( + e) enable_rpath="$rb_cv_binary_elf" ;; +esac fi @@ -10010,10 +10200,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -10033,10 +10224,11 @@ fdeclspec=yes { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } -else $as_nop - fdeclspec=no +else case e in #( + e) fdeclspec=no { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 - printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } + printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext @@ -10048,10 +10240,11 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi LDFLAGS="$save_LDFLAGS" save_LDFLAGS= @@ -10107,10 +10300,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -10136,10 +10330,11 @@ fdeclspec=yes { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } -else $as_nop - fdeclspec=no +else case e in #( + e) fdeclspec=no { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 - printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } + printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext @@ -10151,10 +10346,11 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' @@ -10186,12 +10382,13 @@ if test ${enable_devel+y} then : enableval=$enable_devel; RUBY_DEVEL=$enableval -else $as_nop - if test "x${RUBY_DEVEL-no}" != xyes +else case e in #( + e) if test "x${RUBY_DEVEL-no}" != xyes then : RUBY_DEVEL= fi - + ;; +esac fi particular_werror_flags=${RUBY_DEVEL:-no} @@ -10275,10 +10472,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -10312,10 +10510,11 @@ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } -else $as_nop - +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 - printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } + printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -10326,10 +10525,11 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi case $ok:$wflag in #( @@ -10346,10 +10546,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -10383,10 +10584,11 @@ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } -else $as_nop - +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 - printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } + printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -10397,10 +10599,11 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi ;; #( @@ -10413,10 +10616,11 @@ wflag=-Werror=undef -else $as_nop - +else case e in #( + e) wflag=-Wundef - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $wflag is accepted as CFLAGS" >&5 @@ -10428,10 +10632,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -10468,10 +10673,11 @@ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } -else $as_nop - +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 - printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } + printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -10482,10 +10688,11 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi case " $warnflags " in #( @@ -10504,10 +10711,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -10528,10 +10736,11 @@ warnflags="$wflag${warnflags+ $warnflags}" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } -else $as_nop - +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 - printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } + printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -10542,10 +10751,11 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi # Disable warnflags while conftest. -Werror=* flags might make bad OS capability guess. @@ -10565,10 +10775,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -10599,10 +10810,11 @@ done { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } -else $as_nop - +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 - printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } + printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -10613,10 +10825,11 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -10653,10 +10866,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -10689,10 +10903,11 @@ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } -else $as_nop - +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 - printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } + printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -10703,10 +10918,11 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi done @@ -10719,8 +10935,9 @@ if test ${with_compress_debug_sections+y} then : withval=$with_compress_debug_sections; compress_debug_sections=$withval -else $as_nop - compress_debug_sections= +else case e in #( + e) compress_debug_sections= ;; +esac fi @@ -10761,10 +10978,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -10793,10 +11011,11 @@ esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } -else $as_nop - +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 - printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } + printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -10807,10 +11026,11 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi @@ -10841,10 +11061,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -10865,10 +11086,11 @@ stack_protector=yes { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } -else $as_nop - +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 - printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } + printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -10879,10 +11101,11 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi if test "x$stack_protector" = xyes @@ -10900,10 +11123,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -10923,10 +11147,11 @@ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } -else $as_nop - stack_protector= +else case e in #( + e) stack_protector= { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 - printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } + printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext @@ -10938,10 +11163,11 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi LDFLAGS="$save_LDFLAGS" save_LDFLAGS= @@ -11012,10 +11238,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -11036,10 +11263,11 @@ branch_protection=yes { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } -else $as_nop - branch_protection=no +else case e in #( + e) branch_protection=no { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 - printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } + printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -11050,10 +11278,11 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi if test "x$branch_protection" = xyes @@ -11106,10 +11335,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -11129,10 +11359,11 @@ compress_debug_sections=${compress_debug_sections:-zlib} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } -else $as_nop - compress_debug_sections=no +else case e in #( + e) compress_debug_sections=no { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 - printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } + printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext @@ -11144,10 +11375,11 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi LDFLAGS="$save_LDFLAGS" save_LDFLAGS= @@ -11186,18 +11418,19 @@ if test ${rb_cv_mingw64_broken_frexp_modf+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) save_CFLAGS="$CFLAGS" if test "$particular_werror_flags" = "yes" then : CFLAGS="$CFLAGS -Werror=uninitialized" -else $as_nop - +else case e in #( + e) CFLAGS="$CFLAGS -Werror -Wuninitialized" - + ;; +esac fi cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -11219,12 +11452,14 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_mingw64_broken_frexp_modf=no -else $as_nop - rb_cv_mingw64_broken_frexp_modf=yes +else case e in #( + e) rb_cv_mingw64_broken_frexp_modf=yes ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CFLAGS="$save_CFLAGS" - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_mingw64_broken_frexp_modf" >&5 colorize_result "$rb_cv_mingw64_broken_frexp_modf" ; } @@ -11255,10 +11490,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -11287,10 +11523,11 @@ esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } -else $as_nop - +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 - printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } + printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -11301,10 +11538,11 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi @@ -11318,10 +11556,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -11342,10 +11581,11 @@ debugflags=-ggdb3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } -else $as_nop - +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 - printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } + printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -11356,10 +11596,11 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi } test "${debugflags+set}" || { @@ -11372,10 +11613,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -11396,10 +11638,11 @@ debugflags=-ggdb { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } -else $as_nop - +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 - printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } + printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -11410,10 +11653,11 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi } test "${debugflags+set}" || { @@ -11426,10 +11670,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -11450,10 +11695,11 @@ debugflags=-g3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } -else $as_nop - +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 - printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } + printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -11464,10 +11710,11 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi } @@ -11498,10 +11745,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -11522,10 +11770,11 @@ visibility_option=yes { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } -else $as_nop - visibility_option=no +else case e in #( + e) visibility_option=no { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 - printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } + printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -11536,10 +11785,11 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi WERRORFLAG="-Werror" @@ -11561,8 +11811,8 @@ printf "%s\n" "#define RUBY_SYMBOL_EXPORT_END _Pragma(\"GCC visibility pop\")" >>confdefs.h -else $as_nop - +else case e in #( + e) save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -Wl,-unexported_symbol,_Init_*" @@ -11575,10 +11825,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -11598,10 +11849,11 @@ visibility_option=ld { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } -else $as_nop - visibility_option=no +else case e in #( + e) visibility_option=no { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 - printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } + printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext @@ -11613,15 +11865,17 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi LDFLAGS="$save_LDFLAGS" save_LDFLAGS= - + ;; +esac fi fi @@ -11644,10 +11898,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -11668,10 +11923,11 @@ optflags="${optflags+$optflags }-fno-omit-frame-pointer" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } -else $as_nop - +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 - printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } + printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -11682,10 +11938,11 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi @@ -11698,10 +11955,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -11722,10 +11980,11 @@ static_libgcc=yes { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } -else $as_nop - static_libgcc=no +else case e in #( + e) static_libgcc=no { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 - printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } + printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -11736,10 +11995,11 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi if test "$static_libgcc" = yes @@ -11773,10 +12033,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -11805,10 +12066,11 @@ esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } -else $as_nop - +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 - printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } + printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -11819,10 +12081,11 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi done @@ -11837,10 +12100,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -11869,10 +12133,11 @@ esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } -else $as_nop - +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 - printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } + printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -11883,10 +12148,11 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi done @@ -11901,8 +12167,8 @@ if test ${rb_cv_gcc_compiler_cas+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ unsigned long atomic_var; @@ -11917,8 +12183,8 @@ if ac_fn_c_try_link "$LINENO" then : rb_cv_gcc_compiler_cas=yes -else $as_nop - +else case e in #( + e) save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -march=i486" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -11934,17 +12200,20 @@ if ac_fn_c_try_link "$LINENO" then : rb_cv_gcc_compiler_cas=i486 -else $as_nop - rb_cv_gcc_compiler_cas=no +else case e in #( + e) rb_cv_gcc_compiler_cas=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$save_CFLAGS" - + ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_gcc_compiler_cas" >&5 colorize_result "$rb_cv_gcc_compiler_cas" ; } @@ -11970,8 +12239,9 @@ if test ${with_gmp+y} then : withval=$with_gmp; -else $as_nop - with_gmp=yes +else case e in #( + e) with_gmp=yes ;; +esac fi @@ -12011,8 +12281,8 @@ if test ${rb_cv_have_stmt_and_decl_in_expr+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -12026,10 +12296,12 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_have_stmt_and_decl_in_expr=yes -else $as_nop - rb_cv_have_stmt_and_decl_in_expr=no +else case e in #( + e) rb_cv_have_stmt_and_decl_in_expr=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_have_stmt_and_decl_in_expr" >&5 colorize_result "$rb_cv_have_stmt_and_decl_in_expr" ; } @@ -12047,8 +12319,9 @@ if test ${with_winnt_ver+y} then : withval=$with_winnt_ver; with_winnt_ver="$withval" -else $as_nop - with_winnt_ver="0x0600" +else case e in #( + e) with_winnt_ver="0x0600" ;; +esac fi case "$target_os" in #( @@ -12083,8 +12356,8 @@ if test ${with_thread+y} then : withval=$with_thread; THREAD_MODEL=$withval -else $as_nop - +else case e in #( + e) THREAD_MODEL= case "$target_os" in #( freebsd*) : @@ -12094,8 +12367,8 @@ if test ${rb_cv_enable_pthread_default+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -12107,18 +12380,21 @@ if ac_fn_c_try_cpp "$LINENO" then : rb_cv_enable_pthread_default=yes -else $as_nop - rb_cv_enable_pthread_default=no +else case e in #( + e) rb_cv_enable_pthread_default=no ;; +esac fi -rm -f conftest.err conftest.i conftest.$ac_ext +rm -f conftest.err conftest.i conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_enable_pthread_default" >&5 colorize_result "$rb_cv_enable_pthread_default" ; } if test $rb_cv_enable_pthread_default = yes then : THREAD_MODEL=pthread -else $as_nop - THREAD_MODEL=none +else case e in #( + e) THREAD_MODEL=none ;; +esac fi ;; #( mingw*) : @@ -12135,7 +12411,8 @@ ;; esac - + ;; +esac fi @@ -12152,12 +12429,13 @@ if test x"$ac_cv_header_pthread_h" = xyes then : -else $as_nop - +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"Don't know how to find pthread header on your system -- thread support disabled\"" >&5 printf "%s\n" "$as_me: WARNING: \"Don't know how to find pthread header on your system -- thread support disabled\"" >&2;} THREAD_MODEL=none - + ;; +esac fi fi @@ -12166,22 +12444,28 @@ THREAD_MODEL=none for pthread_lib in thr pthread pthreads c c_r root; do - as_ac_Lib=`printf "%s\n" "ac_cv_lib_$pthread_lib""_pthread_create" | $as_tr_sh` + as_ac_Lib=`printf "%s\n" "ac_cv_lib_$pthread_lib""_pthread_create" | sed "$as_sed_sh"` { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -l$pthread_lib" >&5 printf %s "checking for pthread_create in -l$pthread_lib... " >&6; } if eval test \${$as_ac_Lib+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-l$pthread_lib $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -char pthread_create (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char pthread_create (void); int main (void) { @@ -12193,12 +12477,14 @@ if ac_fn_c_try_link "$LINENO" then : eval "$as_ac_Lib=yes" -else $as_nop - eval "$as_ac_Lib=no" +else case e in #( + e) eval "$as_ac_Lib=no" ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi eval ac_res=\$$as_ac_Lib { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -12237,11 +12523,12 @@ LIBS="-l$pthread_lib $LIBS" ;; esac -else $as_nop - +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"Don't know how to find pthread library on your system -- thread support disabled\"" >&5 printf "%s\n" "$as_me: WARNING: \"Don't know how to find pthread library on your system -- thread support disabled\"" >&2;} - + ;; +esac fi fi @@ -12342,18 +12629,19 @@ if test ${rb_cv_syscall_deprecated+y} then : printf %s "(cached) " >&6 -else $as_nop - save_CFLAGS="$CFLAGS" +else case e in #( + e) save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $rb_cv_warnflags" if test "${ac_c_werror_flag+set}" then : rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -12371,8 +12659,9 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_syscall_deprecated=no -else $as_nop - rb_cv_syscall_deprecated=yes +else case e in #( + e) rb_cv_syscall_deprecated=yes ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CFLAGS="$save_CFLAGS" @@ -12382,11 +12671,13 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - -fi + ;; +esac +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_syscall_deprecated" >&5 colorize_result "$rb_cv_syscall_deprecated" ; } @@ -12417,12 +12708,12 @@ if test ${rb_cv_broken_crypt+y} then : printf %s "(cached) " >&6 -else $as_nop - if test "$cross_compiling" = yes +else case e in #( + e) if test "$cross_compiling" = yes then : rb_cv_broken_crypt=yes -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -12466,13 +12757,16 @@ if ac_fn_c_try_run "$LINENO" then : rb_cv_broken_crypt=no -else $as_nop - rb_cv_broken_crypt=yes +else case e in #( + e) rb_cv_broken_crypt=yes ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_broken_crypt" >&5 colorize_result "$rb_cv_broken_crypt" ; } @@ -12493,8 +12787,8 @@ if test ${ac_cv_prog_codesign+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$codesign"; then +else case e in #( + e) if test -n "$codesign"; then ac_cv_prog_codesign="$codesign" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -12516,7 +12810,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi codesign=$ac_cv_prog_codesign if test -n "$codesign"; then @@ -12551,8 +12846,8 @@ if test ${ac_cv_prog_dsymutil+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$dsymutil"; then +else case e in #( + e) if test -n "$dsymutil"; then ac_cv_prog_dsymutil="$dsymutil" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -12574,7 +12869,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi dsymutil=$ac_cv_prog_dsymutil if test -n "$dsymutil"; then @@ -12643,8 +12939,9 @@ if ac_fn_c_try_compile "$LINENO" then : given_xopen_source=yes -else $as_nop - given_xopen_source=no +else case e in #( + e) given_xopen_source=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $given_xopen_source" >&5 @@ -12669,10 +12966,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -12705,10 +13003,11 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi done if test x"$define_xopen_source" = x @@ -12764,18 +13063,19 @@ if test ${rb_cv_madvice_prototype_using_caddr_t+y} then : printf %s "(cached) " >&6 -else $as_nop - save_CFLAGS="$CFLAGS" +else case e in #( + e) save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $rb_cv_warnflags" if test "${ac_c_werror_flag+set}" then : rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -12797,8 +13097,9 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_madvice_prototype_using_caddr_t=yes -else $as_nop - rb_cv_madvice_prototype_using_caddr_t=no +else case e in #( + e) rb_cv_madvice_prototype_using_caddr_t=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -12809,12 +13110,14 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_madvice_prototype_using_caddr_t" >&5 colorize_result "$rb_cv_madvice_prototype_using_caddr_t" ; } @@ -13075,10 +13378,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -13105,15 +13409,16 @@ then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } -else $as_nop - +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } # The message mentions CXXFLAGS, but CPPFLAGS might also affects. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: something wrong with CXXFLAGS=\"$CXXFLAGS\"" >&5 printf "%s\n" "$as_me: WARNING: something wrong with CXXFLAGS=\"$CXXFLAGS\"" >&2;} CXX=false - + ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_ext=c @@ -13130,10 +13435,11 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi fi @@ -13143,16 +13449,22 @@ if test ${ac_cv_lib_crypt_crypt+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -char crypt (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char crypt (void); int main (void) { @@ -13164,12 +13476,14 @@ if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_crypt_crypt=yes -else $as_nop - ac_cv_lib_crypt_crypt=no +else case e in #( + e) ac_cv_lib_crypt_crypt=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 colorize_result "$ac_cv_lib_crypt_crypt" ; } @@ -13186,16 +13500,22 @@ if test ${ac_cv_lib_dl_dlopen+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -char dlopen (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (void); int main (void) { @@ -13207,12 +13527,14 @@ if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dl_dlopen=yes -else $as_nop - ac_cv_lib_dl_dlopen=no +else case e in #( + e) ac_cv_lib_dl_dlopen=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 colorize_result "$ac_cv_lib_dl_dlopen" ; } @@ -13229,16 +13551,22 @@ if test ${ac_cv_lib_socket_shutdown+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -char shutdown (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char shutdown (void); int main (void) { @@ -13250,12 +13578,14 @@ if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_socket_shutdown=yes -else $as_nop - ac_cv_lib_socket_shutdown=no +else case e in #( + e) ac_cv_lib_socket_shutdown=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_shutdown" >&5 colorize_result "$ac_cv_lib_socket_shutdown" ; } @@ -13270,14 +13600,14 @@ ac_header_dirent=no for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do - as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` + as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"` { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 printf %s "checking for $ac_hdr that defines DIR... " >&6; } if eval test \${$as_ac_Header+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include <$ac_hdr> @@ -13294,10 +13624,12 @@ if ac_fn_c_try_compile "$LINENO" then : eval "$as_ac_Header=yes" -else $as_nop - eval "$as_ac_Header=no" +else case e in #( + e) eval "$as_ac_Header=no" ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi eval ac_res=\$$as_ac_Header { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -13305,7 +13637,7 @@ if eval test \"x\$"$as_ac_Header"\" = x"yes" then : cat >>confdefs.h <<_ACEOF -#define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1 _ACEOF ac_header_dirent=$ac_hdr; break @@ -13319,15 +13651,21 @@ if test ${ac_cv_search_opendir+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_func_search_save_LIBS=$LIBS +else case e in #( + e) ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -char opendir (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char opendir (void); int main (void) { @@ -13358,11 +13696,13 @@ if test ${ac_cv_search_opendir+y} then : -else $as_nop - ac_cv_search_opendir=no +else case e in #( + e) ac_cv_search_opendir=no ;; +esac fi rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS +LIBS=$ac_func_search_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 colorize_result "$ac_cv_search_opendir" ; } @@ -13379,15 +13719,21 @@ if test ${ac_cv_search_opendir+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_func_search_save_LIBS=$LIBS +else case e in #( + e) ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -char opendir (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char opendir (void); int main (void) { @@ -13418,11 +13764,13 @@ if test ${ac_cv_search_opendir+y} then : -else $as_nop - ac_cv_search_opendir=no +else case e in #( + e) ac_cv_search_opendir=no ;; +esac fi rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS +LIBS=$ac_func_search_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 colorize_result "$ac_cv_search_opendir" ; } @@ -13444,25 +13792,25 @@ fi - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 -printf %s "checking for stdbool.h that conforms to C99... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99 or later" >&5 +printf %s "checking for stdbool.h that conforms to C99 or later... " >&6; } if test ${ac_cv_header_stdbool_h+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include - #ifndef __bool_true_false_are_defined - #error "__bool_true_false_are_defined is not defined" - #endif - char a[__bool_true_false_are_defined == 1 ? 1 : -1]; - - /* Regardless of whether this is C++ or "_Bool" is a - valid type name, "true" and "false" should be usable - in #if expressions and integer constant expressions, - and "bool" should be a valid type name. */ + /* "true" and "false" should be usable in #if expressions and + integer constant expressions, and "bool" should be a valid + type name. + + Although C99 requires bool, true, and false to be macros, + C23 and C++11 overrule that, so do not test for that. + Although C99 requires __bool_true_false_are_defined and + _Bool, C23 says they are obsolescent, so do not require + them. */ #if !true #error "'true' is not true" @@ -13496,43 +13844,12 @@ char n[sizeof m == h * sizeof m[0] ? 1 : -1]; char o[-1 - (bool) 0 < 0 ? 1 : -1]; /* Catch a bug in an HP-UX C compiler. See - https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html - https://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html + https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html + https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html */ bool p = true; bool *pp = &p; - /* C 1999 specifies that bool, true, and false are to be - macros, but C++ 2011 and later overrule this. */ - #if __cplusplus < 201103 - #ifndef bool - #error "bool is not defined" - #endif - #ifndef false - #error "false is not defined" - #endif - #ifndef true - #error "true is not defined" - #endif - #endif - - /* If _Bool is available, repeat with it all the tests - above that used bool. */ - #ifdef HAVE__BOOL - struct sB { _Bool s: 1; _Bool t; } t; - - char q[(_Bool) 0.5 == true ? 1 : -1]; - char r[(_Bool) 0.0 == false ? 1 : -1]; - char u[sizeof (_Bool) > 0 ? 1 : -1]; - char v[sizeof t.t > 0 ? 1 : -1]; - - _Bool w[h]; - char x[sizeof m == h * sizeof m[0] ? 1 : -1]; - char y[-1 - (_Bool) 0 < 0 ? 1 : -1]; - _Bool z = true; - _Bool *pz = &p; - #endif - int main (void) { @@ -13541,20 +13858,10 @@ *pp |= p; *pp |= ! p; - #ifdef HAVE__BOOL - _Bool pt = &t; - *pz |= z; - *pz |= ! z; - #endif - /* Refer to every declared value, so they cannot be discarded as unused. */ - return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k - + !l + !m + !n + !o + !p + !pp + !ps - #ifdef HAVE__BOOL - + !q + !r + !u + !v + !w + !x + !y + !z + !pt - #endif - ); + return (!b + !c + !d + !e + !f + !g + !h + !i + !j + !k + + !l + !m + !n + !o + !p + !pp + !ps); ; return 0; @@ -13563,10 +13870,12 @@ if ac_fn_c_try_compile "$LINENO" then : ac_cv_header_stdbool_h=yes -else $as_nop - ac_cv_header_stdbool_h=no +else case e in #( + e) ac_cv_header_stdbool_h=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 colorize_result "$ac_cv_header_stdbool_h" ; } @@ -13582,8 +13891,8 @@ if test ${ac_cv_header_sys_wait_h+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include @@ -13607,10 +13916,12 @@ if ac_fn_c_try_compile "$LINENO" then : ac_cv_header_sys_wait_h=yes -else $as_nop - ac_cv_header_sys_wait_h=no +else case e in #( + e) ac_cv_header_sys_wait_h=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 colorize_result "$ac_cv_header_sys_wait_h" ; } @@ -13997,8 +14308,8 @@ if test ${rb_cv_header_x86intrin_h_on_x86_64+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default #if defined(__x86_64__) @@ -14015,10 +14326,12 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_header_x86intrin_h_on_x86_64=yes -else $as_nop - rb_cv_header_x86intrin_h_on_x86_64=no +else case e in #( + e) rb_cv_header_x86intrin_h_on_x86_64=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_header_x86intrin_h_on_x86_64" >&5 colorize_result "$rb_cv_header_x86intrin_h_on_x86_64" ; } @@ -14040,8 +14353,8 @@ if test ${rb_cv_header_x86intrin_h_on_i386+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default #if defined(__i386__) @@ -14058,10 +14371,12 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_header_x86intrin_h_on_i386=yes -else $as_nop - rb_cv_header_x86intrin_h_on_i386=no +else case e in #( + e) rb_cv_header_x86intrin_h_on_i386=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_header_x86intrin_h_on_i386" >&5 colorize_result "$rb_cv_header_x86intrin_h_on_i386" ; } @@ -14100,15 +14415,21 @@ if test ${ac_cv_search___gmpz_init+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_func_search_save_LIBS=$LIBS +else case e in #( + e) ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -char __gmpz_init (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char __gmpz_init (void); int main (void) { @@ -14139,11 +14460,13 @@ if test ${ac_cv_search___gmpz_init+y} then : -else $as_nop - ac_cv_search___gmpz_init=no +else case e in #( + e) ac_cv_search___gmpz_init=no ;; +esac fi rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS +LIBS=$ac_func_search_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___gmpz_init" >&5 colorize_result "$ac_cv_search___gmpz_init" ; } @@ -14163,8 +14486,9 @@ if test ${with_jemalloc+y} then : withval=$with_jemalloc; with_jemalloc=$withval -else $as_nop - with_jemalloc=no +else case e in #( + e) with_jemalloc=no ;; +esac fi if test "x$with_jemalloc" != xno @@ -14178,15 +14502,16 @@ if test "x$ac_cv_header_jemalloc_jemalloc_h" = xyes then : malloc_header=jemalloc/jemalloc.h -else $as_nop - +else case e in #( + e) ac_fn_c_check_header_compile "$LINENO" "jemalloc.h" "ac_cv_header_jemalloc_h" "$ac_includes_default" if test "x$ac_cv_header_jemalloc_h" = xyes then : malloc_header=jemalloc.h fi - + ;; +esac fi if test "$malloc_header" != "" @@ -14202,8 +14527,8 @@ if test ${rb_cv_jemalloc_library+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) rb_cv_jemalloc_library=no # try [with mangle, without mangle] x [no more additional # libraries, adding jemalloc] combination, using the jemalloc @@ -14239,7 +14564,8 @@ test "${rb_cv_jemalloc_library}" = no || break 2 done done - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_jemalloc_library" >&5 colorize_result "$rb_cv_jemalloc_library" ; } @@ -14280,31 +14606,34 @@ then : enableval=$enable_largefile; fi - -if test "$enable_largefile" != no; then - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 -printf %s "checking for special C compiler options needed for large files... " >&6; } -if test ${ac_cv_sys_largefile_CC+y} +if test "$enable_largefile,$enable_year2038" != no,no +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CPPFLAGS option for large files" >&5 +printf %s "checking for $CPPFLAGS option for large files... " >&6; } +if test ${ac_cv_sys_largefile_opts+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_sys_largefile_CC=no - if test "$GCC" != yes; then - ac_save_CC=$CC - while :; do - # IRIX 6.2 and later do not support large files by default, - # so use the C compiler's -n32 option if that helps. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) ac_save_CPPFLAGS=$CPPFLAGS + ac_opt_found=no + for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1"; do + if test x"$ac_opt" != x"none needed" +then : + CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" +fi + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply define LARGE_OFF_T to be 9223372036854775807, +#ifndef FTYPE +# define FTYPE off_t +#endif + /* Check that FTYPE can represent 2**63 - 1 correctly. + We can't simply define LARGE_FTYPE to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) +#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31)) + int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721 + && LARGE_FTYPE % 2147483647 == 1) ? 1 : -1]; int main (void) @@ -14314,142 +14643,86 @@ return 0; } _ACEOF - if ac_fn_c_try_compile "$LINENO" +if ac_fn_c_try_compile "$LINENO" then : - break -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam - CC="$CC -n32" + if test x"$ac_opt" = x"none needed" +then : + # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. + CPPFLAGS="$CPPFLAGS -DFTYPE=ino_t" if ac_fn_c_try_compile "$LINENO" then : - ac_cv_sys_largefile_CC=' -n32'; break + +else case e in #( + e) CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64" + if ac_fn_c_try_compile "$LINENO" +then : + ac_opt='-D_FILE_OFFSET_BITS=64' +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam - break - done - CC=$ac_save_CC - rm -f conftest.$ac_ext - fi fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 - colorize_result "$ac_cv_sys_largefile_CC" ; } - if test "$ac_cv_sys_largefile_CC" != no; then - CC=$CC$ac_cv_sys_largefile_CC - fi - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 -printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } -if test ${ac_cv_sys_file_offset_bits+y} -then : - printf %s "(cached) " >&6 -else $as_nop - while :; do - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply define LARGE_OFF_T to be 9223372036854775807, - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - ac_cv_sys_file_offset_bits=no; break + ac_cv_sys_largefile_opts=$ac_opt + ac_opt_found=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#define _FILE_OFFSET_BITS 64 -#include - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply define LARGE_OFF_T to be 9223372036854775807, - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -int -main (void) -{ + test $ac_opt_found = no || break + done + CPPFLAGS=$ac_save_CPPFLAGS - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - ac_cv_sys_file_offset_bits=64; break -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - ac_cv_sys_file_offset_bits=unknown - break -done + test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 - colorize_result "$ac_cv_sys_file_offset_bits" ; } -case $ac_cv_sys_file_offset_bits in #( - no | unknown) ;; - *) -printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h -;; +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 + colorize_result "$ac_cv_sys_largefile_opts" ; } + +ac_have_largefile=yes +case $ac_cv_sys_largefile_opts in #( + "none needed") : + ;; #( + "supported through gnulib") : + ;; #( + "support not detected") : + ac_have_largefile=no ;; #( + "-D_FILE_OFFSET_BITS=64") : + +printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h + ;; #( + "-D_LARGE_FILES=1") : + +printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h + ;; #( + *) : + as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; esac -rm -rf conftest* - if test $ac_cv_sys_file_offset_bits = unknown; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 -printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } -if test ${ac_cv_sys_large_files+y} + +if test "$enable_year2038" != no +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CPPFLAGS option for timestamps after 2038" >&5 +printf %s "checking for $CPPFLAGS option for timestamps after 2038... " >&6; } +if test ${ac_cv_sys_year2038_opts+y} then : printf %s "(cached) " >&6 -else $as_nop - while :; do - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply define LARGE_OFF_T to be 9223372036854775807, - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" +else case e in #( + e) ac_save_CPPFLAGS="$CPPFLAGS" + ac_opt_found=no + for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do + if test x"$ac_opt" != x"none needed" then : - ac_cv_sys_large_files=no; break + CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#define _LARGE_FILES 1 -#include - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply define LARGE_OFF_T to be 9223372036854775807, - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; + + #include + /* Check that time_t can represent 2**32 - 1 correctly. */ + #define LARGE_TIME_T \\ + ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) + int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 + && LARGE_TIME_T % 65537 == 0) + ? 1 : -1]; + int main (void) { @@ -14460,25 +14733,47 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : - ac_cv_sys_large_files=1; break + ac_cv_sys_year2038_opts="$ac_opt" + ac_opt_found=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - ac_cv_sys_large_files=unknown - break -done + test $ac_opt_found = no || break + done + CPPFLAGS="$ac_save_CPPFLAGS" + test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 - colorize_result "$ac_cv_sys_large_files" ; } -case $ac_cv_sys_large_files in #( - no | unknown) ;; - *) -printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h -;; +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 + colorize_result "$ac_cv_sys_year2038_opts" ; } + +ac_have_year2038=yes +case $ac_cv_sys_year2038_opts in #( + "none needed") : + ;; #( + "support not detected") : + ac_have_year2038=no ;; #( + "-D_TIME_BITS=64") : + +printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h + ;; #( + "-D__MINGW_USE_VC2005_COMPAT") : + +printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h + ;; #( + "-U_USE_32_BIT_TIME_T"*) : + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} +as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It +will stop working after mid-January 2038. Remove +_USE_32BIT_TIME_T from the compiler flags. +See 'config.log' for more details" "$LINENO" 5; } ;; #( + *) : + as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;; esac -rm -rf conftest* - fi + fi +fi # On 32-bit Solaris, it is safe to define _LARGEFILE_SOURCE # which is not added by AC_SYS_LARGEFILE. if test x"$enable_largefile" != xno @@ -14542,8 +14837,8 @@ if test ${ac_cv_c_bigendian+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_c_bigendian=unknown +else case e in #( + e) ac_cv_c_bigendian=unknown # See if we're dealing with a universal compiler. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -14589,8 +14884,8 @@ int main (void) { -#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ - && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ +#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\ + && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\ && LITTLE_ENDIAN) bogus endian macros #endif @@ -14621,8 +14916,9 @@ if ac_fn_c_try_compile "$LINENO" then : ac_cv_c_bigendian=yes -else $as_nop - ac_cv_c_bigendian=no +else case e in #( + e) ac_cv_c_bigendian=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi @@ -14666,8 +14962,9 @@ if ac_fn_c_try_compile "$LINENO" then : ac_cv_c_bigendian=yes -else $as_nop - ac_cv_c_bigendian=no +else case e in #( + e) ac_cv_c_bigendian=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi @@ -14694,22 +14991,23 @@ int use_ebcdic (int i) { return ebcdic_mm[i] + ebcdic_ii[i]; } - extern int foo; - -int -main (void) -{ -return use_ascii (foo) == use_ebcdic (foo); - ; - return 0; -} + int + main (int argc, char **argv) + { + /* Intimidate the compiler so that it does not + optimize the arrays away. */ + char *p = argv[0]; + ascii_mm[1] = *p++; ebcdic_mm[1] = *p++; + ascii_ii[1] = *p++; ebcdic_ii[1] = *p++; + return use_ascii (argc) == use_ebcdic (*p); + } _ACEOF -if ac_fn_c_try_compile "$LINENO" +if ac_fn_c_try_link "$LINENO" then : - if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then + if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then ac_cv_c_bigendian=yes fi - if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then + if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then if test "$ac_cv_c_bigendian" = unknown; then ac_cv_c_bigendian=no else @@ -14718,9 +15016,10 @@ fi fi fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int @@ -14743,14 +15042,17 @@ if ac_fn_c_try_run "$LINENO" then : ac_cv_c_bigendian=no -else $as_nop - ac_cv_c_bigendian=yes +else case e in #( + e) ac_cv_c_bigendian=yes ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi - fi + fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 colorize_result "$ac_cv_c_bigendian" ; } @@ -14774,8 +15076,8 @@ if test ${ac_cv_c_const+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -14839,10 +15141,12 @@ if ac_fn_c_try_compile "$LINENO" then : ac_cv_c_const=yes -else $as_nop - ac_cv_c_const=no +else case e in #( + e) ac_cv_c_const=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 colorize_result "$ac_cv_c_const" ; } @@ -14857,8 +15161,8 @@ if test ${ac_cv_c_char_unsigned+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int @@ -14875,10 +15179,12 @@ if ac_fn_c_try_compile "$LINENO" then : ac_cv_c_char_unsigned=no -else $as_nop - ac_cv_c_char_unsigned=yes +else case e in #( + e) ac_cv_c_char_unsigned=yes ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 colorize_result "$ac_cv_c_char_unsigned" ; } @@ -14892,8 +15198,8 @@ if test ${ac_cv_c_inline+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_c_inline=no +else case e in #( + e) ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -14911,7 +15217,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext test "$ac_cv_c_inline" != no && break done - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 colorize_result "$ac_cv_c_inline" ; } @@ -14936,8 +15243,8 @@ if test ${ac_cv_c_volatile+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -14954,10 +15261,12 @@ if ac_fn_c_try_compile "$LINENO" then : ac_cv_c_volatile=yes -else $as_nop - ac_cv_c_volatile=no +else case e in #( + e) ac_cv_c_volatile=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 colorize_result "$ac_cv_c_volatile" ; } @@ -14973,8 +15282,8 @@ if test ${ac_cv_c_typeof+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_c_typeof=no +else case e in #( + e) ac_cv_c_typeof=no for ac_kw in typeof __typeof__ no; do test $ac_kw = no && break cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -15006,7 +15315,8 @@ fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext test $ac_cv_c_typeof != no && break - done + done ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_typeof" >&5 colorize_result "$ac_cv_c_typeof" ; } @@ -15026,8 +15336,8 @@ if test ${ac_cv_c_restrict+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_c_restrict=no +else case e in #( + e) ac_cv_c_restrict=no # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see: # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html # Put 'restrict' last, because C++ lacks it. @@ -15058,7 +15368,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext test "$ac_cv_c_restrict" != no && break done - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 colorize_result "$ac_cv_c_restrict" ; } @@ -15102,17 +15413,19 @@ if test ${rb_cv_char_bit+y} then : printf %s "(cached) " >&6 -else $as_nop - test "$universal_binary" = yes && cross_compiling=yes +else case e in #( + e) test "$universal_binary" = yes && cross_compiling=yes if ac_fn_c_compute_int "$LINENO" "CHAR_BIT" "rb_cv_char_bit" "#include " then : -else $as_nop - rb_cv_char_bit=8 +else case e in #( + e) rb_cv_char_bit=8 ;; +esac fi - test "$universal_binary" = yes && cross_compiling=$real_cross_compiling + test "$universal_binary" = yes && cross_compiling=$real_cross_compiling ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_char_bit" >&5 colorize_result "$rb_cv_char_bit" ; } @@ -15124,8 +15437,8 @@ if test ${ac_cv_sizeof_int+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) unset ac_cv_sizeof_int rbcv_sizeof_var=" typedef int ac__type_sizeof_; @@ -15137,8 +15450,9 @@ $rbcv_sizeof_var" then : -else $as_nop - ac_cv_sizeof_int= +else case e in #( + e) ac_cv_sizeof_int= ;; +esac fi @@ -15236,8 +15550,9 @@ #endif" then : -else $as_nop - rbcv_sizeof_type=0 +else case e in #( + e) rbcv_sizeof_type=0 ;; +esac fi test "$universal_binary" = yes && cross_compiling=$real_cross_compiling @@ -15249,7 +15564,8 @@ fi } : ${ac_cv_sizeof_int=0} - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 colorize_result "$ac_cv_sizeof_int" ; } @@ -15283,28 +15599,30 @@ else # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 printf %s "checking size of int... " >&6; } if test ${ac_cv_sizeof_int+y} then : printf %s "(cached) " >&6 -else $as_nop - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default" +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default" then : -else $as_nop - if test "$ac_cv_type_int" = yes; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) if test "$ac_cv_type_int" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (int) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_int=0 - fi + fi ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 colorize_result "$ac_cv_sizeof_int" ; } @@ -15323,8 +15641,8 @@ if test ${ac_cv_sizeof_short+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) unset ac_cv_sizeof_short rbcv_sizeof_var=" typedef short ac__type_sizeof_; @@ -15336,8 +15654,9 @@ $rbcv_sizeof_var" then : -else $as_nop - ac_cv_sizeof_short= +else case e in #( + e) ac_cv_sizeof_short= ;; +esac fi @@ -15356,8 +15675,9 @@ #endif" then : -else $as_nop - rbcv_sizeof_type=0 +else case e in #( + e) rbcv_sizeof_type=0 ;; +esac fi test "$universal_binary" = yes && cross_compiling=$real_cross_compiling @@ -15369,7 +15689,8 @@ fi } : ${ac_cv_sizeof_short=0} - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 colorize_result "$ac_cv_sizeof_short" ; } @@ -15403,28 +15724,30 @@ else # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 printf %s "checking size of short... " >&6; } if test ${ac_cv_sizeof_short+y} then : printf %s "(cached) " >&6 -else $as_nop - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default" +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default" then : -else $as_nop - if test "$ac_cv_type_short" = yes; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) if test "$ac_cv_type_short" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (short) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_short=0 - fi + fi ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 colorize_result "$ac_cv_sizeof_short" ; } @@ -15443,8 +15766,8 @@ if test ${ac_cv_sizeof_long+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) unset ac_cv_sizeof_long rbcv_sizeof_var=" typedef long ac__type_sizeof_; @@ -15472,7 +15795,7 @@ if ac_fn_c_try_compile "$LINENO" then : - ac_cv_sizeof_long=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | $as_tr_cpp` + ac_cv_sizeof_long=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | sed "$as_sed_cpp"` break fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -15572,8 +15895,9 @@ #endif" then : -else $as_nop - rbcv_sizeof_type=0 +else case e in #( + e) rbcv_sizeof_type=0 ;; +esac fi test "$universal_binary" = yes && cross_compiling=$real_cross_compiling @@ -15585,7 +15909,8 @@ fi } : ${ac_cv_sizeof_long=0} - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 colorize_result "$ac_cv_sizeof_long" ; } @@ -15619,28 +15944,30 @@ else # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 printf %s "checking size of long... " >&6; } if test ${ac_cv_sizeof_long+y} then : printf %s "(cached) " >&6 -else $as_nop - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default" +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default" then : -else $as_nop - if test "$ac_cv_type_long" = yes; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) if test "$ac_cv_type_long" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (long) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_long=0 - fi + fi ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 colorize_result "$ac_cv_sizeof_long" ; } @@ -15659,8 +15986,8 @@ if test ${ac_cv_sizeof_long_long+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) unset ac_cv_sizeof_long_long rbcv_sizeof_var=" typedef long long ac__type_sizeof_; @@ -15672,8 +15999,9 @@ $rbcv_sizeof_var" then : -else $as_nop - ac_cv_sizeof_long_long= +else case e in #( + e) ac_cv_sizeof_long_long= ;; +esac fi @@ -15692,8 +16020,9 @@ #endif" then : -else $as_nop - rbcv_sizeof_type=0 +else case e in #( + e) rbcv_sizeof_type=0 ;; +esac fi test "$universal_binary" = yes && cross_compiling=$real_cross_compiling @@ -15705,7 +16034,8 @@ fi } : ${ac_cv_sizeof_long_long=0} - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 colorize_result "$ac_cv_sizeof_long_long" ; } @@ -15739,28 +16069,30 @@ else # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 printf %s "checking size of long long... " >&6; } if test ${ac_cv_sizeof_long_long+y} then : printf %s "(cached) " >&6 -else $as_nop - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default" +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default" then : -else $as_nop - if test "$ac_cv_type_long_long" = yes; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) if test "$ac_cv_type_long_long" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (long long) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_long_long=0 - fi + fi ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 colorize_result "$ac_cv_sizeof_long_long" ; } @@ -15779,8 +16111,8 @@ if test ${ac_cv_sizeof___int64+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) unset ac_cv_sizeof___int64 rbcv_sizeof_var=" typedef __int64 ac__type_sizeof_; @@ -15808,7 +16140,7 @@ if ac_fn_c_try_compile "$LINENO" then : - ac_cv_sizeof___int64=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | $as_tr_cpp` + ac_cv_sizeof___int64=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | sed "$as_sed_cpp"` break fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -15908,8 +16240,9 @@ #endif" then : -else $as_nop - rbcv_sizeof_type=0 +else case e in #( + e) rbcv_sizeof_type=0 ;; +esac fi test "$universal_binary" = yes && cross_compiling=$real_cross_compiling @@ -15921,7 +16254,8 @@ fi } : ${ac_cv_sizeof___int64=0} - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5 colorize_result "$ac_cv_sizeof___int64" ; } @@ -15955,28 +16289,30 @@ else # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5 printf %s "checking size of __int64... " >&6; } if test ${ac_cv_sizeof___int64+y} then : printf %s "(cached) " >&6 -else $as_nop - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default" +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default" then : -else $as_nop - if test "$ac_cv_type___int64" = yes; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) if test "$ac_cv_type___int64" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (__int64) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof___int64=0 - fi + fi ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5 colorize_result "$ac_cv_sizeof___int64" ; } @@ -15995,8 +16331,8 @@ if test ${ac_cv_sizeof___int128+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) unset ac_cv_sizeof___int128 rbcv_sizeof_var=" typedef __int128 ac__type_sizeof_; @@ -16024,7 +16360,7 @@ if ac_fn_c_try_compile "$LINENO" then : - ac_cv_sizeof___int128=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | $as_tr_cpp` + ac_cv_sizeof___int128=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | sed "$as_sed_cpp"` break fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -16124,8 +16460,9 @@ #endif" then : -else $as_nop - rbcv_sizeof_type=0 +else case e in #( + e) rbcv_sizeof_type=0 ;; +esac fi test "$universal_binary" = yes && cross_compiling=$real_cross_compiling @@ -16137,7 +16474,8 @@ fi } : ${ac_cv_sizeof___int128=0} - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int128" >&5 colorize_result "$ac_cv_sizeof___int128" ; } @@ -16171,28 +16509,30 @@ else # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of __int128" >&5 printf %s "checking size of __int128... " >&6; } if test ${ac_cv_sizeof___int128+y} then : printf %s "(cached) " >&6 -else $as_nop - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int128))" "ac_cv_sizeof___int128" "$ac_includes_default" +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int128))" "ac_cv_sizeof___int128" "$ac_includes_default" then : -else $as_nop - if test "$ac_cv_type___int128" = yes; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) if test "$ac_cv_type___int128" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (__int128) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof___int128=0 - fi + fi ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int128" >&5 colorize_result "$ac_cv_sizeof___int128" ; } @@ -16211,8 +16551,8 @@ if test ${ac_cv_sizeof_off_t+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) unset ac_cv_sizeof_off_t rbcv_sizeof_var=" typedef off_t ac__type_sizeof_; @@ -16224,8 +16564,9 @@ $rbcv_sizeof_var" then : -else $as_nop - ac_cv_sizeof_off_t= +else case e in #( + e) ac_cv_sizeof_off_t= ;; +esac fi @@ -16244,8 +16585,9 @@ #endif" then : -else $as_nop - rbcv_sizeof_type=0 +else case e in #( + e) rbcv_sizeof_type=0 ;; +esac fi test "$universal_binary" = yes && cross_compiling=$real_cross_compiling @@ -16257,7 +16599,8 @@ fi } : ${ac_cv_sizeof_off_t=0} - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 colorize_result "$ac_cv_sizeof_off_t" ; } @@ -16291,28 +16634,30 @@ else # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 printf %s "checking size of off_t... " >&6; } if test ${ac_cv_sizeof_off_t+y} then : printf %s "(cached) " >&6 -else $as_nop - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default" +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default" then : -else $as_nop - if test "$ac_cv_type_off_t" = yes; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) if test "$ac_cv_type_off_t" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (off_t) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_off_t=0 - fi + fi ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 colorize_result "$ac_cv_sizeof_off_t" ; } @@ -16331,8 +16676,8 @@ if test ${ac_cv_sizeof_voidp+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) unset ac_cv_sizeof_voidp rbcv_sizeof_var=" typedef void* ac__type_sizeof_; @@ -16360,7 +16705,7 @@ if ac_fn_c_try_compile "$LINENO" then : - ac_cv_sizeof_voidp=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | $as_tr_cpp` + ac_cv_sizeof_voidp=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | sed "$as_sed_cpp"` break fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -16460,8 +16805,9 @@ #endif" then : -else $as_nop - rbcv_sizeof_type=0 +else case e in #( + e) rbcv_sizeof_type=0 ;; +esac fi test "$universal_binary" = yes && cross_compiling=$real_cross_compiling @@ -16473,7 +16819,8 @@ fi } : ${ac_cv_sizeof_voidp=0} - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5 colorize_result "$ac_cv_sizeof_voidp" ; } @@ -16507,28 +16854,30 @@ else # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5 printf %s "checking size of void*... " >&6; } if test ${ac_cv_sizeof_voidp+y} then : printf %s "(cached) " >&6 -else $as_nop - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default" +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default" then : -else $as_nop - if test "$ac_cv_type_voidp" = yes; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) if test "$ac_cv_type_voidp" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (void*) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_voidp=0 - fi + fi ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5 colorize_result "$ac_cv_sizeof_voidp" ; } @@ -16547,8 +16896,8 @@ if test ${ac_cv_sizeof_float+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) unset ac_cv_sizeof_float rbcv_sizeof_var=" typedef float ac__type_sizeof_; @@ -16560,8 +16909,9 @@ $rbcv_sizeof_var" then : -else $as_nop - ac_cv_sizeof_float= +else case e in #( + e) ac_cv_sizeof_float= ;; +esac fi @@ -16580,8 +16930,9 @@ #endif" then : -else $as_nop - rbcv_sizeof_type=0 +else case e in #( + e) rbcv_sizeof_type=0 ;; +esac fi test "$universal_binary" = yes && cross_compiling=$real_cross_compiling @@ -16593,7 +16944,8 @@ fi } : ${ac_cv_sizeof_float=0} - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 colorize_result "$ac_cv_sizeof_float" ; } @@ -16627,28 +16979,30 @@ else # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 printf %s "checking size of float... " >&6; } if test ${ac_cv_sizeof_float+y} then : printf %s "(cached) " >&6 -else $as_nop - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default" +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default" then : -else $as_nop - if test "$ac_cv_type_float" = yes; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) if test "$ac_cv_type_float" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (float) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_float=0 - fi + fi ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 colorize_result "$ac_cv_sizeof_float" ; } @@ -16667,8 +17021,8 @@ if test ${ac_cv_sizeof_double+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) unset ac_cv_sizeof_double rbcv_sizeof_var=" typedef double ac__type_sizeof_; @@ -16680,8 +17034,9 @@ $rbcv_sizeof_var" then : -else $as_nop - ac_cv_sizeof_double= +else case e in #( + e) ac_cv_sizeof_double= ;; +esac fi @@ -16700,8 +17055,9 @@ #endif" then : -else $as_nop - rbcv_sizeof_type=0 +else case e in #( + e) rbcv_sizeof_type=0 ;; +esac fi test "$universal_binary" = yes && cross_compiling=$real_cross_compiling @@ -16713,7 +17069,8 @@ fi } : ${ac_cv_sizeof_double=0} - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 colorize_result "$ac_cv_sizeof_double" ; } @@ -16747,28 +17104,30 @@ else # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 printf %s "checking size of double... " >&6; } if test ${ac_cv_sizeof_double+y} then : printf %s "(cached) " >&6 -else $as_nop - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default" +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default" then : -else $as_nop - if test "$ac_cv_type_double" = yes; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) if test "$ac_cv_type_double" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (double) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_double=0 - fi + fi ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 colorize_result "$ac_cv_sizeof_double" ; } @@ -16787,8 +17146,8 @@ if test ${ac_cv_sizeof_time_t+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) unset ac_cv_sizeof_time_t rbcv_sizeof_var=" typedef time_t ac__type_sizeof_; @@ -16816,7 +17175,7 @@ if ac_fn_c_try_compile "$LINENO" then : - ac_cv_sizeof_time_t=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | $as_tr_cpp` + ac_cv_sizeof_time_t=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | sed "$as_sed_cpp"` break fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -16838,8 +17197,9 @@ #endif" then : -else $as_nop - rbcv_sizeof_type=0 +else case e in #( + e) rbcv_sizeof_type=0 ;; +esac fi test "$universal_binary" = yes && cross_compiling=$real_cross_compiling @@ -16851,7 +17211,8 @@ fi } : ${ac_cv_sizeof_time_t=0} - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 colorize_result "$ac_cv_sizeof_time_t" ; } @@ -16885,29 +17246,31 @@ else # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 printf %s "checking size of time_t... " >&6; } if test ${ac_cv_sizeof_time_t+y} then : printf %s "(cached) " >&6 -else $as_nop - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "#include +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "#include " then : -else $as_nop - if test "$ac_cv_type_time_t" = yes; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) if test "$ac_cv_type_time_t" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (time_t) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_time_t=0 - fi + fi ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 colorize_result "$ac_cv_sizeof_time_t" ; } @@ -16926,8 +17289,8 @@ if test ${ac_cv_sizeof_clock_t+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) unset ac_cv_sizeof_clock_t rbcv_sizeof_var=" typedef clock_t ac__type_sizeof_; @@ -16940,8 +17303,9 @@ $rbcv_sizeof_var" then : -else $as_nop - ac_cv_sizeof_clock_t= +else case e in #( + e) ac_cv_sizeof_clock_t= ;; +esac fi @@ -16961,8 +17325,9 @@ #endif" then : -else $as_nop - rbcv_sizeof_type=0 +else case e in #( + e) rbcv_sizeof_type=0 ;; +esac fi test "$universal_binary" = yes && cross_compiling=$real_cross_compiling @@ -16974,7 +17339,8 @@ fi } : ${ac_cv_sizeof_clock_t=0} - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_clock_t" >&5 colorize_result "$ac_cv_sizeof_clock_t" ; } @@ -17008,29 +17374,31 @@ else # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of clock_t" >&5 printf %s "checking size of clock_t... " >&6; } if test ${ac_cv_sizeof_clock_t+y} then : printf %s "(cached) " >&6 -else $as_nop - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (clock_t))" "ac_cv_sizeof_clock_t" "#include +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (clock_t))" "ac_cv_sizeof_clock_t" "#include " then : -else $as_nop - if test "$ac_cv_type_clock_t" = yes; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) if test "$ac_cv_type_clock_t" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (clock_t) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_clock_t=0 - fi + fi ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_clock_t" >&5 colorize_result "$ac_cv_sizeof_clock_t" ; } @@ -17048,8 +17416,8 @@ then : X_BUILTIN_BINARY=no -else $as_nop - +else case e in #( + e) case ac_cv_sizeof_voidp in #( 1-9*) : ;; #( @@ -17060,8 +17428,8 @@ if test ${rb_cv_word_size+y} then : printf %s "(cached) " >&6 -else $as_nop - for w in 4 8; do +else case e in #( + e) for w in 4 8; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if SIZEOF_VOIDP != ${w} @@ -17080,7 +17448,8 @@ rb_cv_word_size=${w}; break fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - done + done ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_word_size" >&5 colorize_result "$rb_cv_word_size" ; } @@ -17090,7 +17459,8 @@ fi ;; esac - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking packed struct attribute" >&5 @@ -17098,8 +17468,8 @@ if test ${rb_cv_packed_struct+y} then : printf %s "(cached) " >&6 -else $as_nop - rb_cv_packed_struct=no +else case e in #( + e) rb_cv_packed_struct=no for mac in \ "__pragma(pack(push, 1)) x __pragma(pack(pop))" \ "x __attribute__((packed))" \ @@ -17121,7 +17491,8 @@ rb_cv_packed_struct=$mac; break fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - done + done ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_packed_struct" >&5 colorize_result "$rb_cv_packed_struct" ; } @@ -17146,10 +17517,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -17171,10 +17543,11 @@ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } -else $as_nop - +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 - printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } + printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -17185,10 +17558,11 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi @@ -17203,8 +17577,8 @@ if test ${rb_cv_pri_prefix_long_long+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) rb_cv_pri_prefix_long_long=NONE save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $rb_cv_warnflags" @@ -17213,10 +17587,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes # RUBY_APPEND_OPTIONS(CFLAGS) @@ -17269,11 +17644,13 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - -fi + ;; +esac +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_pri_prefix_long_long" >&5 colorize_result "$rb_cv_pri_prefix_long_long" ; } @@ -17295,8 +17672,8 @@ if test ${rb_cv_pri_prefix___int64+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) rb_cv_pri_prefix___int64=NONE save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $rb_cv_warnflags" @@ -17305,10 +17682,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes # RUBY_APPEND_OPTIONS(CFLAGS) @@ -17361,11 +17739,13 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - -fi + ;; +esac +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_pri_prefix___int64" >&5 colorize_result "$rb_cv_pri_prefix___int64" ; } @@ -17387,8 +17767,9 @@ printf "%s\n" "#define HAVE_PID_T 1" >>confdefs.h n="pid_t" -else $as_nop - n="int" +else case e in #( + e) n="int" ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for convertible type of pid_t" >&5 @@ -17396,8 +17777,8 @@ if test ${rb_cv_pid_t_convertible+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default @@ -17418,8 +17799,8 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_pid_t_convertible=PTR -else $as_nop - +else case e in #( + e) u= t= case "$n " in #( *" signed "*) : @@ -17496,10 +17877,12 @@ t=INT ;; esac - rb_cv_pid_t_convertible=${u}${t} + rb_cv_pid_t_convertible=${u}${t} ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_pid_t_convertible" >&5 colorize_result "$rb_cv_pid_t_convertible" ; } @@ -17508,8 +17891,8 @@ n="pid_t" -else $as_nop - +else case e in #( + e) case "${rb_cv_pid_t_convertible}" in #( *LL) : n="long long" ;; #( @@ -17526,7 +17909,8 @@ *) : ;; esac - + ;; +esac fi case "${rb_cv_pid_t_convertible}" in #( PTR) : @@ -17561,8 +17945,9 @@ printf "%s\n" "#define HAVE_UID_T 1" >>confdefs.h n="uid_t" -else $as_nop - n="int" +else case e in #( + e) n="int" ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for convertible type of uid_t" >&5 @@ -17570,8 +17955,8 @@ if test ${rb_cv_uid_t_convertible+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default @@ -17592,8 +17977,8 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_uid_t_convertible=PTR -else $as_nop - +else case e in #( + e) u= t= case "$n " in #( *" signed "*) : @@ -17670,10 +18055,12 @@ t=INT ;; esac - rb_cv_uid_t_convertible=${u}${t} + rb_cv_uid_t_convertible=${u}${t} ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_uid_t_convertible" >&5 colorize_result "$rb_cv_uid_t_convertible" ; } @@ -17682,8 +18069,8 @@ n="uid_t" -else $as_nop - +else case e in #( + e) case "${rb_cv_uid_t_convertible}" in #( *LL) : n="long long" ;; #( @@ -17700,7 +18087,8 @@ *) : ;; esac - + ;; +esac fi case "${rb_cv_uid_t_convertible}" in #( PTR) : @@ -17735,8 +18123,9 @@ printf "%s\n" "#define HAVE_GID_T 1" >>confdefs.h n="gid_t" -else $as_nop - n="int" +else case e in #( + e) n="int" ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for convertible type of gid_t" >&5 @@ -17744,8 +18133,8 @@ if test ${rb_cv_gid_t_convertible+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default @@ -17766,8 +18155,8 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_gid_t_convertible=PTR -else $as_nop - +else case e in #( + e) u= t= case "$n " in #( *" signed "*) : @@ -17844,10 +18233,12 @@ t=INT ;; esac - rb_cv_gid_t_convertible=${u}${t} + rb_cv_gid_t_convertible=${u}${t} ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_gid_t_convertible" >&5 colorize_result "$rb_cv_gid_t_convertible" ; } @@ -17856,8 +18247,8 @@ n="gid_t" -else $as_nop - +else case e in #( + e) case "${rb_cv_gid_t_convertible}" in #( *LL) : n="long long" ;; #( @@ -17874,7 +18265,8 @@ *) : ;; esac - + ;; +esac fi case "${rb_cv_gid_t_convertible}" in #( PTR) : @@ -17910,8 +18302,9 @@ printf "%s\n" "#define HAVE_TIME_T 1" >>confdefs.h n="time_t" -else $as_nop - n="" +else case e in #( + e) n="" ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for convertible type of time_t" >&5 @@ -17919,8 +18312,8 @@ if test ${rb_cv_time_t_convertible+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -17942,8 +18335,8 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_time_t_convertible=PTR -else $as_nop - +else case e in #( + e) u= t= case "$n " in #( *" signed "*) : @@ -18022,10 +18415,12 @@ t=INT ;; esac - rb_cv_time_t_convertible=${u}${t} + rb_cv_time_t_convertible=${u}${t} ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_time_t_convertible" >&5 colorize_result "$rb_cv_time_t_convertible" ; } @@ -18034,8 +18429,8 @@ n="time_t" -else $as_nop - +else case e in #( + e) case "${rb_cv_time_t_convertible}" in #( *LL) : n="long long" ;; #( @@ -18052,7 +18447,8 @@ *) : ;; esac - + ;; +esac fi case "${rb_cv_time_t_convertible}" in #( PTR) : @@ -18087,8 +18483,9 @@ printf "%s\n" "#define HAVE_DEV_T 1" >>confdefs.h n="dev_t" -else $as_nop - n="int long \"long long\"" +else case e in #( + e) n="int long \"long long\"" ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for convertible type of dev_t" >&5 @@ -18096,8 +18493,8 @@ if test ${rb_cv_dev_t_convertible+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default @@ -18118,8 +18515,8 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_dev_t_convertible=PTR -else $as_nop - +else case e in #( + e) u= t= case "$n " in #( *" signed "*) : @@ -18196,10 +18593,12 @@ t=INT ;; esac - rb_cv_dev_t_convertible=${u}${t} + rb_cv_dev_t_convertible=${u}${t} ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_dev_t_convertible" >&5 colorize_result "$rb_cv_dev_t_convertible" ; } @@ -18208,8 +18607,8 @@ n="dev_t" -else $as_nop - +else case e in #( + e) case "${rb_cv_dev_t_convertible}" in #( *LL) : n="long long" ;; #( @@ -18226,7 +18625,8 @@ *) : ;; esac - + ;; +esac fi case "${rb_cv_dev_t_convertible}" in #( PTR) : @@ -18262,8 +18662,9 @@ printf "%s\n" "#define HAVE_MODE_T 1" >>confdefs.h n="mode_t" -else $as_nop - n="\"unsigned short\" \"unsigned int\" long" +else case e in #( + e) n="\"unsigned short\" \"unsigned int\" long" ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for convertible type of mode_t" >&5 @@ -18271,8 +18672,8 @@ if test ${rb_cv_mode_t_convertible+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -18294,8 +18695,8 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_mode_t_convertible=PTR -else $as_nop - +else case e in #( + e) u= t= case "$n " in #( *" signed "*) : @@ -18374,10 +18775,12 @@ t=INT ;; esac - rb_cv_mode_t_convertible=${u}${t} + rb_cv_mode_t_convertible=${u}${t} ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_mode_t_convertible" >&5 colorize_result "$rb_cv_mode_t_convertible" ; } @@ -18386,8 +18789,8 @@ n="mode_t" -else $as_nop - +else case e in #( + e) case "${rb_cv_mode_t_convertible}" in #( *LL) : n="long long" ;; #( @@ -18404,7 +18807,8 @@ *) : ;; esac - + ;; +esac fi case "${rb_cv_mode_t_convertible}" in #( PTR) : @@ -18448,8 +18852,9 @@ printf "%s\n" "#define HAVE_RLIM_T 1" >>confdefs.h n="rlim_t" -else $as_nop - n="int long \"long long\"" +else case e in #( + e) n="int long \"long long\"" ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for convertible type of rlim_t" >&5 @@ -18457,8 +18862,8 @@ if test ${rb_cv_rlim_t_convertible+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -18488,8 +18893,8 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_rlim_t_convertible=PTR -else $as_nop - +else case e in #( + e) u= t= case "$n " in #( *" signed "*) : @@ -18584,10 +18989,12 @@ t=INT ;; esac - rb_cv_rlim_t_convertible=${u}${t} + rb_cv_rlim_t_convertible=${u}${t} ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_rlim_t_convertible" >&5 colorize_result "$rb_cv_rlim_t_convertible" ; } @@ -18596,8 +19003,8 @@ n="rlim_t" -else $as_nop - +else case e in #( + e) case "${rb_cv_rlim_t_convertible}" in #( *LL) : n="long long" ;; #( @@ -18614,7 +19021,8 @@ *) : ;; esac - + ;; +esac fi case "${rb_cv_rlim_t_convertible}" in #( PTR) : @@ -18649,8 +19057,9 @@ printf "%s\n" "#define HAVE_OFF_T 1" >>confdefs.h n="off_t" -else $as_nop - n="" +else case e in #( + e) n="" ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for convertible type of off_t" >&5 @@ -18658,8 +19067,8 @@ if test ${rb_cv_off_t_convertible+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default @@ -18680,8 +19089,8 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_off_t_convertible=PTR -else $as_nop - +else case e in #( + e) u= t= case "$n " in #( *" signed "*) : @@ -18758,10 +19167,12 @@ t=INT ;; esac - rb_cv_off_t_convertible=${u}${t} + rb_cv_off_t_convertible=${u}${t} ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_off_t_convertible" >&5 colorize_result "$rb_cv_off_t_convertible" ; } @@ -18770,8 +19181,8 @@ n="off_t" -else $as_nop - +else case e in #( + e) case "${rb_cv_off_t_convertible}" in #( *LL) : n="long long" ;; #( @@ -18788,7 +19199,8 @@ *) : ;; esac - + ;; +esac fi case "${rb_cv_off_t_convertible}" in #( PTR) : @@ -18829,8 +19241,9 @@ printf "%s\n" "#define HAVE_CLOCKID_T 1" >>confdefs.h n="clockid_t" -else $as_nop - n="" +else case e in #( + e) n="" ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for convertible type of clockid_t" >&5 @@ -18838,8 +19251,8 @@ if test ${rb_cv_clockid_t_convertible+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef HAVE_TIME_H @@ -18866,8 +19279,8 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_clockid_t_convertible=PTR -else $as_nop - +else case e in #( + e) u= t= case "$n " in #( *" signed "*) : @@ -18956,10 +19369,12 @@ t=INT ;; esac - rb_cv_clockid_t_convertible=${u}${t} + rb_cv_clockid_t_convertible=${u}${t} ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_clockid_t_convertible" >&5 colorize_result "$rb_cv_clockid_t_convertible" ; } @@ -18968,8 +19383,8 @@ n="clockid_t" -else $as_nop - +else case e in #( + e) case "${rb_cv_clockid_t_convertible}" in #( *LL) : n="long long" ;; #( @@ -18986,7 +19401,8 @@ *) : ;; esac - + ;; +esac fi case "${rb_cv_clockid_t_convertible}" in #( PTR) : @@ -19023,8 +19439,8 @@ if test ${rb_cv_va_args_macro+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo(const char*); @@ -19041,10 +19457,12 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_va_args_macro=yes -else $as_nop - rb_cv_va_args_macro=no +else case e in #( + e) rb_cv_va_args_macro=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_va_args_macro" >&5 colorize_result "$rb_cv_va_args_macro" ; } @@ -19069,8 +19487,8 @@ if test ${rb_cv_have__alignof+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) rb_cv_have__alignof=no save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $rb_cv_warnflags" @@ -19079,10 +19497,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -19132,12 +19551,14 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_have__alignof" >&5 colorize_result "$rb_cv_have__alignof" ; } @@ -19155,8 +19576,8 @@ if test ${rb_cv_func___const__+y} then : printf %s "(cached) " >&6 -else $as_nop - rb_cv_func___const__=x +else case e in #( + e) rb_cv_func___const__=x save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $rb_cv_warnflags" if test "${ac_c_werror_flag+set}" @@ -19164,10 +19585,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -19210,11 +19632,13 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - -fi + ;; +esac +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func___const__" >&5 colorize_result "$rb_cv_func___const__" ; } @@ -19235,8 +19659,8 @@ if test ${rb_cv_func___pure__+y} then : printf %s "(cached) " >&6 -else $as_nop - rb_cv_func___pure__=x +else case e in #( + e) rb_cv_func___pure__=x save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $rb_cv_warnflags" if test "${ac_c_werror_flag+set}" @@ -19244,10 +19668,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -19290,11 +19715,13 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - -fi + ;; +esac +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func___pure__" >&5 colorize_result "$rb_cv_func___pure__" ; } @@ -19315,8 +19742,8 @@ if test ${rb_cv_func___noreturn__+y} then : printf %s "(cached) " >&6 -else $as_nop - rb_cv_func___noreturn__=x +else case e in #( + e) rb_cv_func___noreturn__=x save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $rb_cv_warnflags" if test "${ac_c_werror_flag+set}" @@ -19324,10 +19751,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -19370,11 +19798,13 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - -fi + ;; +esac +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func___noreturn__" >&5 colorize_result "$rb_cv_func___noreturn__" ; } @@ -19395,8 +19825,8 @@ if test ${rb_cv_func___deprecated__+y} then : printf %s "(cached) " >&6 -else $as_nop - rb_cv_func___deprecated__=x +else case e in #( + e) rb_cv_func___deprecated__=x save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $rb_cv_warnflags" if test "${ac_c_werror_flag+set}" @@ -19404,10 +19834,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -19450,11 +19881,13 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - -fi + ;; +esac +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func___deprecated__" >&5 colorize_result "$rb_cv_func___deprecated__" ; } @@ -19475,8 +19908,8 @@ if test ${rb_cv_func_deprecated_by+y} then : printf %s "(cached) " >&6 -else $as_nop - rb_cv_func_deprecated_by=x +else case e in #( + e) rb_cv_func_deprecated_by=x save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $rb_cv_warnflags" if test "${ac_c_werror_flag+set}" @@ -19484,10 +19917,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -19530,11 +19964,13 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - -fi + ;; +esac +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func_deprecated_by" >&5 colorize_result "$rb_cv_func_deprecated_by" ; } @@ -19555,8 +19991,8 @@ if test ${rb_cv_func___noinline__+y} then : printf %s "(cached) " >&6 -else $as_nop - rb_cv_func___noinline__=x +else case e in #( + e) rb_cv_func___noinline__=x save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $rb_cv_warnflags" if test "${ac_c_werror_flag+set}" @@ -19564,10 +20000,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -19610,11 +20047,13 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - -fi + ;; +esac +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func___noinline__" >&5 colorize_result "$rb_cv_func___noinline__" ; } @@ -19635,8 +20074,8 @@ if test ${rb_cv_func___always_inline__+y} then : printf %s "(cached) " >&6 -else $as_nop - rb_cv_func___always_inline__=x +else case e in #( + e) rb_cv_func___always_inline__=x save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $rb_cv_warnflags" if test "${ac_c_werror_flag+set}" @@ -19644,10 +20083,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -19690,11 +20130,13 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - -fi + ;; +esac +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func___always_inline__" >&5 colorize_result "$rb_cv_func___always_inline__" ; } @@ -19715,8 +20157,8 @@ if test ${rb_cv_func_no_sanitize+y} then : printf %s "(cached) " >&6 -else $as_nop - rb_cv_func_no_sanitize=x +else case e in #( + e) rb_cv_func_no_sanitize=x save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $rb_cv_warnflags" if test "${ac_c_werror_flag+set}" @@ -19724,10 +20166,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -19770,11 +20213,13 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - -fi + ;; +esac +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func_no_sanitize" >&5 colorize_result "$rb_cv_func_no_sanitize" ; } @@ -19795,8 +20240,8 @@ if test ${rb_cv_func___no_sanitize_address__+y} then : printf %s "(cached) " >&6 -else $as_nop - rb_cv_func___no_sanitize_address__=x +else case e in #( + e) rb_cv_func___no_sanitize_address__=x save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $rb_cv_warnflags" if test "${ac_c_werror_flag+set}" @@ -19804,10 +20249,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -19850,11 +20296,13 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - -fi + ;; +esac +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func___no_sanitize_address__" >&5 colorize_result "$rb_cv_func___no_sanitize_address__" ; } @@ -19875,8 +20323,8 @@ if test ${rb_cv_func___no_address_safety_analysis__+y} then : printf %s "(cached) " >&6 -else $as_nop - rb_cv_func___no_address_safety_analysis__=x +else case e in #( + e) rb_cv_func___no_address_safety_analysis__=x save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $rb_cv_warnflags" if test "${ac_c_werror_flag+set}" @@ -19884,10 +20332,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -19930,11 +20379,13 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - -fi + ;; +esac +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func___no_address_safety_analysis__" >&5 colorize_result "$rb_cv_func___no_address_safety_analysis__" ; } @@ -19955,8 +20406,8 @@ if test ${rb_cv_func___warn_unused_result__+y} then : printf %s "(cached) " >&6 -else $as_nop - rb_cv_func___warn_unused_result__=x +else case e in #( + e) rb_cv_func___warn_unused_result__=x save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $rb_cv_warnflags" if test "${ac_c_werror_flag+set}" @@ -19964,10 +20415,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -20010,11 +20462,13 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - -fi + ;; +esac +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func___warn_unused_result__" >&5 colorize_result "$rb_cv_func___warn_unused_result__" ; } @@ -20035,8 +20489,8 @@ if test ${rb_cv_func___unused__+y} then : printf %s "(cached) " >&6 -else $as_nop - rb_cv_func___unused__=x +else case e in #( + e) rb_cv_func___unused__=x save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $rb_cv_warnflags" if test "${ac_c_werror_flag+set}" @@ -20044,10 +20498,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -20090,11 +20545,13 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - -fi + ;; +esac +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func___unused__" >&5 colorize_result "$rb_cv_func___unused__" ; } @@ -20115,8 +20572,8 @@ if test ${rb_cv_func___error__+y} then : printf %s "(cached) " >&6 -else $as_nop - rb_cv_func___error__=x +else case e in #( + e) rb_cv_func___error__=x save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $rb_cv_warnflags" if test "${ac_c_werror_flag+set}" @@ -20124,10 +20581,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -20170,11 +20628,13 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - -fi + ;; +esac +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func___error__" >&5 colorize_result "$rb_cv_func___error__" ; } @@ -20195,8 +20655,8 @@ if test ${rb_cv_func___warning__+y} then : printf %s "(cached) " >&6 -else $as_nop - rb_cv_func___warning__=x +else case e in #( + e) rb_cv_func___warning__=x save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $rb_cv_warnflags" if test "${ac_c_werror_flag+set}" @@ -20204,10 +20664,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -20250,11 +20711,13 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - -fi + ;; +esac +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func___warning__" >&5 colorize_result "$rb_cv_func___warning__" ; } @@ -20275,8 +20738,8 @@ if test ${rb_cv_func_weak+y} then : printf %s "(cached) " >&6 -else $as_nop - rb_cv_func_weak=x +else case e in #( + e) rb_cv_func_weak=x save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $rb_cv_warnflags" if test "${ac_c_werror_flag+set}" @@ -20284,10 +20747,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -20330,11 +20794,13 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - -fi + ;; +esac +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func_weak" >&5 colorize_result "$rb_cv_func_weak" ; } @@ -20362,18 +20828,19 @@ if test ${rb_cv_CentOS6_CXX_workaround+y} then : printf %s "(cached) " >&6 -else $as_nop - save_CFLAGS="$CFLAGS" +else case e in #( + e) save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $rb_cv_warnflags" if test "${ac_c_werror_flag+set}" then : rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -20397,8 +20864,9 @@ if ac_fn_cxx_try_compile "$LINENO" then : rb_cv_CentOS6_CXX_workaround=yes -else $as_nop - rb_cv_CentOS6_CXX_workaround=no +else case e in #( + e) rb_cv_CentOS6_CXX_workaround=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_ext=c @@ -20414,11 +20882,13 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - -fi + ;; +esac +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_CentOS6_CXX_workaround" >&5 colorize_result "$rb_cv_CentOS6_CXX_workaround" ; } @@ -20434,8 +20904,8 @@ if test ${rb_cv_CXX_nullptr+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -20456,8 +20926,9 @@ if ac_fn_cxx_try_compile "$LINENO" then : rb_cv_CXX_nullptr=yes -else $as_nop - rb_cv_CXX_nullptr=no +else case e in #( + e) rb_cv_CXX_nullptr=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_ext=c @@ -20465,7 +20936,8 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_CXX_nullptr" >&5 colorize_result "$rb_cv_CXX_nullptr" ; } @@ -20482,8 +20954,8 @@ if test ${rb_cv_func_stdcall+y} then : printf %s "(cached) " >&6 -else $as_nop - rb_cv_func_stdcall=x +else case e in #( + e) rb_cv_func_stdcall=x save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $rb_cv_warnflags" if test "${ac_c_werror_flag+set}" @@ -20491,10 +20963,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -20539,11 +21012,13 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - -fi + ;; +esac +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func_stdcall" >&5 colorize_result "$rb_cv_func_stdcall" ; } @@ -20564,8 +21039,8 @@ if test ${rb_cv_func_cdecl+y} then : printf %s "(cached) " >&6 -else $as_nop - rb_cv_func_cdecl=x +else case e in #( + e) rb_cv_func_cdecl=x save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $rb_cv_warnflags" if test "${ac_c_werror_flag+set}" @@ -20573,10 +21048,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -20621,11 +21097,13 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - -fi + ;; +esac +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func_cdecl" >&5 colorize_result "$rb_cv_func_cdecl" ; } @@ -20646,8 +21124,8 @@ if test ${rb_cv_func_fastcall+y} then : printf %s "(cached) " >&6 -else $as_nop - rb_cv_func_fastcall=x +else case e in #( + e) rb_cv_func_fastcall=x save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $rb_cv_warnflags" if test "${ac_c_werror_flag+set}" @@ -20655,10 +21133,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -20703,11 +21182,13 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - -fi + ;; +esac +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func_fastcall" >&5 colorize_result "$rb_cv_func_fastcall" ; } @@ -20728,8 +21209,8 @@ if test ${rb_cv_func_unoptimized+y} then : printf %s "(cached) " >&6 -else $as_nop - rb_cv_func_unoptimized=x +else case e in #( + e) rb_cv_func_unoptimized=x save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $rb_cv_warnflags" if test "${ac_c_werror_flag+set}" @@ -20737,10 +21218,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -20783,11 +21265,13 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - -fi + ;; +esac +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func_unoptimized" >&5 colorize_result "$rb_cv_func_unoptimized" ; } @@ -20808,8 +21292,8 @@ if test ${rb_cv_func_minimized+y} then : printf %s "(cached) " >&6 -else $as_nop - rb_cv_func_minimized=x +else case e in #( + e) rb_cv_func_minimized=x save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $rb_cv_warnflags" if test "${ac_c_werror_flag+set}" @@ -20817,10 +21301,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -20863,11 +21348,13 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - -fi + ;; +esac +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func_minimized" >&5 colorize_result "$rb_cv_func_minimized" ; } @@ -20891,8 +21378,8 @@ if test ${rb_cv_gcc_function_alias+y} then : printf %s "(cached) " >&6 -else $as_nop - rb_cv_gcc_function_alias=no +else case e in #( + e) rb_cv_gcc_function_alias=no for a in alias weak,alias; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -20912,7 +21399,8 @@ fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext - done + done ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_gcc_function_alias" >&5 colorize_result "$rb_cv_gcc_function_alias" ; } @@ -20936,8 +21424,8 @@ if test ${rb_cv_gcc_atomic_builtins+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ unsigned int atomic_var; @@ -20958,11 +21446,13 @@ if ac_fn_c_try_link "$LINENO" then : rb_cv_gcc_atomic_builtins=yes -else $as_nop - rb_cv_gcc_atomic_builtins=no +else case e in #( + e) rb_cv_gcc_atomic_builtins=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext + conftest$ac_exeext conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_gcc_atomic_builtins" >&5 colorize_result "$rb_cv_gcc_atomic_builtins" ; } @@ -20979,8 +21469,8 @@ if test ${rb_cv_gcc_sync_builtins+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ unsigned int atomic_var; @@ -21002,11 +21492,13 @@ if ac_fn_c_try_link "$LINENO" then : rb_cv_gcc_sync_builtins=yes -else $as_nop - rb_cv_gcc_sync_builtins=no +else case e in #( + e) rb_cv_gcc_sync_builtins=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext + conftest$ac_exeext conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_gcc_sync_builtins" >&5 colorize_result "$rb_cv_gcc_sync_builtins" ; } @@ -21023,18 +21515,19 @@ if test ${rb_cv_func___builtin_unreachable+y} then : printf %s "(cached) " >&6 -else $as_nop - save_CFLAGS="$CFLAGS" +else case e in #( + e) save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $rb_cv_warnflags" if test "${ac_c_werror_flag+set}" then : rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -21051,8 +21544,9 @@ if ac_fn_c_try_link "$LINENO" then : rb_cv_func___builtin_unreachable=yes -else $as_nop - rb_cv_func___builtin_unreachable=no +else case e in #( + e) rb_cv_func___builtin_unreachable=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext @@ -21064,12 +21558,14 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func___builtin_unreachable" >&5 colorize_result "$rb_cv_func___builtin_unreachable" ; } @@ -21086,18 +21582,19 @@ if test ${rb_cv_func___assume+y} then : printf %s "(cached) " >&6 -else $as_nop - save_CFLAGS="$CFLAGS" +else case e in #( + e) save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $rb_cv_warnflags" if test "${ac_c_werror_flag+set}" then : rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -21115,8 +21612,9 @@ if ac_fn_c_try_link "$LINENO" then : rb_cv_func___assume=yes -else $as_nop - rb_cv_func___assume=no +else case e in #( + e) rb_cv_func___assume=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext @@ -21128,12 +21626,14 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func___assume" >&5 colorize_result "$rb_cv_func___assume" ; } @@ -21151,8 +21651,8 @@ if test ${rb_cv_func_exported+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) rb_cv_func_exported=no save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $rb_cv_warnflags" @@ -21161,10 +21661,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -21195,11 +21696,13 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - -fi + ;; +esac +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func_exported" >&5 colorize_result "$rb_cv_func_exported" ; } @@ -21216,8 +21719,8 @@ if test ${rb_cv_func_nonnull+y} then : printf %s "(cached) " >&6 -else $as_nop - rb_cv_func_nonnull=x +else case e in #( + e) rb_cv_func_nonnull=x save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $rb_cv_warnflags" if test "${ac_c_werror_flag+set}" @@ -21225,10 +21728,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -21273,11 +21777,13 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - -fi + ;; +esac +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func_nonnull" >&5 colorize_result "$rb_cv_func_nonnull" ; } @@ -21314,8 +21820,8 @@ if test ${rb_cv_function_name_string+y} then : printf %s "(cached) " >&6 -else $as_nop - case "$target_os" in #( +else case e in #( + e) case "$target_os" in #( openbsd*) : rb_cv_function_name_string=__func__ @@ -21330,10 +21836,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -21365,13 +21872,15 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi ;; esac - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_function_name_string" >&5 colorize_result "$rb_cv_function_name_string" ; } @@ -21388,18 +21897,19 @@ if test ${rb_cv_enum_over_int+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) rb_cv_enum_over_int=no if test "x$ac_cv_type_long_long" = xyes then : type="unsigned long long" max="ULLONG_MAX" -else $as_nop - +else case e in #( + e) type="unsigned long" max="ULONG_MAX" - + ;; +esac fi save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $rb_cv_warnflags" @@ -21408,10 +21918,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -21440,9 +21951,10 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_enum_over_int=yes -else $as_nop - rb_cv_enum_over_int=no - +else case e in #( + e) rb_cv_enum_over_int=no + ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -21453,12 +21965,14 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_enum_over_int" >&5 colorize_result "$rb_cv_enum_over_int" ; } @@ -21475,8 +21989,8 @@ if test ${ac_cv_c_undeclared_builtin_options+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_save_CFLAGS=$CFLAGS +else case e in #( + e) ac_save_CFLAGS=$CFLAGS ac_cv_c_undeclared_builtin_options='cannot detect' for ac_arg in '' -fno-builtin; do CFLAGS="$ac_save_CFLAGS $ac_arg" @@ -21495,8 +22009,8 @@ if ac_fn_c_try_compile "$LINENO" then : -else $as_nop - # This test program should compile successfully. +else case e in #( + e) # This test program should compile successfully. # No library function is consistently available on # freestanding implementations, so test against a dummy # declaration. Include always-available headers on the @@ -21524,26 +22038,29 @@ if test x"$ac_arg" = x then : ac_cv_c_undeclared_builtin_options='none needed' -else $as_nop - ac_cv_c_undeclared_builtin_options=$ac_arg +else case e in #( + e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; +esac fi break fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done CFLAGS=$ac_save_CFLAGS - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 colorize_result "$ac_cv_c_undeclared_builtin_options" ; } case $ac_cv_c_undeclared_builtin_options in #( 'cannot detect') : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "cannot make $CC report undeclared builtins -See \`config.log' for more details" "$LINENO" 5; } ;; #( +See 'config.log' for more details" "$LINENO" 5; } ;; #( 'none needed') : ac_c_undeclared_builtin_options='' ;; #( *) : @@ -21556,8 +22073,9 @@ if test "x$ac_cv_have_decl_sys_nerr" = xyes then : ac_have_decl=1 -else $as_nop - ac_have_decl=0 +else case e in #( + e) ac_have_decl=0 ;; +esac fi printf "%s\n" "#define HAVE_DECL_SYS_NERR $ac_have_decl" >>confdefs.h @@ -21566,8 +22084,9 @@ if test "x$ac_cv_have_decl_getenv" = xyes then : ac_have_decl=1 -else $as_nop - ac_have_decl=0 +else case e in #( + e) ac_have_decl=0 ;; +esac fi printf "%s\n" "#define HAVE_DECL_GETENV $ac_have_decl" >>confdefs.h @@ -21601,10 +22120,11 @@ ac_cv_header_sys_socket_h=${ac_cv_header_sys_socket_h=no} -else $as_nop - +else case e in #( + e) ac_cv_header_sys_socket_h=${ac_cv_header_sys_socket_h=yes} - + ;; +esac fi @@ -21612,10 +22132,11 @@ if test "x$ac_cv_type_size_t" = xyes then : -else $as_nop - +else case e in #( + e) printf "%s\n" "#define size_t unsigned int" >>confdefs.h - + ;; +esac fi cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -21636,8 +22157,9 @@ if ac_fn_c_try_compile "$LINENO" then : -else $as_nop - as_fn_error $? "size_t is signed" "$LINENO" 5 +else case e in #( + e) as_fn_error $? "size_t is signed" "$LINENO" 5 ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -21647,8 +22169,8 @@ if test ${ac_cv_sizeof_size_t+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) unset ac_cv_sizeof_size_t rbcv_sizeof_var=" typedef size_t ac__type_sizeof_; @@ -21676,7 +22198,7 @@ if ac_fn_c_try_compile "$LINENO" then : - ac_cv_sizeof_size_t=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | $as_tr_cpp` + ac_cv_sizeof_size_t=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | sed "$as_sed_cpp"` break fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -21698,8 +22220,9 @@ #endif" then : -else $as_nop - rbcv_sizeof_type=0 +else case e in #( + e) rbcv_sizeof_type=0 ;; +esac fi test "$universal_binary" = yes && cross_compiling=$real_cross_compiling @@ -21711,7 +22234,8 @@ fi } : ${ac_cv_sizeof_size_t=0} - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 colorize_result "$ac_cv_sizeof_size_t" ; } @@ -21745,29 +22269,31 @@ else # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 printf %s "checking size of size_t... " >&6; } if test ${ac_cv_sizeof_size_t+y} then : printf %s "(cached) " >&6 -else $as_nop - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "#include +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "#include " then : -else $as_nop - if test "$ac_cv_type_size_t" = yes; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) if test "$ac_cv_type_size_t" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (size_t) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_size_t=0 - fi + fi ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 colorize_result "$ac_cv_sizeof_size_t" ; } @@ -21786,8 +22312,8 @@ if test ${ac_cv_sizeof_ptrdiff_t+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) unset ac_cv_sizeof_ptrdiff_t rbcv_sizeof_var=" typedef ptrdiff_t ac__type_sizeof_; @@ -21815,7 +22341,7 @@ if ac_fn_c_try_compile "$LINENO" then : - ac_cv_sizeof_ptrdiff_t=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | $as_tr_cpp` + ac_cv_sizeof_ptrdiff_t=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | sed "$as_sed_cpp"` break fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -21837,8 +22363,9 @@ #endif" then : -else $as_nop - rbcv_sizeof_type=0 +else case e in #( + e) rbcv_sizeof_type=0 ;; +esac fi test "$universal_binary" = yes && cross_compiling=$real_cross_compiling @@ -21850,7 +22377,8 @@ fi } : ${ac_cv_sizeof_ptrdiff_t=0} - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ptrdiff_t" >&5 colorize_result "$ac_cv_sizeof_ptrdiff_t" ; } @@ -21884,29 +22412,31 @@ else # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5 printf %s "checking size of ptrdiff_t... " >&6; } if test ${ac_cv_sizeof_ptrdiff_t+y} then : printf %s "(cached) " >&6 -else $as_nop - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ptrdiff_t))" "ac_cv_sizeof_ptrdiff_t" "#include +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ptrdiff_t))" "ac_cv_sizeof_ptrdiff_t" "#include " then : -else $as_nop - if test "$ac_cv_type_ptrdiff_t" = yes; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) if test "$ac_cv_type_ptrdiff_t" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (ptrdiff_t) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_ptrdiff_t=0 - fi + fi ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ptrdiff_t" >&5 colorize_result "$ac_cv_sizeof_ptrdiff_t" ; } @@ -21925,8 +22455,8 @@ if test ${ac_cv_sizeof_dev_t+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) unset ac_cv_sizeof_dev_t rbcv_sizeof_var=" typedef dev_t ac__type_sizeof_; @@ -21938,8 +22468,9 @@ $rbcv_sizeof_var" then : -else $as_nop - ac_cv_sizeof_dev_t= +else case e in #( + e) ac_cv_sizeof_dev_t= ;; +esac fi @@ -21958,8 +22489,9 @@ #endif" then : -else $as_nop - rbcv_sizeof_type=0 +else case e in #( + e) rbcv_sizeof_type=0 ;; +esac fi test "$universal_binary" = yes && cross_compiling=$real_cross_compiling @@ -21971,7 +22503,8 @@ fi } : ${ac_cv_sizeof_dev_t=0} - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5 colorize_result "$ac_cv_sizeof_dev_t" ; } @@ -22005,28 +22538,30 @@ else # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5 printf %s "checking size of dev_t... " >&6; } if test ${ac_cv_sizeof_dev_t+y} then : printf %s "(cached) " >&6 -else $as_nop - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default" +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default" then : -else $as_nop - if test "$ac_cv_type_dev_t" = yes; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) if test "$ac_cv_type_dev_t" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (dev_t) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_dev_t=0 - fi + fi ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5 colorize_result "$ac_cv_sizeof_dev_t" ; } @@ -22044,8 +22579,8 @@ if test ${rb_cv_pri_prefix_size_t+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) rb_cv_pri_prefix_size_t=NONE save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $rb_cv_warnflags" @@ -22054,10 +22589,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes # RUBY_APPEND_OPTIONS(CFLAGS) @@ -22110,11 +22646,13 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - -fi + ;; +esac +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_pri_prefix_size_t" >&5 colorize_result "$rb_cv_pri_prefix_size_t" ; } @@ -22132,8 +22670,8 @@ if test ${rb_cv_pri_prefix_ptrdiff_t+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) rb_cv_pri_prefix_ptrdiff_t=NONE save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $rb_cv_warnflags" @@ -22142,10 +22680,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes # RUBY_APPEND_OPTIONS(CFLAGS) @@ -22198,11 +22737,13 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - -fi + ;; +esac +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_pri_prefix_ptrdiff_t" >&5 colorize_result "$rb_cv_pri_prefix_ptrdiff_t" ; } @@ -22248,8 +22789,8 @@ if test ${ac_cv_sizeof_struct_stat_st_size+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) unset ac_cv_sizeof_struct_stat_st_size rbcv_sizeof_var=" typedef struct stat ac__type_sizeof_; @@ -22277,7 +22818,7 @@ if ac_fn_c_try_compile "$LINENO" then : - ac_cv_sizeof_struct_stat_st_size=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | $as_tr_cpp` + ac_cv_sizeof_struct_stat_st_size=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | sed "$as_sed_cpp"` break fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -22299,8 +22840,9 @@ #endif" then : -else $as_nop - rbcv_sizeof_type=0 +else case e in #( + e) rbcv_sizeof_type=0 ;; +esac fi test "$universal_binary" = yes && cross_compiling=$real_cross_compiling @@ -22312,7 +22854,8 @@ fi } : ${ac_cv_sizeof_struct_stat_st_size=0} - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_stat_st_size" >&5 colorize_result "$ac_cv_sizeof_struct_stat_st_size" ; } @@ -22355,8 +22898,8 @@ if test ${ac_cv_sizeof_struct_stat_st_blocks+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) unset ac_cv_sizeof_struct_stat_st_blocks rbcv_sizeof_var=" typedef struct stat ac__type_sizeof_; @@ -22384,7 +22927,7 @@ if ac_fn_c_try_compile "$LINENO" then : - ac_cv_sizeof_struct_stat_st_blocks=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | $as_tr_cpp` + ac_cv_sizeof_struct_stat_st_blocks=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | sed "$as_sed_cpp"` break fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -22406,8 +22949,9 @@ #endif" then : -else $as_nop - rbcv_sizeof_type=0 +else case e in #( + e) rbcv_sizeof_type=0 ;; +esac fi test "$universal_binary" = yes && cross_compiling=$real_cross_compiling @@ -22419,7 +22963,8 @@ fi } : ${ac_cv_sizeof_struct_stat_st_blocks=0} - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_stat_st_blocks" >&5 colorize_result "$ac_cv_sizeof_struct_stat_st_blocks" ; } @@ -22461,8 +23006,8 @@ if test ${ac_cv_sizeof_struct_stat_st_ino+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) unset ac_cv_sizeof_struct_stat_st_ino rbcv_sizeof_var=" typedef struct stat ac__type_sizeof_; @@ -22490,7 +23035,7 @@ if ac_fn_c_try_compile "$LINENO" then : - ac_cv_sizeof_struct_stat_st_ino=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | $as_tr_cpp` + ac_cv_sizeof_struct_stat_st_ino=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | sed "$as_sed_cpp"` break fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -22512,8 +23057,9 @@ #endif" then : -else $as_nop - rbcv_sizeof_type=0 +else case e in #( + e) rbcv_sizeof_type=0 ;; +esac fi test "$universal_binary" = yes && cross_compiling=$real_cross_compiling @@ -22525,7 +23071,8 @@ fi } : ${ac_cv_sizeof_struct_stat_st_ino=0} - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_stat_st_ino" >&5 colorize_result "$ac_cv_sizeof_struct_stat_st_ino" ; } @@ -22565,8 +23112,8 @@ if test ${ac_cv_sizeof_struct_stat_st_dev+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) unset ac_cv_sizeof_struct_stat_st_dev rbcv_sizeof_var=" typedef struct stat ac__type_sizeof_; @@ -22594,7 +23141,7 @@ if ac_fn_c_try_compile "$LINENO" then : - ac_cv_sizeof_struct_stat_st_dev=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | $as_tr_cpp` + ac_cv_sizeof_struct_stat_st_dev=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | sed "$as_sed_cpp"` break fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -22616,8 +23163,9 @@ #endif" then : -else $as_nop - rbcv_sizeof_type=0 +else case e in #( + e) rbcv_sizeof_type=0 ;; +esac fi test "$universal_binary" = yes && cross_compiling=$real_cross_compiling @@ -22629,7 +23177,8 @@ fi } : ${ac_cv_sizeof_struct_stat_st_dev=0} - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_stat_st_dev" >&5 colorize_result "$ac_cv_sizeof_struct_stat_st_dev" ; } @@ -22672,8 +23221,8 @@ if test ${ac_cv_sizeof_struct_stat_st_rdev+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) unset ac_cv_sizeof_struct_stat_st_rdev rbcv_sizeof_var=" typedef struct stat ac__type_sizeof_; @@ -22701,7 +23250,7 @@ if ac_fn_c_try_compile "$LINENO" then : - ac_cv_sizeof_struct_stat_st_rdev=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | $as_tr_cpp` + ac_cv_sizeof_struct_stat_st_rdev=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | sed "$as_sed_cpp"` break fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -22723,8 +23272,9 @@ #endif" then : -else $as_nop - rbcv_sizeof_type=0 +else case e in #( + e) rbcv_sizeof_type=0 ;; +esac fi test "$universal_binary" = yes && cross_compiling=$real_cross_compiling @@ -22736,7 +23286,8 @@ fi } : ${ac_cv_sizeof_struct_stat_st_rdev=0} - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_stat_st_rdev" >&5 colorize_result "$ac_cv_sizeof_struct_stat_st_rdev" ; } @@ -22900,8 +23451,8 @@ if test ${ac_cv_sizeof_struct_timeval_tv_sec+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) unset ac_cv_sizeof_struct_timeval_tv_sec rbcv_sizeof_var=" typedef struct timeval ac__type_sizeof_; @@ -22934,7 +23485,7 @@ if ac_fn_c_try_compile "$LINENO" then : - ac_cv_sizeof_struct_timeval_tv_sec=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | $as_tr_cpp` + ac_cv_sizeof_struct_timeval_tv_sec=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | sed "$as_sed_cpp"` break fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -22961,8 +23512,9 @@ #endif" then : -else $as_nop - rbcv_sizeof_type=0 +else case e in #( + e) rbcv_sizeof_type=0 ;; +esac fi test "$universal_binary" = yes && cross_compiling=$real_cross_compiling @@ -22974,7 +23526,8 @@ fi } : ${ac_cv_sizeof_struct_timeval_tv_sec=0} - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_timeval_tv_sec" >&5 colorize_result "$ac_cv_sizeof_struct_timeval_tv_sec" ; } @@ -23062,8 +23615,8 @@ if test ${rb_cv_large_fd_select+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "$ac_includes_default +else case e in #( + e) ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "$ac_includes_default #ifdef HAVE_SYS_SELECT_H # include #endif @@ -23071,10 +23624,12 @@ if test "x$ac_cv_type_fd_mask" = xyes then : rb_cv_large_fd_select=yes -else $as_nop - rb_cv_large_fd_select=no +else case e in #( + e) rb_cv_large_fd_select=no ;; +esac fi - + ;; +esac fi if test "$rb_cv_large_fd_select" = yes @@ -23090,8 +23645,8 @@ if test ${rb_cv_type_int8_t+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default typedef int8_t t; int s = sizeof(t) == 42; @@ -23106,8 +23661,8 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_type_int8_t=yes -else $as_nop - case 1 in #( +else case e in #( + e) case 1 in #( "1") : rb_cv_type_int8_t="signed char" ;; #( "$ac_cv_sizeof_short") : @@ -23124,9 +23679,11 @@ rb_cv_type_int8_t="__int128" ;; #( *) : rb_cv_type_int8_t=no ;; +esac ;; esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_int8_t" >&5 colorize_result "$rb_cv_type_int8_t" ; } @@ -23141,15 +23698,16 @@ case $rb_defint_cond in #( *:*) : - rb_defint_cond=`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` + rb_defint_cond=`printf "%s\n" "$rb_defint_type" | sed "$as_sed_cpp"` echo "#if defined SIZEOF_"$rb_defint_cond" && SIZEOF_"$rb_defint_cond" > 0" >> confdefs.h ;; #( *) : rb_defint_cond= ;; esac -else $as_nop - rb_defint_cond= +else case e in #( + e) rb_defint_cond= ;; +esac fi printf "%s\n" "#define HAVE_INT8_T 1" >>confdefs.h @@ -23158,29 +23716,31 @@ # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int8_t" >&5 printf %s "checking size of int8_t... " >&6; } if test ${ac_cv_sizeof_int8_t+y} then : printf %s "(cached) " >&6 -else $as_nop - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int8_t))" "ac_cv_sizeof_int8_t" "$ac_includes_default +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int8_t))" "ac_cv_sizeof_int8_t" "$ac_includes_default " then : -else $as_nop - if test "$ac_cv_type_int8_t" = yes; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) if test "$ac_cv_type_int8_t" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (int8_t) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_int8_t=0 - fi + fi ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int8_t" >&5 colorize_result "$ac_cv_sizeof_int8_t" ; } @@ -23191,15 +23751,16 @@ -else $as_nop - +else case e in #( + e) printf "%s\n" "#define int8_t $rb_cv_type_int8_t" >>confdefs.h cat >>confdefs.h <<_ACEOF -#define SIZEOF_INT8_T SIZEOF_`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` +#define SIZEOF_INT8_T SIZEOF_`printf "%s\n" "$rb_defint_type" | sed "$as_sed_cpp"` _ACEOF - + ;; +esac fi test -n "$rb_defint_cond" && echo "#endif /* $rb_defint_cond */" >> confdefs.h @@ -23210,8 +23771,8 @@ if test ${rb_cv_type_uint8_t+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default typedef uint8_t t; int s = sizeof(t) == 42; @@ -23226,8 +23787,8 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_type_uint8_t=yes -else $as_nop - case 1 in #( +else case e in #( + e) case 1 in #( "1") : rb_cv_type_uint8_t="unsigned char" ;; #( "$ac_cv_sizeof_short") : @@ -23244,9 +23805,11 @@ rb_cv_type_uint8_t="unsigned __int128" ;; #( *) : rb_cv_type_uint8_t=no ;; +esac ;; esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_uint8_t" >&5 colorize_result "$rb_cv_type_uint8_t" ; } @@ -23261,15 +23824,16 @@ case $rb_defint_cond in #( *:*) : - rb_defint_cond=`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` + rb_defint_cond=`printf "%s\n" "$rb_defint_type" | sed "$as_sed_cpp"` echo "#if defined SIZEOF_"$rb_defint_cond" && SIZEOF_"$rb_defint_cond" > 0" >> confdefs.h ;; #( *) : rb_defint_cond= ;; esac -else $as_nop - rb_defint_cond= +else case e in #( + e) rb_defint_cond= ;; +esac fi printf "%s\n" "#define HAVE_UINT8_T 1" >>confdefs.h @@ -23278,29 +23842,31 @@ # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uint8_t" >&5 printf %s "checking size of uint8_t... " >&6; } if test ${ac_cv_sizeof_uint8_t+y} then : printf %s "(cached) " >&6 -else $as_nop - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint8_t))" "ac_cv_sizeof_uint8_t" "$ac_includes_default +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint8_t))" "ac_cv_sizeof_uint8_t" "$ac_includes_default " then : -else $as_nop - if test "$ac_cv_type_uint8_t" = yes; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) if test "$ac_cv_type_uint8_t" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (uint8_t) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_uint8_t=0 - fi + fi ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint8_t" >&5 colorize_result "$ac_cv_sizeof_uint8_t" ; } @@ -23311,15 +23877,16 @@ -else $as_nop - +else case e in #( + e) printf "%s\n" "#define uint8_t $rb_cv_type_uint8_t" >>confdefs.h cat >>confdefs.h <<_ACEOF -#define SIZEOF_UINT8_T SIZEOF_`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` +#define SIZEOF_UINT8_T SIZEOF_`printf "%s\n" "$rb_defint_type" | sed "$as_sed_cpp"` _ACEOF - + ;; +esac fi test -n "$rb_defint_cond" && echo "#endif /* $rb_defint_cond */" >> confdefs.h @@ -23330,8 +23897,8 @@ if test ${rb_cv_type_int16_t+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default typedef int16_t t; int s = sizeof(t) == 42; @@ -23346,8 +23913,8 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_type_int16_t=yes -else $as_nop - case 2 in #( +else case e in #( + e) case 2 in #( "1") : rb_cv_type_int16_t="signed char" ;; #( "$ac_cv_sizeof_short") : @@ -23364,9 +23931,11 @@ rb_cv_type_int16_t="__int128" ;; #( *) : rb_cv_type_int16_t=no ;; +esac ;; esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_int16_t" >&5 colorize_result "$rb_cv_type_int16_t" ; } @@ -23381,15 +23950,16 @@ case $rb_defint_cond in #( *:*) : - rb_defint_cond=`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` + rb_defint_cond=`printf "%s\n" "$rb_defint_type" | sed "$as_sed_cpp"` echo "#if defined SIZEOF_"$rb_defint_cond" && SIZEOF_"$rb_defint_cond" > 0" >> confdefs.h ;; #( *) : rb_defint_cond= ;; esac -else $as_nop - rb_defint_cond= +else case e in #( + e) rb_defint_cond= ;; +esac fi printf "%s\n" "#define HAVE_INT16_T 1" >>confdefs.h @@ -23398,29 +23968,31 @@ # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int16_t" >&5 printf %s "checking size of int16_t... " >&6; } if test ${ac_cv_sizeof_int16_t+y} then : printf %s "(cached) " >&6 -else $as_nop - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int16_t))" "ac_cv_sizeof_int16_t" "$ac_includes_default +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int16_t))" "ac_cv_sizeof_int16_t" "$ac_includes_default " then : -else $as_nop - if test "$ac_cv_type_int16_t" = yes; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) if test "$ac_cv_type_int16_t" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (int16_t) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_int16_t=0 - fi + fi ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int16_t" >&5 colorize_result "$ac_cv_sizeof_int16_t" ; } @@ -23431,15 +24003,16 @@ -else $as_nop - +else case e in #( + e) printf "%s\n" "#define int16_t $rb_cv_type_int16_t" >>confdefs.h cat >>confdefs.h <<_ACEOF -#define SIZEOF_INT16_T SIZEOF_`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` +#define SIZEOF_INT16_T SIZEOF_`printf "%s\n" "$rb_defint_type" | sed "$as_sed_cpp"` _ACEOF - + ;; +esac fi test -n "$rb_defint_cond" && echo "#endif /* $rb_defint_cond */" >> confdefs.h @@ -23450,8 +24023,8 @@ if test ${rb_cv_type_uint16_t+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default typedef uint16_t t; int s = sizeof(t) == 42; @@ -23466,8 +24039,8 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_type_uint16_t=yes -else $as_nop - case 2 in #( +else case e in #( + e) case 2 in #( "1") : rb_cv_type_uint16_t="unsigned char" ;; #( "$ac_cv_sizeof_short") : @@ -23484,9 +24057,11 @@ rb_cv_type_uint16_t="unsigned __int128" ;; #( *) : rb_cv_type_uint16_t=no ;; +esac ;; esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_uint16_t" >&5 colorize_result "$rb_cv_type_uint16_t" ; } @@ -23501,15 +24076,16 @@ case $rb_defint_cond in #( *:*) : - rb_defint_cond=`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` + rb_defint_cond=`printf "%s\n" "$rb_defint_type" | sed "$as_sed_cpp"` echo "#if defined SIZEOF_"$rb_defint_cond" && SIZEOF_"$rb_defint_cond" > 0" >> confdefs.h ;; #( *) : rb_defint_cond= ;; esac -else $as_nop - rb_defint_cond= +else case e in #( + e) rb_defint_cond= ;; +esac fi printf "%s\n" "#define HAVE_UINT16_T 1" >>confdefs.h @@ -23518,29 +24094,31 @@ # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uint16_t" >&5 printf %s "checking size of uint16_t... " >&6; } if test ${ac_cv_sizeof_uint16_t+y} then : printf %s "(cached) " >&6 -else $as_nop - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint16_t))" "ac_cv_sizeof_uint16_t" "$ac_includes_default +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint16_t))" "ac_cv_sizeof_uint16_t" "$ac_includes_default " then : -else $as_nop - if test "$ac_cv_type_uint16_t" = yes; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) if test "$ac_cv_type_uint16_t" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (uint16_t) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_uint16_t=0 - fi + fi ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint16_t" >&5 colorize_result "$ac_cv_sizeof_uint16_t" ; } @@ -23551,15 +24129,16 @@ -else $as_nop - +else case e in #( + e) printf "%s\n" "#define uint16_t $rb_cv_type_uint16_t" >>confdefs.h cat >>confdefs.h <<_ACEOF -#define SIZEOF_UINT16_T SIZEOF_`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` +#define SIZEOF_UINT16_T SIZEOF_`printf "%s\n" "$rb_defint_type" | sed "$as_sed_cpp"` _ACEOF - + ;; +esac fi test -n "$rb_defint_cond" && echo "#endif /* $rb_defint_cond */" >> confdefs.h @@ -23570,8 +24149,8 @@ if test ${rb_cv_type_int32_t+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default typedef int32_t t; int s = sizeof(t) == 42; @@ -23586,8 +24165,8 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_type_int32_t=yes -else $as_nop - case 4 in #( +else case e in #( + e) case 4 in #( "1") : rb_cv_type_int32_t="signed char" ;; #( "$ac_cv_sizeof_short") : @@ -23604,9 +24183,11 @@ rb_cv_type_int32_t="__int128" ;; #( *) : rb_cv_type_int32_t=no ;; +esac ;; esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_int32_t" >&5 colorize_result "$rb_cv_type_int32_t" ; } @@ -23621,15 +24202,16 @@ case $rb_defint_cond in #( *:*) : - rb_defint_cond=`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` + rb_defint_cond=`printf "%s\n" "$rb_defint_type" | sed "$as_sed_cpp"` echo "#if defined SIZEOF_"$rb_defint_cond" && SIZEOF_"$rb_defint_cond" > 0" >> confdefs.h ;; #( *) : rb_defint_cond= ;; esac -else $as_nop - rb_defint_cond= +else case e in #( + e) rb_defint_cond= ;; +esac fi printf "%s\n" "#define HAVE_INT32_T 1" >>confdefs.h @@ -23638,29 +24220,31 @@ # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int32_t" >&5 printf %s "checking size of int32_t... " >&6; } if test ${ac_cv_sizeof_int32_t+y} then : printf %s "(cached) " >&6 -else $as_nop - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int32_t))" "ac_cv_sizeof_int32_t" "$ac_includes_default +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int32_t))" "ac_cv_sizeof_int32_t" "$ac_includes_default " then : -else $as_nop - if test "$ac_cv_type_int32_t" = yes; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) if test "$ac_cv_type_int32_t" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (int32_t) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_int32_t=0 - fi + fi ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int32_t" >&5 colorize_result "$ac_cv_sizeof_int32_t" ; } @@ -23671,15 +24255,16 @@ -else $as_nop - +else case e in #( + e) printf "%s\n" "#define int32_t $rb_cv_type_int32_t" >>confdefs.h cat >>confdefs.h <<_ACEOF -#define SIZEOF_INT32_T SIZEOF_`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` +#define SIZEOF_INT32_T SIZEOF_`printf "%s\n" "$rb_defint_type" | sed "$as_sed_cpp"` _ACEOF - + ;; +esac fi test -n "$rb_defint_cond" && echo "#endif /* $rb_defint_cond */" >> confdefs.h @@ -23690,8 +24275,8 @@ if test ${rb_cv_type_uint32_t+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default typedef uint32_t t; int s = sizeof(t) == 42; @@ -23706,8 +24291,8 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_type_uint32_t=yes -else $as_nop - case 4 in #( +else case e in #( + e) case 4 in #( "1") : rb_cv_type_uint32_t="unsigned char" ;; #( "$ac_cv_sizeof_short") : @@ -23724,9 +24309,11 @@ rb_cv_type_uint32_t="unsigned __int128" ;; #( *) : rb_cv_type_uint32_t=no ;; +esac ;; esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_uint32_t" >&5 colorize_result "$rb_cv_type_uint32_t" ; } @@ -23741,15 +24328,16 @@ case $rb_defint_cond in #( *:*) : - rb_defint_cond=`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` + rb_defint_cond=`printf "%s\n" "$rb_defint_type" | sed "$as_sed_cpp"` echo "#if defined SIZEOF_"$rb_defint_cond" && SIZEOF_"$rb_defint_cond" > 0" >> confdefs.h ;; #( *) : rb_defint_cond= ;; esac -else $as_nop - rb_defint_cond= +else case e in #( + e) rb_defint_cond= ;; +esac fi printf "%s\n" "#define HAVE_UINT32_T 1" >>confdefs.h @@ -23758,29 +24346,31 @@ # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uint32_t" >&5 printf %s "checking size of uint32_t... " >&6; } if test ${ac_cv_sizeof_uint32_t+y} then : printf %s "(cached) " >&6 -else $as_nop - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint32_t))" "ac_cv_sizeof_uint32_t" "$ac_includes_default +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint32_t))" "ac_cv_sizeof_uint32_t" "$ac_includes_default " then : -else $as_nop - if test "$ac_cv_type_uint32_t" = yes; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) if test "$ac_cv_type_uint32_t" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (uint32_t) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_uint32_t=0 - fi + fi ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint32_t" >&5 colorize_result "$ac_cv_sizeof_uint32_t" ; } @@ -23791,15 +24381,16 @@ -else $as_nop - +else case e in #( + e) printf "%s\n" "#define uint32_t $rb_cv_type_uint32_t" >>confdefs.h cat >>confdefs.h <<_ACEOF -#define SIZEOF_UINT32_T SIZEOF_`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` +#define SIZEOF_UINT32_T SIZEOF_`printf "%s\n" "$rb_defint_type" | sed "$as_sed_cpp"` _ACEOF - + ;; +esac fi test -n "$rb_defint_cond" && echo "#endif /* $rb_defint_cond */" >> confdefs.h @@ -23810,8 +24401,8 @@ if test ${rb_cv_type_int64_t+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default typedef int64_t t; int s = sizeof(t) == 42; @@ -23826,8 +24417,8 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_type_int64_t=yes -else $as_nop - case 8 in #( +else case e in #( + e) case 8 in #( "1") : rb_cv_type_int64_t="signed char" ;; #( "$ac_cv_sizeof_short") : @@ -23844,9 +24435,11 @@ rb_cv_type_int64_t="__int128" ;; #( *) : rb_cv_type_int64_t=no ;; +esac ;; esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_int64_t" >&5 colorize_result "$rb_cv_type_int64_t" ; } @@ -23861,15 +24454,16 @@ case $rb_defint_cond in #( *:*) : - rb_defint_cond=`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` + rb_defint_cond=`printf "%s\n" "$rb_defint_type" | sed "$as_sed_cpp"` echo "#if defined SIZEOF_"$rb_defint_cond" && SIZEOF_"$rb_defint_cond" > 0" >> confdefs.h ;; #( *) : rb_defint_cond= ;; esac -else $as_nop - rb_defint_cond= +else case e in #( + e) rb_defint_cond= ;; +esac fi printf "%s\n" "#define HAVE_INT64_T 1" >>confdefs.h @@ -23878,29 +24472,31 @@ # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5 printf %s "checking size of int64_t... " >&6; } if test ${ac_cv_sizeof_int64_t+y} then : printf %s "(cached) " >&6 -else $as_nop - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t" "$ac_includes_default +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t" "$ac_includes_default " then : -else $as_nop - if test "$ac_cv_type_int64_t" = yes; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) if test "$ac_cv_type_int64_t" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (int64_t) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_int64_t=0 - fi + fi ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5 colorize_result "$ac_cv_sizeof_int64_t" ; } @@ -23911,15 +24507,16 @@ -else $as_nop - +else case e in #( + e) printf "%s\n" "#define int64_t $rb_cv_type_int64_t" >>confdefs.h cat >>confdefs.h <<_ACEOF -#define SIZEOF_INT64_T SIZEOF_`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` +#define SIZEOF_INT64_T SIZEOF_`printf "%s\n" "$rb_defint_type" | sed "$as_sed_cpp"` _ACEOF - + ;; +esac fi test -n "$rb_defint_cond" && echo "#endif /* $rb_defint_cond */" >> confdefs.h @@ -23930,8 +24527,8 @@ if test ${rb_cv_type_uint64_t+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default typedef uint64_t t; int s = sizeof(t) == 42; @@ -23946,8 +24543,8 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_type_uint64_t=yes -else $as_nop - case 8 in #( +else case e in #( + e) case 8 in #( "1") : rb_cv_type_uint64_t="unsigned char" ;; #( "$ac_cv_sizeof_short") : @@ -23964,9 +24561,11 @@ rb_cv_type_uint64_t="unsigned __int128" ;; #( *) : rb_cv_type_uint64_t=no ;; +esac ;; esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_uint64_t" >&5 colorize_result "$rb_cv_type_uint64_t" ; } @@ -23981,15 +24580,16 @@ case $rb_defint_cond in #( *:*) : - rb_defint_cond=`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` + rb_defint_cond=`printf "%s\n" "$rb_defint_type" | sed "$as_sed_cpp"` echo "#if defined SIZEOF_"$rb_defint_cond" && SIZEOF_"$rb_defint_cond" > 0" >> confdefs.h ;; #( *) : rb_defint_cond= ;; esac -else $as_nop - rb_defint_cond= +else case e in #( + e) rb_defint_cond= ;; +esac fi printf "%s\n" "#define HAVE_UINT64_T 1" >>confdefs.h @@ -23998,29 +24598,31 @@ # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uint64_t" >&5 printf %s "checking size of uint64_t... " >&6; } if test ${ac_cv_sizeof_uint64_t+y} then : printf %s "(cached) " >&6 -else $as_nop - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint64_t))" "ac_cv_sizeof_uint64_t" "$ac_includes_default +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint64_t))" "ac_cv_sizeof_uint64_t" "$ac_includes_default " then : -else $as_nop - if test "$ac_cv_type_uint64_t" = yes; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) if test "$ac_cv_type_uint64_t" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (uint64_t) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_uint64_t=0 - fi + fi ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint64_t" >&5 colorize_result "$ac_cv_sizeof_uint64_t" ; } @@ -24031,15 +24633,16 @@ -else $as_nop - +else case e in #( + e) printf "%s\n" "#define uint64_t $rb_cv_type_uint64_t" >>confdefs.h cat >>confdefs.h <<_ACEOF -#define SIZEOF_UINT64_T SIZEOF_`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` +#define SIZEOF_UINT64_T SIZEOF_`printf "%s\n" "$rb_defint_type" | sed "$as_sed_cpp"` _ACEOF - + ;; +esac fi test -n "$rb_defint_cond" && echo "#endif /* $rb_defint_cond */" >> confdefs.h @@ -24050,8 +24653,8 @@ if test ${rb_cv_type_int128_t+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default typedef int128_t t; int s = sizeof(t) == 42; @@ -24066,8 +24669,8 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_type_int128_t=yes -else $as_nop - case 16 in #( +else case e in #( + e) case 16 in #( "1") : rb_cv_type_int128_t="signed char" ;; #( "$ac_cv_sizeof_short") : @@ -24084,9 +24687,11 @@ rb_cv_type_int128_t="__int128" ;; #( *) : rb_cv_type_int128_t=no ;; +esac ;; esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_int128_t" >&5 colorize_result "$rb_cv_type_int128_t" ; } @@ -24101,15 +24706,16 @@ case $rb_defint_cond in #( *:*) : - rb_defint_cond=`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` + rb_defint_cond=`printf "%s\n" "$rb_defint_type" | sed "$as_sed_cpp"` echo "#if defined SIZEOF_"$rb_defint_cond" && SIZEOF_"$rb_defint_cond" > 0" >> confdefs.h ;; #( *) : rb_defint_cond= ;; esac -else $as_nop - rb_defint_cond= +else case e in #( + e) rb_defint_cond= ;; +esac fi printf "%s\n" "#define HAVE_INT128_T 1" >>confdefs.h @@ -24118,29 +24724,31 @@ # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int128_t" >&5 printf %s "checking size of int128_t... " >&6; } if test ${ac_cv_sizeof_int128_t+y} then : printf %s "(cached) " >&6 -else $as_nop - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int128_t))" "ac_cv_sizeof_int128_t" "$ac_includes_default +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int128_t))" "ac_cv_sizeof_int128_t" "$ac_includes_default " then : -else $as_nop - if test "$ac_cv_type_int128_t" = yes; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) if test "$ac_cv_type_int128_t" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (int128_t) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_int128_t=0 - fi + fi ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int128_t" >&5 colorize_result "$ac_cv_sizeof_int128_t" ; } @@ -24151,15 +24759,16 @@ -else $as_nop - +else case e in #( + e) printf "%s\n" "#define int128_t $rb_cv_type_int128_t" >>confdefs.h cat >>confdefs.h <<_ACEOF -#define SIZEOF_INT128_T SIZEOF_`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` +#define SIZEOF_INT128_T SIZEOF_`printf "%s\n" "$rb_defint_type" | sed "$as_sed_cpp"` _ACEOF - + ;; +esac fi test -n "$rb_defint_cond" && echo "#endif /* $rb_defint_cond */" >> confdefs.h @@ -24170,8 +24779,8 @@ if test ${rb_cv_type_uint128_t+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default typedef uint128_t t; int s = sizeof(t) == 42; @@ -24186,8 +24795,8 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_type_uint128_t=yes -else $as_nop - case 16 in #( +else case e in #( + e) case 16 in #( "1") : rb_cv_type_uint128_t="unsigned char" ;; #( "$ac_cv_sizeof_short") : @@ -24204,9 +24813,11 @@ rb_cv_type_uint128_t="unsigned __int128" ;; #( *) : rb_cv_type_uint128_t=no ;; +esac ;; esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_uint128_t" >&5 colorize_result "$rb_cv_type_uint128_t" ; } @@ -24221,15 +24832,16 @@ case $rb_defint_cond in #( *:*) : - rb_defint_cond=`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` + rb_defint_cond=`printf "%s\n" "$rb_defint_type" | sed "$as_sed_cpp"` echo "#if defined SIZEOF_"$rb_defint_cond" && SIZEOF_"$rb_defint_cond" > 0" >> confdefs.h ;; #( *) : rb_defint_cond= ;; esac -else $as_nop - rb_defint_cond= +else case e in #( + e) rb_defint_cond= ;; +esac fi printf "%s\n" "#define HAVE_UINT128_T 1" >>confdefs.h @@ -24238,29 +24850,31 @@ # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uint128_t" >&5 printf %s "checking size of uint128_t... " >&6; } if test ${ac_cv_sizeof_uint128_t+y} then : printf %s "(cached) " >&6 -else $as_nop - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint128_t))" "ac_cv_sizeof_uint128_t" "$ac_includes_default +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint128_t))" "ac_cv_sizeof_uint128_t" "$ac_includes_default " then : -else $as_nop - if test "$ac_cv_type_uint128_t" = yes; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) if test "$ac_cv_type_uint128_t" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (uint128_t) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_uint128_t=0 - fi + fi ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint128_t" >&5 colorize_result "$ac_cv_sizeof_uint128_t" ; } @@ -24271,15 +24885,16 @@ -else $as_nop - +else case e in #( + e) printf "%s\n" "#define uint128_t $rb_cv_type_uint128_t" >>confdefs.h cat >>confdefs.h <<_ACEOF -#define SIZEOF_UINT128_T SIZEOF_`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` +#define SIZEOF_UINT128_T SIZEOF_`printf "%s\n" "$rb_defint_type" | sed "$as_sed_cpp"` _ACEOF - + ;; +esac fi test -n "$rb_defint_cond" && echo "#endif /* $rb_defint_cond */" >> confdefs.h @@ -24290,8 +24905,8 @@ if test ${rb_cv_type_intptr_t+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default typedef intptr_t t; int s = sizeof(t) == 42; @@ -24306,8 +24921,8 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_type_intptr_t=yes -else $as_nop - case $ac_cv_sizeof_voidp in #( +else case e in #( + e) case $ac_cv_sizeof_voidp in #( "1") : rb_cv_type_intptr_t="signed char" ;; #( "$ac_cv_sizeof_short") : @@ -24324,9 +24939,11 @@ rb_cv_type_intptr_t="__int128" ;; #( *) : rb_cv_type_intptr_t=no ;; +esac ;; esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_intptr_t" >&5 colorize_result "$rb_cv_type_intptr_t" ; } @@ -24341,15 +24958,16 @@ case $rb_defint_cond in #( *:*) : - rb_defint_cond=`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` + rb_defint_cond=`printf "%s\n" "$rb_defint_type" | sed "$as_sed_cpp"` echo "#if defined SIZEOF_"$rb_defint_cond" && SIZEOF_"$rb_defint_cond" > 0" >> confdefs.h ;; #( *) : rb_defint_cond= ;; esac -else $as_nop - rb_defint_cond= +else case e in #( + e) rb_defint_cond= ;; +esac fi printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h @@ -24363,8 +24981,8 @@ if test ${ac_cv_sizeof_intptr_t+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) unset ac_cv_sizeof_intptr_t rbcv_sizeof_var=" typedef intptr_t ac__type_sizeof_; @@ -24392,7 +25010,7 @@ if ac_fn_c_try_compile "$LINENO" then : - ac_cv_sizeof_intptr_t=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | $as_tr_cpp` + ac_cv_sizeof_intptr_t=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | sed "$as_sed_cpp"` break fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -24414,8 +25032,9 @@ #endif" then : -else $as_nop - rbcv_sizeof_type=0 +else case e in #( + e) rbcv_sizeof_type=0 ;; +esac fi test "$universal_binary" = yes && cross_compiling=$real_cross_compiling @@ -24427,7 +25046,8 @@ fi } : ${ac_cv_sizeof_intptr_t=0} - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intptr_t" >&5 colorize_result "$ac_cv_sizeof_intptr_t" ; } @@ -24461,29 +25081,31 @@ else # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of intptr_t" >&5 printf %s "checking size of intptr_t... " >&6; } if test ${ac_cv_sizeof_intptr_t+y} then : printf %s "(cached) " >&6 -else $as_nop - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intptr_t))" "ac_cv_sizeof_intptr_t" "$ac_includes_default +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intptr_t))" "ac_cv_sizeof_intptr_t" "$ac_includes_default " then : -else $as_nop - if test "$ac_cv_type_intptr_t" = yes; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) if test "$ac_cv_type_intptr_t" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (intptr_t) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_intptr_t=0 - fi + fi ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intptr_t" >&5 colorize_result "$ac_cv_sizeof_intptr_t" ; } @@ -24496,15 +25118,16 @@ fi -else $as_nop - +else case e in #( + e) printf "%s\n" "#define intptr_t $rb_cv_type_intptr_t" >>confdefs.h cat >>confdefs.h <<_ACEOF -#define SIZEOF_INTPTR_T SIZEOF_`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` +#define SIZEOF_INTPTR_T SIZEOF_`printf "%s\n" "$rb_defint_type" | sed "$as_sed_cpp"` _ACEOF - + ;; +esac fi test -n "$rb_defint_cond" && echo "#endif /* $rb_defint_cond */" >> confdefs.h @@ -24515,8 +25138,8 @@ if test ${rb_cv_type_uintptr_t+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default typedef uintptr_t t; int s = sizeof(t) == 42; @@ -24531,8 +25154,8 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_type_uintptr_t=yes -else $as_nop - case $ac_cv_sizeof_voidp in #( +else case e in #( + e) case $ac_cv_sizeof_voidp in #( "1") : rb_cv_type_uintptr_t="unsigned char" ;; #( "$ac_cv_sizeof_short") : @@ -24549,9 +25172,11 @@ rb_cv_type_uintptr_t="unsigned __int128" ;; #( *) : rb_cv_type_uintptr_t=no ;; +esac ;; esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_uintptr_t" >&5 colorize_result "$rb_cv_type_uintptr_t" ; } @@ -24566,15 +25191,16 @@ case $rb_defint_cond in #( *:*) : - rb_defint_cond=`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` + rb_defint_cond=`printf "%s\n" "$rb_defint_type" | sed "$as_sed_cpp"` echo "#if defined SIZEOF_"$rb_defint_cond" && SIZEOF_"$rb_defint_cond" > 0" >> confdefs.h ;; #( *) : rb_defint_cond= ;; esac -else $as_nop - rb_defint_cond= +else case e in #( + e) rb_defint_cond= ;; +esac fi printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h @@ -24588,8 +25214,8 @@ if test ${ac_cv_sizeof_uintptr_t+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) unset ac_cv_sizeof_uintptr_t rbcv_sizeof_var=" typedef uintptr_t ac__type_sizeof_; @@ -24617,7 +25243,7 @@ if ac_fn_c_try_compile "$LINENO" then : - ac_cv_sizeof_uintptr_t=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | $as_tr_cpp` + ac_cv_sizeof_uintptr_t=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | sed "$as_sed_cpp"` break fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -24639,8 +25265,9 @@ #endif" then : -else $as_nop - rbcv_sizeof_type=0 +else case e in #( + e) rbcv_sizeof_type=0 ;; +esac fi test "$universal_binary" = yes && cross_compiling=$real_cross_compiling @@ -24652,7 +25279,8 @@ fi } : ${ac_cv_sizeof_uintptr_t=0} - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 colorize_result "$ac_cv_sizeof_uintptr_t" ; } @@ -24686,29 +25314,31 @@ else # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 printf %s "checking size of uintptr_t... " >&6; } if test ${ac_cv_sizeof_uintptr_t+y} then : printf %s "(cached) " >&6 -else $as_nop - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default " then : -else $as_nop - if test "$ac_cv_type_uintptr_t" = yes; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) if test "$ac_cv_type_uintptr_t" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (uintptr_t) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_uintptr_t=0 - fi + fi ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 colorize_result "$ac_cv_sizeof_uintptr_t" ; } @@ -24721,15 +25351,16 @@ fi -else $as_nop - +else case e in #( + e) printf "%s\n" "#define uintptr_t $rb_cv_type_uintptr_t" >>confdefs.h cat >>confdefs.h <<_ACEOF -#define SIZEOF_UINTPTR_T SIZEOF_`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` +#define SIZEOF_UINTPTR_T SIZEOF_`printf "%s\n" "$rb_defint_type" | sed "$as_sed_cpp"` _ACEOF - + ;; +esac fi test -n "$rb_defint_cond" && echo "#endif /* $rb_defint_cond */" >> confdefs.h @@ -24744,8 +25375,8 @@ if test ${rb_cv_pri_prefix_intptr_t+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) rb_cv_pri_prefix_intptr_t=NONE save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $rb_cv_warnflags" @@ -24754,10 +25385,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes # RUBY_APPEND_OPTIONS(CFLAGS) @@ -24810,11 +25442,13 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - -fi + ;; +esac +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_pri_prefix_intptr_t" >&5 colorize_result "$rb_cv_pri_prefix_intptr_t" ; } @@ -24833,8 +25467,8 @@ if test ${rb_cv_type_ssize_t+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -24850,8 +25484,8 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_type_ssize_t=yes -else $as_nop - case $ac_cv_sizeof_size_t in #( +else case e in #( + e) case $ac_cv_sizeof_size_t in #( "1") : rb_cv_type_ssize_t="signed char" ;; #( "$ac_cv_sizeof_short") : @@ -24868,9 +25502,11 @@ rb_cv_type_ssize_t="__int128" ;; #( *) : rb_cv_type_ssize_t=no ;; +esac ;; esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_ssize_t" >&5 colorize_result "$rb_cv_type_ssize_t" ; } @@ -24885,15 +25521,16 @@ case $rb_defint_cond in #( *:*) : - rb_defint_cond=`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` + rb_defint_cond=`printf "%s\n" "$rb_defint_type" | sed "$as_sed_cpp"` echo "#if defined SIZEOF_"$rb_defint_cond" && SIZEOF_"$rb_defint_cond" > 0" >> confdefs.h ;; #( *) : rb_defint_cond= ;; esac -else $as_nop - rb_defint_cond= +else case e in #( + e) rb_defint_cond= ;; +esac fi printf "%s\n" "#define HAVE_SSIZE_T 1" >>confdefs.h @@ -24907,8 +25544,8 @@ if test ${ac_cv_sizeof_ssize_t+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) unset ac_cv_sizeof_ssize_t rbcv_sizeof_var=" typedef ssize_t ac__type_sizeof_; @@ -24937,7 +25574,7 @@ if ac_fn_c_try_compile "$LINENO" then : - ac_cv_sizeof_ssize_t=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | $as_tr_cpp` + ac_cv_sizeof_ssize_t=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | sed "$as_sed_cpp"` break fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -24960,8 +25597,9 @@ #endif" then : -else $as_nop - rbcv_sizeof_type=0 +else case e in #( + e) rbcv_sizeof_type=0 ;; +esac fi test "$universal_binary" = yes && cross_compiling=$real_cross_compiling @@ -24973,7 +25611,8 @@ fi } : ${ac_cv_sizeof_ssize_t=0} - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5 colorize_result "$ac_cv_sizeof_ssize_t" ; } @@ -25007,30 +25646,32 @@ else # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5 printf %s "checking size of ssize_t... " >&6; } if test ${ac_cv_sizeof_ssize_t+y} then : printf %s "(cached) " >&6 -else $as_nop - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "#include +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "#include " then : -else $as_nop - if test "$ac_cv_type_ssize_t" = yes; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) if test "$ac_cv_type_ssize_t" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (ssize_t) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_ssize_t=0 - fi + fi ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5 colorize_result "$ac_cv_sizeof_ssize_t" ; } @@ -25043,15 +25684,16 @@ fi -else $as_nop - +else case e in #( + e) printf "%s\n" "#define ssize_t $rb_cv_type_ssize_t" >>confdefs.h cat >>confdefs.h <<_ACEOF -#define SIZEOF_SSIZE_T SIZEOF_`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` +#define SIZEOF_SSIZE_T SIZEOF_`printf "%s\n" "$rb_defint_type" | sed "$as_sed_cpp"` _ACEOF - + ;; +esac fi test -n "$rb_defint_cond" && echo "#endif /* $rb_defint_cond */" >> confdefs.h @@ -25065,8 +25707,8 @@ if test ${rb_cv_pri_prefix_int64_t+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) rb_cv_pri_prefix_int64_t=NONE save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $rb_cv_warnflags" @@ -25075,10 +25717,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes # RUBY_APPEND_OPTIONS(CFLAGS) @@ -25131,11 +25774,13 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - -fi + ;; +esac +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_pri_prefix_int64_t" >&5 colorize_result "$rb_cv_pri_prefix_int64_t" ; } @@ -25155,8 +25800,8 @@ if test ${rb_cv_stack_end_address+y} then : printf %s "(cached) " >&6 -else $as_nop - rb_cv_stack_end_address=no +else case e in #( + e) rb_cv_stack_end_address=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ extern void *__libc_stack_end; @@ -25174,7 +25819,8 @@ fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_stack_end_address" >&5 colorize_result "$rb_cv_stack_end_address" ; } @@ -25186,178 +25832,26 @@ fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -printf %s "checking for grep that handles long lines and -e... " >&6; } -if test ${ac_cv_path_GREP+y} +ac_fn_c_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default" +if test "x$ac_cv_type_uid_t" = xyes then : - printf %s "(cached) " >&6 -else $as_nop - if test -z "$GREP"; then - ac_path_GREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_prog in grep ggrep - do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_GREP" || continue -# Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in -*GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; -*) - ac_count=0 - printf %s 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - printf "%s\n" 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_GREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_GREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_GREP=$GREP -fi - -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 - colorize_result "$ac_cv_path_GREP" ; } - GREP="$ac_cv_path_GREP" - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -printf %s "checking for egrep... " >&6; } -if test ${ac_cv_path_EGREP+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_prog in egrep - do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in -*GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; -*) - ac_count=0 - printf %s 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - printf "%s\n" 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +else case e in #( + e) +printf "%s\n" "#define uid_t int" >>confdefs.h + ;; esac - - $ac_path_EGREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then - as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_EGREP=$EGREP fi - fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 - colorize_result "$ac_cv_path_EGREP" ; } - EGREP="$ac_cv_path_EGREP" - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 -printf %s "checking for uid_t in sys/types.h... " >&6; } -if test ${ac_cv_type_uid_t+y} -then : - printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "uid_t" >/dev/null 2>&1 +ac_fn_c_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default" +if test "x$ac_cv_type_gid_t" = xyes then : - ac_cv_type_uid_t=yes -else $as_nop - ac_cv_type_uid_t=no -fi -rm -rf conftest* - -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 - colorize_result "$ac_cv_type_uid_t" ; } -if test $ac_cv_type_uid_t = no; then - -printf "%s\n" "#define uid_t int" >>confdefs.h - +else case e in #( + e) printf "%s\n" "#define gid_t int" >>confdefs.h - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5 @@ -25365,67 +25859,118 @@ if test ${ac_cv_type_getgroups+y} then : printf %s "(cached) " >&6 -else $as_nop - if test "$cross_compiling" = yes +else case e in #( + e) # If AC_TYPE_UID_T says there isn't any gid_t typedef, then we can skip +# everything below. +if test $ac_cv_type_gid_t = no then : - ac_cv_type_getgroups=cross -else $as_nop + ac_cv_type_getgroups=int +else case e in #( + e) # Test programs below rely on strict type checking of extern declarations: + # 'extern int getgroups(int, int *); extern int getgroups(int, pid_t *);' + # is valid in C89 if and only if pid_t is a typedef for int. Unlike + # anything involving either an assignment or a function call, compilers + # tend to make this kind of type mismatch a hard error, not just an + # "incompatible pointer types" warning. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Thanks to Mike Rendell for this test. */ $ac_includes_default -#define NGID 256 -#undef MAX -#define MAX(x, y) ((x) > (y) ? (x) : (y)) - +extern int getgroups(int, gid_t *); int main (void) { - gid_t gidset[NGID]; - int i, n; - union { gid_t gval; long int lval; } val; - - val.lval = -1; - for (i = 0; i < NGID; i++) - gidset[i] = val.gval; - n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, - gidset); - /* Exit non-zero if getgroups seems to require an array of ints. This - happens when gid_t is short int but getgroups modifies an array - of ints. */ - return n > 0 && gidset[n] != val.gval; +return !(getgroups(0, 0) >= 0); + ; + return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO" +if ac_fn_c_try_compile "$LINENO" then : - ac_cv_type_getgroups=gid_t -else $as_nop - ac_cv_type_getgroups=int + ac_getgroups_gidarray=yes +else case e in #( + e) ac_getgroups_gidarray=no ;; +esac fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +extern int getgroups(int, int *); +int +main (void) +{ +return !(getgroups(0, 0) >= 0); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + ac_getgroups_intarray=yes +else case e in #( + e) ac_getgroups_intarray=no ;; +esac fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -if test $ac_cv_type_getgroups = cross; then - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include + case int:$ac_getgroups_intarray,gid:$ac_getgroups_gidarray in #( + int:yes,gid:no) : + ac_cv_type_getgroups=int ;; #( + int:no,gid:yes) : + ac_cv_type_getgroups=gid_t ;; #( + int:yes,gid:yes) : + # Both programs compiled - this means *either* that getgroups + # was declared with no prototype, in which case we should use int, + # or that it was declared prototyped but gid_t is a typedef for int, + # in which case we should use gid_t. Distinguish the two cases + # by testing if the compiler catches a blatantly incorrect function + # signature for getgroups. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +extern int getgroups(int, float); +int +main (void) +{ +return !(getgroups(0, 0) >= 0); + ; + return 0; +} _ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1 +if ac_fn_c_try_compile "$LINENO" then : - ac_cv_type_getgroups=gid_t -else $as_nop - ac_cv_type_getgroups=int + + # Compiler did not catch incorrect argument list; + # getgroups is unprototyped. + ac_cv_type_getgroups=int + +else case e in #( + e) + # Compiler caught incorrect argument list; + # gid_t is a typedef for int. + ac_cv_type_getgroups=gid_t + ;; +esac fi -rm -rf conftest* +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ;; #( + *) : + # Both programs failed to compile - this probably means getgroups + # wasn't declared at all. Use 'int', as this is probably a very + # old system where the type _would have been_ int. + ac_cv_type_getgroups=int + ;; +esac + ;; +esac fi + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5 colorize_result "$ac_cv_type_getgroups" ; } - printf "%s\n" "#define GETGROUPS_T $ac_cv_type_getgroups" >>confdefs.h @@ -25463,8 +26008,8 @@ if test ${ac_cv_working_alloca_h+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int @@ -25479,11 +26024,13 @@ if ac_fn_c_try_link "$LINENO" then : ac_cv_working_alloca_h=yes -else $as_nop - ac_cv_working_alloca_h=no +else case e in #( + e) ac_cv_working_alloca_h=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext + conftest$ac_exeext conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 colorize_result "$ac_cv_working_alloca_h" ; } @@ -25498,10 +26045,10 @@ if test ${ac_cv_func_alloca_works+y} then : printf %s "(cached) " >&6 -else $as_nop - if test $ac_cv_working_alloca_h = yes; then - ac_cv_func_alloca_works=yes -else +else case e in #( + e) ac_cv_func_alloca_works=$ac_cv_working_alloca_h +if test "$ac_cv_func_alloca_works" != yes +then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -25532,15 +26079,14 @@ if ac_fn_c_try_link "$LINENO" then : ac_cv_func_alloca_works=yes -else $as_nop - ac_cv_func_alloca_works=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 colorize_result "$ac_cv_func_alloca_works" ; } -fi if test $ac_cv_func_alloca_works = yes; then @@ -25562,12 +26108,12 @@ if test ${ac_cv_c_stack_direction+y} then : printf %s "(cached) " >&6 -else $as_nop - if test "$cross_compiling" = yes +else case e in #( + e) if test "$cross_compiling" = yes then : ac_cv_c_stack_direction=0 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int @@ -25590,13 +26136,16 @@ if ac_fn_c_try_run "$LINENO" then : ac_cv_c_stack_direction=1 -else $as_nop - ac_cv_c_stack_direction=-1 +else case e in #( + e) ac_cv_c_stack_direction=-1 ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 colorize_result "$ac_cv_c_stack_direction" ; } @@ -25615,8 +26164,8 @@ if test ${rb_cv_dynamic_alloca+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) for chk in ok __chkstk; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -25641,7 +26190,8 @@ fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext - done + done ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_dynamic_alloca" >&5 colorize_result "$rb_cv_dynamic_alloca" ; } @@ -25668,12 +26218,12 @@ if test ${ac_cv_func_memcmp_working+y} then : printf %s "(cached) " >&6 -else $as_nop - if test "$cross_compiling" = yes +else case e in #( + e) if test "$cross_compiling" = yes then : ac_cv_func_memcmp_working=no -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int @@ -25711,13 +26261,16 @@ if ac_fn_c_try_run "$LINENO" then : ac_cv_func_memcmp_working=yes -else $as_nop - ac_cv_func_memcmp_working=no +else case e in #( + e) ac_cv_func_memcmp_working=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 colorize_result "$ac_cv_func_memcmp_working" ; } @@ -25739,13 +26292,14 @@ then : printf "%s\n" "#define HAVE_CLOSE 1" >>confdefs.h -else $as_nop - case " $LIBOBJS " in +else case e in #( + e) case " $LIBOBJS " in *" close.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS close.$ac_objext" ;; esac - + ;; +esac fi ;; #( @@ -25771,8 +26325,9 @@ if test "$ac_cv_func_dup" = yes then : -else $as_nop - as_fn_error $? "dup() must be supported" "$LINENO" 5 +else case e in #( + e) as_fn_error $? "dup() must be supported" "$LINENO" 5 ;; +esac fi # RUBY_REQUIRE_FUNC([dup2], []) @@ -25786,8 +26341,9 @@ if test "$ac_cv_func_dup2" = yes then : -else $as_nop - as_fn_error $? "dup2() must be supported" "$LINENO" 5 +else case e in #( + e) as_fn_error $? "dup2() must be supported" "$LINENO" 5 ;; +esac fi @@ -25799,13 +26355,14 @@ then : printf "%s\n" "#define HAVE_ACOSH 1" >>confdefs.h -else $as_nop - case " $LIBOBJS " in +else case e in #( + e) case " $LIBOBJS " in *" acosh.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS acosh.$ac_objext" ;; esac - + ;; +esac fi ac_fn_c_check_func "$LINENO" "cbrt" "ac_cv_func_cbrt" @@ -25813,13 +26370,14 @@ then : printf "%s\n" "#define HAVE_CBRT 1" >>confdefs.h -else $as_nop - case " $LIBOBJS " in +else case e in #( + e) case " $LIBOBJS " in *" cbrt.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS cbrt.$ac_objext" ;; esac - + ;; +esac fi ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt" @@ -25827,13 +26385,14 @@ then : printf "%s\n" "#define HAVE_CRYPT 1" >>confdefs.h -else $as_nop - case " $LIBOBJS " in +else case e in #( + e) case " $LIBOBJS " in *" crypt.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS crypt.$ac_objext" ;; esac - + ;; +esac fi ac_fn_c_check_func "$LINENO" "erf" "ac_cv_func_erf" @@ -25841,13 +26400,14 @@ then : printf "%s\n" "#define HAVE_ERF 1" >>confdefs.h -else $as_nop - case " $LIBOBJS " in +else case e in #( + e) case " $LIBOBJS " in *" erf.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS erf.$ac_objext" ;; esac - + ;; +esac fi ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero" @@ -25855,13 +26415,14 @@ then : printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h -else $as_nop - case " $LIBOBJS " in +else case e in #( + e) case " $LIBOBJS " in *" explicit_bzero.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext" ;; esac - + ;; +esac fi ac_fn_c_check_func "$LINENO" "ffs" "ac_cv_func_ffs" @@ -25869,13 +26430,14 @@ then : printf "%s\n" "#define HAVE_FFS 1" >>confdefs.h -else $as_nop - case " $LIBOBJS " in +else case e in #( + e) case " $LIBOBJS " in *" ffs.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS ffs.$ac_objext" ;; esac - + ;; +esac fi ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" @@ -25883,13 +26445,14 @@ then : printf "%s\n" "#define HAVE_FLOCK 1" >>confdefs.h -else $as_nop - case " $LIBOBJS " in +else case e in #( + e) case " $LIBOBJS " in *" flock.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS flock.$ac_objext" ;; esac - + ;; +esac fi ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot" @@ -25897,13 +26460,14 @@ then : printf "%s\n" "#define HAVE_HYPOT 1" >>confdefs.h -else $as_nop - case " $LIBOBJS " in +else case e in #( + e) case " $LIBOBJS " in *" hypot.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS hypot.$ac_objext" ;; esac - + ;; +esac fi ac_fn_c_check_func "$LINENO" "lgamma_r" "ac_cv_func_lgamma_r" @@ -25911,13 +26475,14 @@ then : printf "%s\n" "#define HAVE_LGAMMA_R 1" >>confdefs.h -else $as_nop - case " $LIBOBJS " in +else case e in #( + e) case " $LIBOBJS " in *" lgamma_r.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS lgamma_r.$ac_objext" ;; esac - + ;; +esac fi ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" @@ -25925,13 +26490,14 @@ then : printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h -else $as_nop - case " $LIBOBJS " in +else case e in #( + e) case " $LIBOBJS " in *" memmove.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS memmove.$ac_objext" ;; esac - + ;; +esac fi ac_fn_c_check_func "$LINENO" "nan" "ac_cv_func_nan" @@ -25939,13 +26505,14 @@ then : printf "%s\n" "#define HAVE_NAN 1" >>confdefs.h -else $as_nop - case " $LIBOBJS " in +else case e in #( + e) case " $LIBOBJS " in *" nan.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS nan.$ac_objext" ;; esac - + ;; +esac fi ac_fn_c_check_func "$LINENO" "nextafter" "ac_cv_func_nextafter" @@ -25953,13 +26520,14 @@ then : printf "%s\n" "#define HAVE_NEXTAFTER 1" >>confdefs.h -else $as_nop - case " $LIBOBJS " in +else case e in #( + e) case " $LIBOBJS " in *" nextafter.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS nextafter.$ac_objext" ;; esac - + ;; +esac fi ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle" @@ -25967,13 +26535,14 @@ then : printf "%s\n" "#define HAVE_SETPROCTITLE 1" >>confdefs.h -else $as_nop - case " $LIBOBJS " in +else case e in #( + e) case " $LIBOBJS " in *" setproctitle.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;; esac - + ;; +esac fi ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr" @@ -25981,13 +26550,14 @@ then : printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h -else $as_nop - case " $LIBOBJS " in +else case e in #( + e) case " $LIBOBJS " in *" strchr.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS strchr.$ac_objext" ;; esac - + ;; +esac fi ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" @@ -25995,13 +26565,14 @@ then : printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h -else $as_nop - case " $LIBOBJS " in +else case e in #( + e) case " $LIBOBJS " in *" strerror.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS strerror.$ac_objext" ;; esac - + ;; +esac fi ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" @@ -26009,13 +26580,14 @@ then : printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h -else $as_nop - case " $LIBOBJS " in +else case e in #( + e) case " $LIBOBJS " in *" strlcat.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" ;; esac - + ;; +esac fi ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" @@ -26023,13 +26595,14 @@ then : printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h -else $as_nop - case " $LIBOBJS " in +else case e in #( + e) case " $LIBOBJS " in *" strlcpy.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" ;; esac - + ;; +esac fi ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr" @@ -26037,13 +26610,14 @@ then : printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h -else $as_nop - case " $LIBOBJS " in +else case e in #( + e) case " $LIBOBJS " in *" strstr.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS strstr.$ac_objext" ;; esac - + ;; +esac fi ac_fn_c_check_func "$LINENO" "tgamma" "ac_cv_func_tgamma" @@ -26051,13 +26625,14 @@ then : printf "%s\n" "#define HAVE_TGAMMA 1" >>confdefs.h -else $as_nop - case " $LIBOBJS " in +else case e in #( + e) case " $LIBOBJS " in *" tgamma.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS tgamma.$ac_objext" ;; esac - + ;; +esac fi @@ -26090,8 +26665,8 @@ if test "x$ac_cv_type_pid_t" = xyes then : -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined _WIN64 && !defined __CYGWIN__ @@ -26110,14 +26685,16 @@ if ac_fn_c_try_compile "$LINENO" then : ac_pid_type='int' -else $as_nop - ac_pid_type='__int64' +else case e in #( + e) ac_pid_type='__int64' ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h - + ;; +esac fi @@ -26144,19 +26721,19 @@ if test ${ac_cv_func_fork_works+y} then : printf %s "(cached) " >&6 -else $as_nop - if test "$cross_compiling" = yes +else case e in #( + e) if test "$cross_compiling" = yes then : ac_cv_func_fork_works=cross -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main (void) { - /* By Ruediger Kuhlmann. */ + /* By R. Kuhlmann. */ return fork () < 0; ; @@ -26166,13 +26743,16 @@ if ac_fn_c_try_run "$LINENO" then : ac_cv_func_fork_works=yes -else $as_nop - ac_cv_func_fork_works=no +else case e in #( + e) ac_cv_func_fork_works=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 colorize_result "$ac_cv_func_fork_works" ; } @@ -26200,12 +26780,12 @@ if test ${ac_cv_func_vfork_works+y} then : printf %s "(cached) " >&6 -else $as_nop - if test "$cross_compiling" = yes +else case e in #( + e) if test "$cross_compiling" = yes then : ac_cv_func_vfork_works=cross -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Thanks to Paul Eggert for this test. */ $ac_includes_default @@ -26316,13 +26896,16 @@ if ac_fn_c_try_run "$LINENO" then : ac_cv_func_vfork_works=yes -else $as_nop - ac_cv_func_vfork_works=no +else case e in #( + e) ac_cv_func_vfork_works=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 colorize_result "$ac_cv_func_vfork_works" ; } @@ -26391,8 +26974,9 @@ if test "x$ac_cv_have_decl_atomic_signal_fence" = xyes then : ac_have_decl=1 -else $as_nop - ac_have_decl=0 +else case e in #( + e) ac_have_decl=0 ;; +esac fi printf "%s\n" "#define HAVE_DECL_ATOMIC_SIGNAL_FENCE $ac_have_decl" >>confdefs.h @@ -27508,8 +28092,8 @@ if test ${rb_cv_getcwd_malloc+y} then : printf %s "(cached) " >&6 -else $as_nop - if test "$cross_compiling" = yes +else case e in #( + e) if test "$cross_compiling" = yes then : case $target_os in #( linux*|darwin*|*bsd|cygwin*|msys*|mingw*|mswin*) : @@ -27517,8 +28101,8 @@ *) : rb_cv_getcwd_malloc=no ;; esac -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -27544,13 +28128,16 @@ if ac_fn_c_try_run "$LINENO" then : rb_cv_getcwd_malloc=yes -else $as_nop - rb_cv_getcwd_malloc=no +else case e in #( + e) rb_cv_getcwd_malloc=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_getcwd_malloc" >&5 colorize_result "$rb_cv_getcwd_malloc" ; } @@ -27592,8 +28179,8 @@ if test ${rb_cv_builtin___builtin_alloca_with_align+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo; int @@ -27607,11 +28194,13 @@ if ac_fn_c_try_link "$LINENO" then : rb_cv_builtin___builtin_alloca_with_align=yes -else $as_nop - rb_cv_builtin___builtin_alloca_with_align=no +else case e in #( + e) rb_cv_builtin___builtin_alloca_with_align=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext + conftest$ac_exeext conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_alloca_with_align" >&5 colorize_result "$rb_cv_builtin___builtin_alloca_with_align" ; } @@ -27627,8 +28216,8 @@ if test ${rb_cv_builtin___builtin_assume_aligned+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo; int @@ -27642,11 +28231,13 @@ if ac_fn_c_try_link "$LINENO" then : rb_cv_builtin___builtin_assume_aligned=yes -else $as_nop - rb_cv_builtin___builtin_assume_aligned=no +else case e in #( + e) rb_cv_builtin___builtin_assume_aligned=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext + conftest$ac_exeext conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_assume_aligned" >&5 colorize_result "$rb_cv_builtin___builtin_assume_aligned" ; } @@ -27662,8 +28253,8 @@ if test ${rb_cv_builtin___builtin_bswap16+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo; int @@ -27677,11 +28268,13 @@ if ac_fn_c_try_link "$LINENO" then : rb_cv_builtin___builtin_bswap16=yes -else $as_nop - rb_cv_builtin___builtin_bswap16=no +else case e in #( + e) rb_cv_builtin___builtin_bswap16=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext + conftest$ac_exeext conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_bswap16" >&5 colorize_result "$rb_cv_builtin___builtin_bswap16" ; } @@ -27697,8 +28290,8 @@ if test ${rb_cv_builtin___builtin_bswap32+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo; int @@ -27712,11 +28305,13 @@ if ac_fn_c_try_link "$LINENO" then : rb_cv_builtin___builtin_bswap32=yes -else $as_nop - rb_cv_builtin___builtin_bswap32=no +else case e in #( + e) rb_cv_builtin___builtin_bswap32=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext + conftest$ac_exeext conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_bswap32" >&5 colorize_result "$rb_cv_builtin___builtin_bswap32" ; } @@ -27732,8 +28327,8 @@ if test ${rb_cv_builtin___builtin_bswap64+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo; int @@ -27747,11 +28342,13 @@ if ac_fn_c_try_link "$LINENO" then : rb_cv_builtin___builtin_bswap64=yes -else $as_nop - rb_cv_builtin___builtin_bswap64=no +else case e in #( + e) rb_cv_builtin___builtin_bswap64=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext + conftest$ac_exeext conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_bswap64" >&5 colorize_result "$rb_cv_builtin___builtin_bswap64" ; } @@ -27767,8 +28364,8 @@ if test ${rb_cv_builtin___builtin_popcount+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo; int @@ -27782,11 +28379,13 @@ if ac_fn_c_try_link "$LINENO" then : rb_cv_builtin___builtin_popcount=yes -else $as_nop - rb_cv_builtin___builtin_popcount=no +else case e in #( + e) rb_cv_builtin___builtin_popcount=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext + conftest$ac_exeext conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_popcount" >&5 colorize_result "$rb_cv_builtin___builtin_popcount" ; } @@ -27802,8 +28401,8 @@ if test ${rb_cv_builtin___builtin_popcountll+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo; int @@ -27817,11 +28416,13 @@ if ac_fn_c_try_link "$LINENO" then : rb_cv_builtin___builtin_popcountll=yes -else $as_nop - rb_cv_builtin___builtin_popcountll=no +else case e in #( + e) rb_cv_builtin___builtin_popcountll=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext + conftest$ac_exeext conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_popcountll" >&5 colorize_result "$rb_cv_builtin___builtin_popcountll" ; } @@ -27837,8 +28438,8 @@ if test ${rb_cv_builtin___builtin_clz+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo; int @@ -27852,11 +28453,13 @@ if ac_fn_c_try_link "$LINENO" then : rb_cv_builtin___builtin_clz=yes -else $as_nop - rb_cv_builtin___builtin_clz=no +else case e in #( + e) rb_cv_builtin___builtin_clz=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext + conftest$ac_exeext conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_clz" >&5 colorize_result "$rb_cv_builtin___builtin_clz" ; } @@ -27872,8 +28475,8 @@ if test ${rb_cv_builtin___builtin_clzl+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo; int @@ -27887,11 +28490,13 @@ if ac_fn_c_try_link "$LINENO" then : rb_cv_builtin___builtin_clzl=yes -else $as_nop - rb_cv_builtin___builtin_clzl=no +else case e in #( + e) rb_cv_builtin___builtin_clzl=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext + conftest$ac_exeext conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_clzl" >&5 colorize_result "$rb_cv_builtin___builtin_clzl" ; } @@ -27907,8 +28512,8 @@ if test ${rb_cv_builtin___builtin_clzll+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo; int @@ -27922,11 +28527,13 @@ if ac_fn_c_try_link "$LINENO" then : rb_cv_builtin___builtin_clzll=yes -else $as_nop - rb_cv_builtin___builtin_clzll=no +else case e in #( + e) rb_cv_builtin___builtin_clzll=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext + conftest$ac_exeext conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_clzll" >&5 colorize_result "$rb_cv_builtin___builtin_clzll" ; } @@ -27942,8 +28549,8 @@ if test ${rb_cv_builtin___builtin_ctz+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo; int @@ -27957,11 +28564,13 @@ if ac_fn_c_try_link "$LINENO" then : rb_cv_builtin___builtin_ctz=yes -else $as_nop - rb_cv_builtin___builtin_ctz=no +else case e in #( + e) rb_cv_builtin___builtin_ctz=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext + conftest$ac_exeext conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_ctz" >&5 colorize_result "$rb_cv_builtin___builtin_ctz" ; } @@ -27977,8 +28586,8 @@ if test ${rb_cv_builtin___builtin_ctzll+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo; int @@ -27992,11 +28601,13 @@ if ac_fn_c_try_link "$LINENO" then : rb_cv_builtin___builtin_ctzll=yes -else $as_nop - rb_cv_builtin___builtin_ctzll=no +else case e in #( + e) rb_cv_builtin___builtin_ctzll=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext + conftest$ac_exeext conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_ctzll" >&5 colorize_result "$rb_cv_builtin___builtin_ctzll" ; } @@ -28012,8 +28623,8 @@ if test ${rb_cv_builtin___builtin_add_overflow+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo; int @@ -28027,11 +28638,13 @@ if ac_fn_c_try_link "$LINENO" then : rb_cv_builtin___builtin_add_overflow=yes -else $as_nop - rb_cv_builtin___builtin_add_overflow=no +else case e in #( + e) rb_cv_builtin___builtin_add_overflow=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext + conftest$ac_exeext conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_add_overflow" >&5 colorize_result "$rb_cv_builtin___builtin_add_overflow" ; } @@ -28047,8 +28660,8 @@ if test ${rb_cv_builtin___builtin_sub_overflow+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo; int @@ -28062,11 +28675,13 @@ if ac_fn_c_try_link "$LINENO" then : rb_cv_builtin___builtin_sub_overflow=yes -else $as_nop - rb_cv_builtin___builtin_sub_overflow=no +else case e in #( + e) rb_cv_builtin___builtin_sub_overflow=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext + conftest$ac_exeext conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_sub_overflow" >&5 colorize_result "$rb_cv_builtin___builtin_sub_overflow" ; } @@ -28082,8 +28697,8 @@ if test ${rb_cv_builtin___builtin_mul_overflow+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo; int @@ -28097,11 +28712,13 @@ if ac_fn_c_try_link "$LINENO" then : rb_cv_builtin___builtin_mul_overflow=yes -else $as_nop - rb_cv_builtin___builtin_mul_overflow=no +else case e in #( + e) rb_cv_builtin___builtin_mul_overflow=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext + conftest$ac_exeext conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_mul_overflow" >&5 colorize_result "$rb_cv_builtin___builtin_mul_overflow" ; } @@ -28117,8 +28734,8 @@ if test ${rb_cv_builtin___builtin_mul_overflow_p+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo; int @@ -28132,11 +28749,13 @@ if ac_fn_c_try_link "$LINENO" then : rb_cv_builtin___builtin_mul_overflow_p=yes -else $as_nop - rb_cv_builtin___builtin_mul_overflow_p=no +else case e in #( + e) rb_cv_builtin___builtin_mul_overflow_p=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext + conftest$ac_exeext conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_mul_overflow_p" >&5 colorize_result "$rb_cv_builtin___builtin_mul_overflow_p" ; } @@ -28152,8 +28771,8 @@ if test ${rb_cv_builtin___builtin_constant_p+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo; int @@ -28167,11 +28786,13 @@ if ac_fn_c_try_link "$LINENO" then : rb_cv_builtin___builtin_constant_p=yes -else $as_nop - rb_cv_builtin___builtin_constant_p=no +else case e in #( + e) rb_cv_builtin___builtin_constant_p=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext + conftest$ac_exeext conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_constant_p" >&5 colorize_result "$rb_cv_builtin___builtin_constant_p" ; } @@ -28187,8 +28808,8 @@ if test ${rb_cv_builtin___builtin_choose_expr+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo; int @@ -28205,11 +28826,13 @@ if ac_fn_c_try_link "$LINENO" then : rb_cv_builtin___builtin_choose_expr=yes -else $as_nop - rb_cv_builtin___builtin_choose_expr=no +else case e in #( + e) rb_cv_builtin___builtin_choose_expr=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext + conftest$ac_exeext conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_choose_expr" >&5 colorize_result "$rb_cv_builtin___builtin_choose_expr" ; } @@ -28228,8 +28851,8 @@ if test ${rb_cv_builtin___builtin_choose_expr_constant_p+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo; int @@ -28246,11 +28869,13 @@ if ac_fn_c_try_link "$LINENO" then : rb_cv_builtin___builtin_choose_expr_constant_p=yes -else $as_nop - rb_cv_builtin___builtin_choose_expr_constant_p=no +else case e in #( + e) rb_cv_builtin___builtin_choose_expr_constant_p=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext + conftest$ac_exeext conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_choose_expr_constant_p" >&5 colorize_result "$rb_cv_builtin___builtin_choose_expr_constant_p" ; } @@ -28268,8 +28893,8 @@ if test ${rb_cv_builtin___builtin_types_compatible_p+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo; int @@ -28283,11 +28908,13 @@ if ac_fn_c_try_link "$LINENO" then : rb_cv_builtin___builtin_types_compatible_p=yes -else $as_nop - rb_cv_builtin___builtin_types_compatible_p=no +else case e in #( + e) rb_cv_builtin___builtin_types_compatible_p=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext + conftest$ac_exeext conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_types_compatible_p" >&5 colorize_result "$rb_cv_builtin___builtin_types_compatible_p" ; } @@ -28303,8 +28930,8 @@ if test ${rb_cv_builtin___builtin_trap+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo; int @@ -28318,11 +28945,13 @@ if ac_fn_c_try_link "$LINENO" then : rb_cv_builtin___builtin_trap=yes -else $as_nop - rb_cv_builtin___builtin_trap=no +else case e in #( + e) rb_cv_builtin___builtin_trap=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext + conftest$ac_exeext conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_trap" >&5 colorize_result "$rb_cv_builtin___builtin_trap" ; } @@ -28338,8 +28967,8 @@ if test ${rb_cv_builtin___builtin_expect+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo; int @@ -28353,11 +28982,13 @@ if ac_fn_c_try_link "$LINENO" then : rb_cv_builtin___builtin_expect=yes -else $as_nop - rb_cv_builtin___builtin_expect=no +else case e in #( + e) rb_cv_builtin___builtin_expect=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext + conftest$ac_exeext conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_expect" >&5 colorize_result "$rb_cv_builtin___builtin_expect" ; } @@ -28377,8 +29008,8 @@ if test ${rb_cv_use___builtin_mul_overflow_long_long+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -28397,11 +29028,13 @@ if ac_fn_c_try_link "$LINENO" then : rb_cv_use___builtin_mul_overflow_long_long=yes -else $as_nop - rb_cv_use___builtin_mul_overflow_long_long=no +else case e in #( + e) rb_cv_use___builtin_mul_overflow_long_long=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext + conftest$ac_exeext conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_use___builtin_mul_overflow_long_long" >&5 colorize_result "$rb_cv_use___builtin_mul_overflow_long_long" ; } @@ -28423,8 +29056,8 @@ if test ${rb_cv_gnu_qsort_r+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -28443,11 +29076,13 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_gnu_qsort_r=yes -else $as_nop - rb_cv_gnu_qsort_r=no +else case e in #( + e) rb_cv_gnu_qsort_r=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_gnu_qsort_r" >&5 colorize_result "$rb_cv_gnu_qsort_r" ; } @@ -28456,8 +29091,8 @@ if test ${rb_cv_bsd_qsort_r+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -28475,11 +29110,13 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_bsd_qsort_r=yes -else $as_nop - rb_cv_bsd_qsort_r=no +else case e in #( + e) rb_cv_bsd_qsort_r=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_bsd_qsort_r" >&5 colorize_result "$rb_cv_bsd_qsort_r" ; } @@ -28505,8 +29142,8 @@ if test ${rb_cv_atan2_inf_c99+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) if test $ac_cv_func_atan2f:$ac_cv_func_atan2l = yes:yes then : @@ -28519,8 +29156,8 @@ rb_cv_atan2_inf_c99=yes ;; esac -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -28545,18 +29182,22 @@ if ac_fn_c_try_run "$LINENO" then : rb_cv_atan2_inf_c99=yes -else $as_nop - rb_cv_atan2_inf_c99=no +else case e in #( + e) rb_cv_atan2_inf_c99=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -else $as_nop - rb_cv_atan2_inf_c99=no +else case e in #( + e) rb_cv_atan2_inf_c99=no ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_atan2_inf_c99" >&5 colorize_result "$rb_cv_atan2_inf_c99" ; } @@ -28577,16 +29218,22 @@ if test ${ac_cv_lib_rt_clock_gettime+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lrt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -char clock_gettime (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char clock_gettime (void); int main (void) { @@ -28598,12 +29245,14 @@ if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_rt_clock_gettime=yes -else $as_nop - ac_cv_lib_rt_clock_gettime=no +else case e in #( + e) ac_cv_lib_rt_clock_gettime=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 colorize_result "$ac_cv_lib_rt_clock_gettime" ; } @@ -28636,16 +29285,22 @@ if test ${ac_cv_lib_rt_timer_create+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lrt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -char timer_create (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char timer_create (void); int main (void) { @@ -28657,12 +29312,14 @@ if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_rt_timer_create=yes -else $as_nop - ac_cv_lib_rt_timer_create=no +else case e in #( + e) ac_cv_lib_rt_timer_create=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_timer_create" >&5 colorize_result "$ac_cv_lib_rt_timer_create" ; } @@ -28679,16 +29336,22 @@ if test ${ac_cv_lib_rt_timer_settime+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lrt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -char timer_settime (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char timer_settime (void); int main (void) { @@ -28700,12 +29363,14 @@ if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_rt_timer_settime=yes -else $as_nop - ac_cv_lib_rt_timer_settime=no +else case e in #( + e) ac_cv_lib_rt_timer_settime=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_timer_settime" >&5 colorize_result "$ac_cv_lib_rt_timer_settime" ; } @@ -28737,8 +29402,8 @@ if test ${rb_cv_unsetenv_return_value+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -28754,10 +29419,12 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_unsetenv_return_value=yes -else $as_nop - rb_cv_unsetenv_return_value=no +else case e in #( + e) rb_cv_unsetenv_return_value=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_unsetenv_return_value" >&5 colorize_result "$rb_cv_unsetenv_return_value" ; } @@ -28791,8 +29458,8 @@ if test ${ac_cv_struct_tm+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include @@ -28810,10 +29477,12 @@ if ac_fn_c_try_compile "$LINENO" then : ac_cv_struct_tm=time.h -else $as_nop - ac_cv_struct_tm=sys/time.h +else case e in #( + e) ac_cv_struct_tm=sys/time.h ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 colorize_result "$ac_cv_struct_tm" ; } @@ -28845,8 +29514,9 @@ if test "x$ac_cv_have_decl_tzname" = xyes then : ac_have_decl=1 -else $as_nop - ac_have_decl=0 +else case e in #( + e) ac_have_decl=0 ;; +esac fi printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h @@ -28855,8 +29525,8 @@ if test ${ac_cv_var_tzname+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #if !HAVE_DECL_TZNAME @@ -28874,11 +29544,13 @@ if ac_fn_c_try_link "$LINENO" then : ac_cv_var_tzname=yes -else $as_nop - ac_cv_var_tzname=no +else case e in #( + e) ac_cv_var_tzname=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext + conftest$ac_exeext conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 colorize_result "$ac_cv_var_tzname" ; } @@ -28894,8 +29566,8 @@ if test ${rb_cv_member_struct_tm_tm_gmtoff+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _BSD_SOURCE @@ -28913,10 +29585,12 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_member_struct_tm_tm_gmtoff=yes -else $as_nop - rb_cv_member_struct_tm_tm_gmtoff=no +else case e in #( + e) rb_cv_member_struct_tm_tm_gmtoff=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_member_struct_tm_tm_gmtoff" >&5 colorize_result "$rb_cv_member_struct_tm_tm_gmtoff" ; } @@ -28932,8 +29606,8 @@ if test ${rb_cv_have_daylight+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int i; @@ -28948,11 +29622,13 @@ if ac_fn_c_try_link "$LINENO" then : rb_cv_have_daylight=yes -else $as_nop - rb_cv_have_daylight=no +else case e in #( + e) rb_cv_have_daylight=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext + conftest$ac_exeext conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_have_daylight" >&5 colorize_result "$rb_cv_have_daylight" ; } @@ -28969,12 +29645,12 @@ if test ${rb_cv_negative_time_t+y} then : printf %s "(cached) " >&6 -else $as_nop - if test "$cross_compiling" = yes +else case e in #( + e) if test "$cross_compiling" = yes then : rb_cv_negative_time_t=yes -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -29009,13 +29685,16 @@ if ac_fn_c_try_run "$LINENO" then : rb_cv_negative_time_t=yes -else $as_nop - rb_cv_negative_time_t=no +else case e in #( + e) rb_cv_negative_time_t=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_negative_time_t" >&5 colorize_result "$rb_cv_negative_time_t" ; } @@ -29034,12 +29713,12 @@ if test ${rb_cv_localtime_overflow+y} then : printf %s "(cached) " >&6 -else $as_nop - if test "$cross_compiling" = yes +else case e in #( + e) if test "$cross_compiling" = yes then : rb_cv_localtime_overflow=no -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -29078,13 +29757,16 @@ if ac_fn_c_try_run "$LINENO" then : rb_cv_localtime_overflow=yes -else $as_nop - rb_cv_localtime_overflow=no +else case e in #( + e) rb_cv_localtime_overflow=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_localtime_overflow" >&5 colorize_result "$rb_cv_localtime_overflow" ; } @@ -29102,8 +29784,8 @@ printf "%s\n" "#define POSIX_SIGNAL 1" >>confdefs.h -else $as_nop - +else case e in #( + e) ac_fn_c_check_func "$LINENO" "sigsetmask" "ac_cv_func_sigsetmask" if test "x$ac_cv_func_sigsetmask" = xyes then : @@ -29116,12 +29798,12 @@ if test ${rb_cv_bsd_signal+y} then : printf %s "(cached) " >&6 -else $as_nop - if test "$cross_compiling" = yes +else case e in #( + e) if test "$cross_compiling" = yes then : rb_cv_bsd_signal=$ac_cv_func_sigsetmask -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -29145,13 +29827,16 @@ if ac_fn_c_try_run "$LINENO" then : rb_cv_bsd_signal=yes -else $as_nop - rb_cv_bsd_signal=no +else case e in #( + e) rb_cv_bsd_signal=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_bsd_signal" >&5 colorize_result "$rb_cv_bsd_signal" ; } @@ -29162,7 +29847,8 @@ fi - + ;; +esac fi ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" "#include @@ -29188,8 +29874,8 @@ if test ${ac_cv_func_getpgrp_void+y} then : printf %s "(cached) " >&6 -else $as_nop - # Use it with a single arg. +else case e in #( + e) # Use it with a single arg. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default @@ -29204,11 +29890,13 @@ if ac_fn_c_try_compile "$LINENO" then : ac_cv_func_getpgrp_void=no -else $as_nop - ac_cv_func_getpgrp_void=yes +else case e in #( + e) ac_cv_func_getpgrp_void=yes ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5 colorize_result "$ac_cv_func_getpgrp_void" ; } @@ -29231,8 +29919,8 @@ if test ${ac_cv_func_setpgrp_void+y} then : printf %s "(cached) " >&6 -else $as_nop - # Call it with two arguments. +else case e in #( + e) # Call it with two arguments. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default @@ -29247,11 +29935,13 @@ if ac_fn_c_try_compile "$LINENO" then : ac_cv_func_setpgrp_void=no -else $as_nop - ac_cv_func_setpgrp_void=yes +else case e in #( + e) ac_cv_func_setpgrp_void=yes ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5 colorize_result "$ac_cv_func_setpgrp_void" ; } @@ -29305,8 +29995,8 @@ if test ${rb_cv_rshift_sign+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -29323,10 +30013,12 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_rshift_sign=yes -else $as_nop - rb_cv_rshift_sign=no +else case e in #( + e) rb_cv_rshift_sign=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_rshift_sign" >&5 colorize_result "$rb_cv_rshift_sign" ; } @@ -29336,11 +30028,12 @@ printf "%s\n" "#define RSHIFT(x,y) ((x)>>(int)(y))" >>confdefs.h -else $as_nop - +else case e in #( + e) printf "%s\n" "#define RSHIFT(x,y) (((x)<0) ? ~((~(x))>>(int)(y)) : (x)>>(int)(y))" >>confdefs.h - + ;; +esac fi if test "$ac_cv_func_copy_file_range" = no @@ -29351,12 +30044,12 @@ if test ${rb_cv_use_copy_file_range+y} then : printf %s "(cached) " >&6 -else $as_nop - if test "$cross_compiling" = yes +else case e in #( + e) if test "$cross_compiling" = yes then : rb_cv_use_copy_file_range=no -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -29390,13 +30083,16 @@ if ac_fn_c_try_run "$LINENO" then : rb_cv_use_copy_file_range=yes -else $as_nop - rb_cv_use_copy_file_range=no +else case e in #( + e) rb_cv_use_copy_file_range=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_use_copy_file_range" >&5 colorize_result "$rb_cv_use_copy_file_range" ; } @@ -29429,8 +30125,8 @@ if test ${rb_cv_have_sc_clk_tck+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -29445,11 +30141,13 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_have_sc_clk_tck=yes -else $as_nop - rb_cv_have_sc_clk_tck=no +else case e in #( + e) rb_cv_have_sc_clk_tck=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_have_sc_clk_tck" >&5 colorize_result "$rb_cv_have_sc_clk_tck" ; } @@ -29476,15 +30174,15 @@ CFLAGS="$new_cflags -arch $archs" LDFLAGS="$new_ldflags -arch $archs" - as_stack_grow_dir=`printf "%s\n" "rb_cv_stack_grow_dir_$archs" | $as_tr_sh` + as_stack_grow_dir=`printf "%s\n" "rb_cv_stack_grow_dir_$archs" | sed "$as_sed_sh"` { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack growing direction on $archs" >&5 printf %s "checking stack growing direction on $archs... " >&6; } if eval test \${$as_stack_grow_dir+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) case "$archs" in #( m68*|x86*|x64|i?86|ppc*|sparc*|alpha*|arm*|aarch*) : dir=-1 ;; #( @@ -29495,8 +30193,8 @@ if test "$cross_compiling" = yes then : dir=0 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* recurse to get rid of inlining */ @@ -29520,16 +30218,19 @@ if ac_fn_c_try_run "$LINENO" then : dir=-1 -else $as_nop - dir=+1 +else case e in #( + e) dir=+1 ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi ;; esac -eval $as_stack_grow_dir=\$dir +eval $as_stack_grow_dir=\$dir ;; +esac fi eval ac_res=\$$as_stack_grow_dir { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -29554,32 +30255,33 @@ for archs in ${universal_archnames}; do archs=`echo $archs | sed 's/=.*//'` - eval dir=\$rb_cv_stack_grow_dir_`printf "%s\n" "$archs" | $as_tr_sh` + eval dir=\$rb_cv_stack_grow_dir_`printf "%s\n" "$archs" | sed "$as_sed_sh"` test "Xdefined __${archs}__" = X || printf "#if %s\n" "defined __${archs}__" >>confdefs.h printf "%s\n" "#define STACK_GROW_DIRECTION $dir" >>confdefs.h test "Xdefined __${archs}__" = X || printf "#endif /* %s */\n" "defined __${archs}__" >>confdefs.h done -else $as_nop - +else case e in #( + e) printf "%s\n" "#define STACK_GROW_DIRECTION $stack_dir" >>confdefs.h - + ;; +esac fi -else $as_nop - +else case e in #( + e) - as_stack_grow_dir=`printf "%s\n" "rb_cv_stack_grow_dir_$target_cpu" | $as_tr_sh` + as_stack_grow_dir=`printf "%s\n" "rb_cv_stack_grow_dir_$target_cpu" | sed "$as_sed_sh"` { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack growing direction on $target_cpu" >&5 printf %s "checking stack growing direction on $target_cpu... " >&6; } if eval test \${$as_stack_grow_dir+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) case "$target_cpu" in #( m68*|x86*|x64|i?86|ppc*|sparc*|alpha*|arm*|aarch*) : dir=-1 ;; #( @@ -29590,8 +30292,8 @@ if test "$cross_compiling" = yes then : dir=0 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* recurse to get rid of inlining */ @@ -29615,16 +30317,19 @@ if ac_fn_c_try_run "$LINENO" then : dir=-1 -else $as_nop - dir=+1 +else case e in #( + e) dir=+1 ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi ;; esac -eval $as_stack_grow_dir=\$dir +eval $as_stack_grow_dir=\$dir ;; +esac fi eval ac_res=\$$as_stack_grow_dir { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -29633,7 +30338,8 @@ printf "%s\n" "#define STACK_GROW_DIRECTION $dir" >>confdefs.h - + ;; +esac fi @@ -29641,8 +30347,9 @@ if test ${with_coroutine+y} then : withval=$with_coroutine; coroutine_type=$withval -else $as_nop - coroutine_type= +else case e in #( + e) coroutine_type= ;; +esac fi case $coroutine_type in #( @@ -29781,17 +30488,18 @@ for ac_func in getcontext swapcontext makecontext do : - as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh` + as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes" then : cat >>confdefs.h <<_ACEOF -#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1 _ACEOF coroutine_type=ucontext -else $as_nop - coroutine_type=pthread; break - +else case e in #( + e) coroutine_type=pthread; break + ;; +esac fi done @@ -29831,8 +30539,8 @@ if test ${rb_cv_scalar_pthread_t+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -29853,11 +30561,13 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_scalar_pthread_t=yes -else $as_nop - rb_cv_scalar_pthread_t=no +else case e in #( + e) rb_cv_scalar_pthread_t=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_scalar_pthread_t" >&5 colorize_result "$rb_cv_scalar_pthread_t" ; } @@ -29866,11 +30576,12 @@ : # RUBY_CHECK_SIZEOF(pthread_t, [void* int long], [], [#include ]) -else $as_nop - +else case e in #( + e) printf "%s\n" "#define NON_SCALAR_THREAD_ID 1" >>confdefs.h - + ;; +esac fi ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield" if test "x$ac_cv_func_sched_yield" = xyes @@ -29984,8 +30695,8 @@ if test ${rb_cv_func_pthread_setname_np_arguments+y} then : printf %s "(cached) " >&6 -else $as_nop - rb_cv_func_pthread_setname_np_arguments= +else case e in #( + e) rb_cv_func_pthread_setname_np_arguments= # Linux,AIX, (pthread_self(), name) # NetBSD (pthread_self(), \"%s\", name) # Darwin (name) @@ -30019,7 +30730,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func_pthread_setname_np_arguments" >&5 colorize_result "$rb_cv_func_pthread_setname_np_arguments" ; } @@ -30059,8 +30771,8 @@ if test ${rb_cv_tls_specifier+y} then : printf %s "(cached) " >&6 -else $as_nop - rb_cv_tls_specifier=none +else case e in #( + e) rb_cv_tls_specifier=none save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $rb_cv_warnflags" if test "${ac_c_werror_flag+set}" @@ -30068,10 +30780,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -30105,12 +30818,14 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_tls_specifier" >&5 colorize_result "$rb_cv_tls_specifier" ; } @@ -30131,8 +30846,8 @@ if test ${rb_cv_ucontext_in_signal_h+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int @@ -30146,10 +30861,12 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_ucontext_in_signal_h=yes -else $as_nop - rb_cv_ucontext_in_signal_h=no +else case e in #( + e) rb_cv_ucontext_in_signal_h=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_ucontext_in_signal_h" >&5 colorize_result "$rb_cv_ucontext_in_signal_h" ; } @@ -30170,8 +30887,8 @@ if test ${rb_cv_mcontext_t_ptr+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -30191,10 +30908,12 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_mcontext_t_ptr=yes -else $as_nop - rb_cv_mcontext_t_ptr=no +else case e in #( + e) rb_cv_mcontext_t_ptr=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_mcontext_t_ptr" >&5 colorize_result "$rb_cv_mcontext_t_ptr" ; } @@ -30204,11 +30923,12 @@ printf "%s\n" "#define DEFINE_MCONTEXT_PTR(mc, uc) mcontext_t mc = (uc)->uc_mcontext" >>confdefs.h -else $as_nop - +else case e in #( + e) printf "%s\n" "#define DEFINE_MCONTEXT_PTR(mc, uc) mcontext_t *mc = &(uc)->uc_mcontext" >>confdefs.h - + ;; +esac fi if test x"$THREAD_MODEL" = xpthread then : @@ -30239,12 +30959,12 @@ if test ${rb_cv_fork_with_pthread+y} then : printf %s "(cached) " >&6 -else $as_nop - if test "$cross_compiling" = yes +else case e in #( + e) if test "$cross_compiling" = yes then : rb_cv_fork_with_pthread=yes -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -30307,13 +31027,16 @@ if ac_fn_c_try_run "$LINENO" then : rb_cv_fork_with_pthread=yes -else $as_nop - rb_cv_fork_with_pthread=no +else case e in #( + e) rb_cv_fork_with_pthread=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_fork_with_pthread" >&5 colorize_result "$rb_cv_fork_with_pthread" ; } @@ -30337,8 +31060,8 @@ if test ${rb_cv_const_page_size+y} then : printf %s "(cached) " >&6 -else $as_nop - malloc_headers=`sed -n '/MALLOC_HEADERS_BEGIN/,/MALLOC_HEADERS_END/p' ${srcdir}/gc.c` +else case e in #( + e) malloc_headers=`sed -n '/MALLOC_HEADERS_BEGIN/,/MALLOC_HEADERS_END/p' ${srcdir}/gc.c` cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $malloc_headers @@ -30355,10 +31078,12 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_const_page_size=yes -else $as_nop - rb_cv_const_page_size=no +else case e in #( + e) rb_cv_const_page_size=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_const_page_size" >&5 colorize_result "$rb_cv_const_page_size" ; } @@ -30368,10 +31093,11 @@ then : printf "%s\n" "#define HAVE_CONST_PAGE_SIZE 1" >>confdefs.h -else $as_nop - printf "%s\n" "#define HAVE_CONST_PAGE_SIZE 0" >>confdefs.h - +else case e in #( + e) printf "%s\n" "#define HAVE_CONST_PAGE_SIZE 0" >>confdefs.h + ;; +esac fi if test "x$ac_cv_func_ioctl" = xyes @@ -30382,8 +31108,8 @@ if test ${rb_cv_ioctl_request_type+y} then : printf %s "(cached) " >&6 -else $as_nop - rb_cv_ioctl_request_type=no +else case e in #( + e) rb_cv_ioctl_request_type=no for type in "unsigned long:ULONG_MAX" int:INT_MAX; do max=`echo $type | sed 's/.*://'` type=`echo $type | sed 's/:.*//'` @@ -30394,10 +31120,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -30434,13 +31161,15 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi test "x$rb_cv_ioctl_request_type" = xno || break - done + done ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_ioctl_request_type" >&5 colorize_result "$rb_cv_ioctl_request_type" ; } @@ -30512,16 +31241,22 @@ if test ${ac_cv_lib_z_uncompress+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lz $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -char uncompress (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char uncompress (void); int main (void) { @@ -30533,12 +31268,14 @@ if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_z_uncompress=yes -else $as_nop - ac_cv_lib_z_uncompress=no +else case e in #( + e) ac_cv_lib_z_uncompress=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5 colorize_result "$ac_cv_lib_z_uncompress" ; } @@ -30582,10 +31319,11 @@ as_fn_error $? "Not ELF" "$LINENO" 5 -else $as_nop - +else case e in #( + e) LDFLAGS="$LDFLAGS -rdynamic" - + ;; +esac fi ;; #( *) : ;; @@ -30638,8 +31376,8 @@ esac ;; esac -else $as_nop - +else case e in #( + e) case "$target_os" in #( solaris*|irix*) : CCDLFLAGS="$CCDLFLAGS -KPIC" ;; #( @@ -30650,7 +31388,8 @@ *) : : ${CCDLFLAGS=""} ;; esac - + ;; +esac fi } @@ -30702,10 +31441,11 @@ fi -else $as_nop - +else case e in #( + e) : ${LDSHARED='$(CC) -G'} - + ;; +esac fi if test "$ac_cv_sizeof_voidp" = 8 then : @@ -30713,11 +31453,12 @@ : ${LIBPATHENV=LD_LIBRARY_PATH_64} : ${PRELOADENV=LD_PRELOAD_64} -else $as_nop - +else case e in #( + e) : ${LIBPATHENV=LD_LIBRARY_PATH_32} : ${PRELOADENV=LD_PRELOAD_32} - + ;; +esac fi rb_cv_dlopen=yes ;; #( sunos*) : @@ -30769,10 +31510,11 @@ LDFLAGS="$LDFLAGS -rdynamic" DLDFLAGS="$DLDFLAGS "'-Wl,-soname,$@' -else $as_nop - +else case e in #( + e) test "$GCC" = yes && test "$rb_cv_prog_gnu_ld" = yes || LDSHARED='$(LD) -Bshareable' - + ;; +esac fi rb_cv_dlopen=yes ;; #( openbsd*|mirbsd*) : @@ -30811,10 +31553,11 @@ LDSHARED="$LDSHARED ${linker_flag}-G -shared" -else $as_nop - +else case e in #( + e) LDSHARED="$LDSHARED ${linker_flag}-G" - + ;; +esac fi EXTDLDFLAGS='-e$(TARGET_ENTRY)' XLDFLAGS="${linker_flag}"'-bE:$(ARCHFILE)'" ${linker_flag}-brtl" @@ -30875,10 +31618,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -30898,10 +31642,11 @@ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } -else $as_nop - flag= +else case e in #( + e) flag= { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 - printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } + printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext @@ -30913,10 +31658,11 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi LDFLAGS="$save_LDFLAGS" save_LDFLAGS= @@ -30947,8 +31693,8 @@ esac done -else $as_nop - +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } # RUBY_APPEND_OPTIONS(ADDITIONAL_DLDFLAGS) @@ -30962,7 +31708,8 @@ ADDITIONAL_DLDFLAGS="$ADDITIONAL_DLDFLAGS ${rb_opt}" ;; esac done - + ;; +esac fi rm -fr conftest.* done @@ -31015,16 +31762,22 @@ if test ${ac_cv_lib_procstat_procstat_open_sysctl+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lprocstat $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -char procstat_open_sysctl (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char procstat_open_sysctl (void); int main (void) { @@ -31036,12 +31789,14 @@ if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_procstat_procstat_open_sysctl=yes -else $as_nop - ac_cv_lib_procstat_procstat_open_sysctl=no +else case e in #( + e) ac_cv_lib_procstat_procstat_open_sysctl=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_procstat_procstat_open_sysctl" >&5 colorize_result "$ac_cv_lib_procstat_procstat_open_sysctl" ; } @@ -31094,16 +31849,22 @@ if test ${ac_cv_lib_execinfo_backtrace+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lexecinfo $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -char backtrace (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char backtrace (void); int main (void) { @@ -31115,12 +31876,14 @@ if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_execinfo_backtrace=yes -else $as_nop - ac_cv_lib_execinfo_backtrace=no +else case e in #( + e) ac_cv_lib_execinfo_backtrace=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_execinfo_backtrace" >&5 colorize_result "$ac_cv_lib_execinfo_backtrace" ; } @@ -31189,16 +31952,22 @@ if test ${ac_cv_lib_execinfo_backtrace+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lexecinfo $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -char backtrace (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char backtrace (void); int main (void) { @@ -31210,12 +31979,14 @@ if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_execinfo_backtrace=yes -else $as_nop - ac_cv_lib_execinfo_backtrace=no +else case e in #( + e) ac_cv_lib_execinfo_backtrace=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_execinfo_backtrace" >&5 colorize_result "$ac_cv_lib_execinfo_backtrace" ; } @@ -31232,16 +32003,22 @@ if test ${ac_cv_lib_unwind_unw_backtrace+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lunwind $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -char unw_backtrace (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char unw_backtrace (void); int main (void) { @@ -31253,12 +32030,14 @@ if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_unwind_unw_backtrace=yes -else $as_nop - ac_cv_lib_unwind_unw_backtrace=no +else case e in #( + e) ac_cv_lib_unwind_unw_backtrace=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_unw_backtrace" >&5 colorize_result "$ac_cv_lib_unwind_unw_backtrace" ; } @@ -31291,12 +32070,12 @@ if test ${rb_cv_broken_backtrace+y} then : printf %s "(cached) " >&6 -else $as_nop - if test "$cross_compiling" = yes +else case e in #( + e) if test "$cross_compiling" = yes then : rb_cv_broken_backtrace=no -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -31352,13 +32131,16 @@ if ac_fn_c_try_run "$LINENO" then : rb_cv_broken_backtrace=no -else $as_nop - rb_cv_broken_backtrace=yes +else case e in #( + e) rb_cv_broken_backtrace=yes ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_broken_backtrace" >&5 colorize_result "$rb_cv_broken_backtrace" ; } @@ -31377,8 +32159,9 @@ if test ${with_valgrind+y} then : withval=$with_valgrind; -else $as_nop - with_valgrind=yes +else case e in #( + e) with_valgrind=yes ;; +esac fi if test x$with_valgrind != xno @@ -31427,10 +32210,11 @@ load_relative=yes -else $as_nop - +else case e in #( + e) unset load_relative - + ;; +esac fi len=2 # .rb @@ -31473,11 +32257,12 @@ printf "%s\n" "${msg_result_other}-S -x${msg_reset}" >&6 ; } STRIP="${STRIP} -S -x" -else $as_nop - +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "${msg_result_other}none needed${msg_reset}" >&6 ; } - + ;; +esac fi fi @@ -31521,8 +32306,8 @@ setup="Setup.$target_os" -else $as_nop - +else case e in #( + e) setup= for file in "$srcdir"/ext/Setup.*; do case "$file" in #( @@ -31553,7 +32338,8 @@ setup= done : ${setup:=Setup} - + ;; +esac fi @@ -31583,10 +32369,11 @@ RUBY_EXEC_PREFIX="$prefix" -else $as_nop - +else case e in #( + e) RUBY_EXEC_PREFIX=$ac_default_prefix - + ;; +esac fi pat=`echo "${RUBY_EXEC_PREFIX}" | tr -c '\012' .`'\(.*\)' for var in bindir includedir libdir rubylibprefix; do @@ -31629,8 +32416,8 @@ printf "%s\n" "#define CROSS_COMPILING 1" >>confdefs.h -else $as_nop - +else case e in #( + e) MINIRUBY='./miniruby$(EXEEXT) -I$(srcdir)/lib -I.' MINIRUBY="$MINIRUBY"' -I$(EXTOUT)/common' PREP='miniruby$(EXEEXT)' @@ -31639,7 +32426,8 @@ XRUBY='$(RUNRUBY)' TEST_RUNNABLE=yes CROSS_COMPILING=no - + ;; +esac fi @@ -31674,8 +32462,9 @@ if test ${enable_multiarch+y} then : enableval=$enable_multiarch; multiarch= -else $as_nop - unset multiarch +else case e in #( + e) unset multiarch ;; +esac fi if test ${multiarch+set} @@ -31696,8 +32485,8 @@ if test ${with_soname+y} then : withval=$with_soname; RUBY_SO_NAME=$withval -else $as_nop - +else case e in #( + e) case "$target_os" in #( darwin*) : @@ -31720,7 +32509,8 @@ *) : RUBY_SO_NAME='$(RUBY_BASE_NAME)' ;; esac - + ;; +esac fi @@ -31784,10 +32574,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -31807,10 +32598,11 @@ no_as_needed=yes { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } -else $as_nop - no_as_needed=no +else case e in #( + e) no_as_needed=no { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 - printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } + printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext @@ -31822,10 +32614,11 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi LDFLAGS="$save_LDFLAGS" save_LDFLAGS= @@ -31867,10 +32660,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -31890,10 +32684,11 @@ no_undefined=yes { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } -else $as_nop - no_undefined=no +else case e in #( + e) no_undefined=no { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 - printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } + printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext @@ -31905,10 +32700,11 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi LDFLAGS="$save_LDFLAGS" save_LDFLAGS= @@ -31999,10 +32795,11 @@ # ELF platforms LIBRUBY_ALIASES='$(LIBRUBY_SONAME) lib$(RUBY_SO_NAME).$(SOEXT)' -else $as_nop - # a.out platforms +else case e in #( + e) # a.out platforms LIBRUBY_ALIASES="" - + ;; +esac fi ;; #( openbsd*|mirbsd*) : @@ -32032,10 +32829,11 @@ LIBRUBY_RPATHFLAGS="-R${libprefix}" LIBRUBY_RELATIVE=yes -else $as_nop - +else case e in #( + e) LIBRUBY_RPATHFLAGS='-R${libdir}' - + ;; +esac fi ;; #( aix*) : @@ -32101,8 +32899,9 @@ if test ${enable_pie+y} then : enableval=$enable_pie; pie=$enableval -else $as_nop - pie= +else case e in #( + e) pie= ;; +esac fi if test "$GCC" = yes -a -z "$EXTSTATIC" -a "x$pie" != xno @@ -32118,10 +32917,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -32142,10 +32942,11 @@ pie=yes { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } -else $as_nop - pie=no +else case e in #( + e) pie=no { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 - printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } + printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -32156,10 +32957,11 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi if test "$pie" = yes @@ -32184,10 +32986,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes @@ -32207,10 +33010,11 @@ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } -else $as_nop - pie= +else case e in #( + e) pie= { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 - printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } + printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext @@ -32222,10 +33026,11 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi LDFLAGS="$save_LDFLAGS" save_LDFLAGS= @@ -32309,12 +33114,13 @@ then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } -else $as_nop - XRUBY_LIBPATHENV_WRAPPER='exe/$(PROGRAM)' +else case e in #( + e) XRUBY_LIBPATHENV_WRAPPER='exe/$(PROGRAM)' { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } - + ;; +esac fi ;; esac @@ -32323,8 +33129,9 @@ if test ${enable_dtrace+y} then : enableval=$enable_dtrace; enable_dtrace=$enableval -else $as_nop - enable_dtrace=auto +else case e in #( + e) enable_dtrace=auto ;; +esac fi @@ -32338,8 +33145,8 @@ if test ${rb_cv_dtrace_available+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) echo "provider conftest{ probe fire(); };" > conftest_provider.d rb_cv_dtrace_available=no for rb_dtrace_opt in "-xnolibs" "" @@ -32347,8 +33154,9 @@ if $DTRACE $rb_dtrace_opt -h -o conftest_provider.h -s conftest_provider.d >/dev/null 2>/dev/null then : -else $as_nop - continue +else case e in #( + e) continue ;; +esac fi cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -32364,8 +33172,9 @@ if ac_fn_c_try_compile "$LINENO" then : -else $as_nop - continue +else case e in #( + e) continue ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext # DTrace is available on the system @@ -32374,7 +33183,8 @@ done rm -f conftest.co conftest_provider.dho - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_dtrace_available" >&5 colorize_result "$rb_cv_dtrace_available" ; } @@ -32423,8 +33233,8 @@ if test ${rb_cv_prog_dtrace_g+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) rb_cv_prog_dtrace_g=no if { cat >conftest_provider.d <<_PROBES && @@ -32463,10 +33273,11 @@ rb_cv_prog_dtrace_g=yes -else $as_nop - +else case e in #( + e) rb_cv_prog_dtrace_g=rebuild - + ;; +esac fi fi @@ -32475,7 +33286,8 @@ fi rm -f conftest.co conftest_provider.dho - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_prog_dtrace_g" >&5 colorize_result "$rb_cv_prog_dtrace_g" ; } @@ -32539,8 +33351,8 @@ if test ${ac_cv_func___builtin_setjmp+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) ac_cv_func___builtin_setjmp=no for cast in "" "(void **)"; do save_CFLAGS="$CFLAGS" @@ -32550,10 +33362,11 @@ rb_c_werror_flag="$ac_c_werror_flag" -else $as_nop - +else case e in #( + e) unset rb_c_werror_flag - + ;; +esac fi ac_c_werror_flag=yes cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -32591,13 +33404,15 @@ ac_c_werror_flag="$rb_c_werror_flag" -else $as_nop - +else case e in #( + e) unset ac_c_werror_flag - + ;; +esac fi test "$ac_cv_func___builtin_setjmp" = no || break - done + done ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func___builtin_setjmp" >&5 colorize_result "$ac_cv_func___builtin_setjmp" ; } @@ -32608,8 +33423,8 @@ if test ${ac_cv_func__setjmpex+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -32630,11 +33445,13 @@ if ac_fn_c_try_compile "$LINENO" then : ac_cv_func__setjmpex=yes -else $as_nop - ac_cv_func__setjmpex=no +else case e in #( + e) ac_cv_func__setjmpex=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func__setjmpex" >&5 colorize_result "$ac_cv_func__setjmpex" ; } @@ -32650,8 +33467,8 @@ if test ${ac_cv_func__setjmp+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -32671,11 +33488,13 @@ if ac_fn_c_try_compile "$LINENO" then : ac_cv_func__setjmp=yes -else $as_nop - ac_cv_func__setjmp=no +else case e in #( + e) ac_cv_func__setjmp=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func__setjmp" >&5 colorize_result "$ac_cv_func__setjmp" ; } @@ -32691,8 +33510,8 @@ if test ${ac_cv_func_sigsetjmp+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -32712,11 +33531,13 @@ if ac_fn_c_try_compile "$LINENO" then : ac_cv_func_sigsetjmp=yes -else $as_nop - ac_cv_func_sigsetjmp=no +else case e in #( + e) ac_cv_func_sigsetjmp=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_sigsetjmp" >&5 colorize_result "$ac_cv_func_sigsetjmp" ; } @@ -32753,8 +33574,9 @@ *) : as_fn_error $? "invalid setjmp type: $withval" "$LINENO" 5 ;; esac -else $as_nop - unset setjmp_prefix +else case e in #( + e) unset setjmp_prefix ;; +esac fi setjmp_cast= @@ -32803,11 +33625,12 @@ esac setjmp_suffix= -else $as_nop - +else case e in #( + e) setjmp_prefix= setjmp_suffix= - + ;; +esac fi if test x$setjmp_prefix:$setjmp_sigmask = xsig: then : @@ -32841,8 +33664,9 @@ if test ${enable_install_doc+y} then : enableval=$enable_install_doc; install_doc=$enableval -else $as_nop - install_doc=yes +else case e in #( + e) install_doc=yes ;; +esac fi @@ -32850,25 +33674,28 @@ if test ${with_rdoc+y} then : withval=$with_rdoc; install_rdoc=`echo ,$withval, | sed 'y/,/ /;s/ ri / rdoc /;s/^ *//;s/ *$//'` -else $as_nop - +else case e in #( + e) # Check whether --enable-install-rdoc was given. if test ${enable_install_rdoc+y} then : enableval=$enable_install_rdoc; install_rdoc=$enableval -else $as_nop - install_rdoc=yes +else case e in #( + e) install_rdoc=yes ;; +esac fi - + ;; +esac fi # Check whether --enable-install-capi was given. if test ${enable_install_capi+y} then : enableval=$enable_install_capi; install_capi=$enableval -else $as_nop - install_capi=no +else case e in #( + e) install_capi=no ;; +esac fi @@ -32898,17 +33725,19 @@ CAPITARGET="capi" -else $as_nop - +else case e in #( + e) CAPITARGET="nodoc" - + ;; +esac fi -else $as_nop - +else case e in #( + e) RDOCTARGET="nodoc" CAPITARGET="nodoc" - + ;; +esac fi @@ -32930,13 +33759,15 @@ then : as_fn_error $? "must install either static or shared library" "$LINENO" 5 fi -else $as_nop - if test x"$enable_shared" = xyes +else case e in #( + e) if test x"$enable_shared" = xyes then : INSTALL_STATIC_LIBRARY=no -else $as_nop - INSTALL_STATIC_LIBRARY=yes -fi +else case e in #( + e) INSTALL_STATIC_LIBRARY=yes ;; +esac +fi ;; +esac fi @@ -32950,8 +33781,8 @@ if test ${ac_cv_prog_RUSTC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$RUSTC"; then +else case e in #( + e) if test -n "$RUSTC"; then ac_cv_prog_RUSTC="$RUSTC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -32974,7 +33805,8 @@ IFS=$as_save_IFS test -z "$ac_cv_prog_RUSTC" && ac_cv_prog_RUSTC="no" -fi +fi ;; +esac fi RUSTC=$ac_cv_prog_RUSTC if test -n "$RUSTC"; then @@ -33042,8 +33874,8 @@ if test ${enable_yjit+y} then : enableval=$enable_yjit; YJIT_SUPPORT=$enableval -else $as_nop - case "$YJIT_TARGET_OK:$YJIT_RUSTC_OK" in #( +else case e in #( + e) case "$YJIT_TARGET_OK:$YJIT_RUSTC_OK" in #( yes:yes) : YJIT_SUPPORT=yes @@ -33052,7 +33884,8 @@ YJIT_SUPPORT=no ;; esac - + ;; +esac fi @@ -33109,8 +33942,8 @@ if test ${ac_cv_prog_CARGO+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CARGO"; then +else case e in #( + e) if test -n "$CARGO"; then ac_cv_prog_CARGO="$CARGO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -33132,7 +33965,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi CARGO=$ac_cv_prog_CARGO if test -n "$CARGO"; then @@ -33154,8 +33988,8 @@ if test ${ac_cv_prog_ac_ct_CARGO+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CARGO"; then +else case e in #( + e) if test -n "$ac_ct_CARGO"; then ac_cv_prog_ac_ct_CARGO="$ac_ct_CARGO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -33177,7 +34011,8 @@ done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CARGO=$ac_cv_prog_ac_ct_CARGO if test -n "$ac_ct_CARGO"; then @@ -33270,15 +34105,16 @@ if test ${enable_rjit+y} then : enableval=$enable_rjit; RJIT_SUPPORT=$enableval -else $as_nop - case "$RJIT_TARGET_OK" in #( +else case e in #( + e) case "$RJIT_TARGET_OK" in #( yes) : RJIT_SUPPORT=yes ;; #( *) : RJIT_SUPPORT=no ;; esac - + ;; +esac fi @@ -33294,16 +34130,22 @@ if test ${ac_cv_lib_capstone_cs_disasm+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lcapstone $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -char cs_disasm (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char cs_disasm (void); int main (void) { @@ -33315,12 +34157,14 @@ if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_capstone_cs_disasm=yes -else $as_nop - ac_cv_lib_capstone_cs_disasm=no +else case e in #( + e) ac_cv_lib_capstone_cs_disasm=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_capstone_cs_disasm" >&5 colorize_result "$ac_cv_lib_capstone_cs_disasm" ; } @@ -33356,8 +34200,8 @@ if test ${rb_cv_symbol_prefix+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ extern void conftest_external(void) {} @@ -33375,12 +34219,14 @@ rb_cv_symbol_prefix=`$NM conftest.$ac_objext | sed -n '/.*T[ ]\([^ ]*\)conftest_external.*/!d;s//\1/p;q'` -else $as_nop - rb_cv_symbol_prefix='' +else case e in #( + e) rb_cv_symbol_prefix='' ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext test -n "$rb_cv_symbol_prefix" || rb_cv_symbol_prefix=NONE - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_symbol_prefix" >&5 colorize_result "$rb_cv_symbol_prefix" ; } @@ -33395,8 +34241,8 @@ if test ${rb_cv_symbols_in_emptylib+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) save_CC="$CC" eval CC=\"`printf "%s" "${DLDSHARED}" | sed 's/\$(CC)/${CC}/'`\" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -33423,7 +34269,8 @@ shift rb_cv_symbols_in_emptylib="$*" CC="$save_CC" - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_symbols_in_emptylib" >&5 colorize_result "$rb_cv_symbols_in_emptylib" ; } @@ -33518,10 +34365,11 @@ LIBRUBYARG_STATIC="$LIBRUBYARG_STATIC -framework Security" ;; esac -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } - + ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext # RUBY_APPEND_OPTION(XLDFLAGS) @@ -33617,12 +34465,13 @@ LIBRUBY='lib$(RUBY_SO_NAME).dll.a' -else $as_nop - +else case e in #( + e) LIBRUBY_SO=dummy LIBRUBY='lib$(RUBY_SO_NAME).a' LIBRUBYARG='-l$(RUBY_SO_NAME)' - + ;; +esac fi ;; #( wasi*) : @@ -33714,8 +34563,8 @@ if test "$gnumake" = yes then : NULLCMD=: -else $as_nop - +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for safe null command for ${MAKE-make}" >&5 printf %s "checking for safe null command for ${MAKE-make}... " >&6; } mkdir conftest.dir @@ -33741,7 +34590,8 @@ fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NULLCMD" >&5 colorize_result "$NULLCMD" ; } - + ;; +esac fi @@ -33753,8 +34603,8 @@ if test ${rb_cv_architecture_macros+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) mv confdefs.h confdefs1.h : > confdefs.h cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -33779,8 +34629,8 @@ rb_cv_architecture_macros=yes mv -f confdefs1.h confdefs.h -else $as_nop - +else case e in #( + e) rb_cv_architecture_macros=no archflagpat=`eval echo '"'"${ARCH_FLAG}"'"' | sed 's/[][|.*]/\\&/g'` new_cflags=`echo "$CFLAGS" | sed "s|$archflagpat"'||'` @@ -33808,17 +34658,20 @@ then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 - printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 + printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done mv -f confdefs1.h confdefs.h as_fn_error $? "failed" "$LINENO" 5 - + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_architecture_macros" >&5 colorize_result "$rb_cv_architecture_macros" ; } @@ -33827,8 +34680,8 @@ if test ${rb_cv_architecture_available+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include const char arch[] = __ARCHITECTURE__; @@ -33843,10 +34696,12 @@ if ac_fn_c_try_compile "$LINENO" then : rb_cv_architecture_available=yes -else $as_nop - rb_cv_architecture_available=no +else case e in #( + e) rb_cv_architecture_available=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_architecture_available" >&5 colorize_result "$rb_cv_architecture_available" ; } @@ -33990,8 +34845,9 @@ if test ${with_ruby_version+y} then : withval=$with_ruby_version; ruby_version=$withval -else $as_nop - ruby_version=full +else case e in #( + e) ruby_version=full ;; +esac fi unset RUBY_LIB_VERSION @@ -34023,10 +34879,11 @@ as_fn_error $? "No ruby version, No place for bundled libraries" "$LINENO" 5 -else $as_nop - +else case e in #( + e) RUBY_LIB_VERSION="${ruby_version}" - + ;; +esac fi @@ -34036,8 +34893,9 @@ if test ${with_sitedir+y} then : withval=$with_sitedir; sitedir=$withval -else $as_nop - sitedir='${rubylibprefix}/site_ruby' +else case e in #( + e) sitedir='${rubylibprefix}/site_ruby' ;; +esac fi sitelibdir='${sitedir}/${ruby_version}' @@ -34047,8 +34905,9 @@ if test ${with_sitearchdir+y} then : withval=$with_sitearchdir; sitearchdir=$withval -else $as_nop - sitearchdir=${multiarch+'${rubysitearchprefix}/site_ruby/${ruby_version}'}${multiarch-'${sitelibdir}/${sitearch}'} +else case e in #( + e) sitearchdir=${multiarch+'${rubysitearchprefix}/site_ruby/${ruby_version}'}${multiarch-'${sitelibdir}/${sitearch}'} ;; +esac fi @@ -34057,8 +34916,9 @@ if test ${with_vendordir+y} then : withval=$with_vendordir; vendordir=$withval -else $as_nop - vendordir='${rubylibprefix}/vendor_ruby' +else case e in #( + e) vendordir='${rubylibprefix}/vendor_ruby' ;; +esac fi vendorlibdir='${vendordir}/${ruby_version}' @@ -34068,8 +34928,9 @@ if test ${with_vendorarchdir+y} then : withval=$with_vendorarchdir; vendorarchdir=$withval -else $as_nop - vendorarchdir=${multiarch+'${rubysitearchprefix}/vendor_ruby/${ruby_version}'}${multiarch-'${vendorlibdir}/${sitearch}'} +else case e in #( + e) vendorarchdir=${multiarch+'${rubysitearchprefix}/vendor_ruby/${ruby_version}'}${multiarch-'${vendorlibdir}/${sitearch}'} ;; +esac fi @@ -34100,8 +34961,8 @@ printf "%s\n" "#define RUBY_PLATFORM_CPU __ARCHITECTURE__" >>confdefs.h -else $as_nop - +else case e in #( + e) for archs in ${universal_archnames}; do cpu=`echo $archs | sed 's/.*=//'` archs=`echo $archs | sed 's/=.*//'` @@ -34110,7 +34971,8 @@ test "Xdefined __${archs}__ &&! defined RUBY_PLATFORM_CPU" = X || printf "#endif /* %s */\n" "defined __${archs}__ &&! defined RUBY_PLATFORM_CPU" >>confdefs.h done - + ;; +esac fi ints='long int short' test "$ac_cv_type_long_long" = yes && ints="'long long' $ints" @@ -34125,17 +34987,18 @@ printf "%s\n" "#define RUBY_PLATFORM \"universal.\" RUBY_PLATFORM_CPU \"-\" RUBY_PLATFORM_OS" >>confdefs.h -else $as_nop - +else case e in #( + e) if test "${target_os}-${rb_cv_msvcrt}" = "mingw32-ucrt" then : arch="${target_cpu}-mingw-ucrt" -else $as_nop - +else case e in #( + e) arch="${target_cpu}-${target_os}" - + ;; +esac fi printf "%s\n" "#define RUBY_PLATFORM \"$arch\"" >>confdefs.h @@ -34147,7 +35010,8 @@ fi - + ;; +esac fi unset sitearch @@ -34179,8 +35043,9 @@ if test ${with_rubyhdrdir+y} then : withval=$with_rubyhdrdir; rubyhdrdir=$withval -else $as_nop - rubyhdrdir='${includedir}/${RUBY_VERSION_NAME}' +else case e in #( + e) rubyhdrdir='${includedir}/${RUBY_VERSION_NAME}' ;; +esac fi @@ -34189,8 +35054,9 @@ if test ${with_rubyarchhdrdir+y} then : withval=$with_rubyarchhdrdir; rubyarchhdrdir=$withval -else $as_nop - rubyarchhdrdir=${multiarch+'${archincludedir}/${RUBY_VERSION_NAME}'}${multiarch-'${rubyhdrdir}/${arch}'} +else case e in #( + e) rubyarchhdrdir=${multiarch+'${archincludedir}/${RUBY_VERSION_NAME}'}${multiarch-'${rubyhdrdir}/${arch}'} ;; +esac fi @@ -34199,8 +35065,9 @@ if test ${with_sitehdrdir+y} then : withval=$with_sitehdrdir; sitehdrdir=$withval -else $as_nop - sitehdrdir='${rubyhdrdir}/site_ruby' +else case e in #( + e) sitehdrdir='${rubyhdrdir}/site_ruby' ;; +esac fi @@ -34209,8 +35076,9 @@ if test ${with_sitearchhdrdir+y} then : withval=$with_sitearchhdrdir; sitearchhdrdir=$withval -else $as_nop - sitearchhdrdir=${multiarch+'${sitearchincludedir}/${RUBY_VERSION_NAME}/site_ruby'}${multiarch-'${sitehdrdir}/${sitearch}'} +else case e in #( + e) sitearchhdrdir=${multiarch+'${sitearchincludedir}/${RUBY_VERSION_NAME}/site_ruby'}${multiarch-'${sitehdrdir}/${sitearch}'} ;; +esac fi @@ -34219,8 +35087,9 @@ if test ${with_vendorhdrdir+y} then : withval=$with_vendorhdrdir; vendorhdrdir=$withval -else $as_nop - vendorhdrdir='${rubyhdrdir}/vendor_ruby' +else case e in #( + e) vendorhdrdir='${rubyhdrdir}/vendor_ruby' ;; +esac fi @@ -34229,8 +35098,9 @@ if test ${with_vendorarchhdrdir+y} then : withval=$with_vendorarchhdrdir; vendorarchhdrdir=$withval -else $as_nop - vendorarchhdrdir=${multiarch+'${sitearchincludedir}/${RUBY_VERSION_NAME}/vendor_ruby'}${multiarch-'${vendorhdrdir}/${sitearch}'} +else case e in #( + e) vendorarchhdrdir=${multiarch+'${sitearchincludedir}/${RUBY_VERSION_NAME}/vendor_ruby'}${multiarch-'${vendorhdrdir}/${sitearch}'} ;; +esac fi @@ -34255,8 +35125,8 @@ if test ${ac_cv_path_NROFF+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) if test -z "$NROFF"; then ac_path_NROFF_found=false # Loop through the user's path and test for each of PROGNAME-LIST @@ -34292,7 +35162,8 @@ ac_cv_path_NROFF=$NROFF fi - + ;; +esac fi if test -n "$ac_cv_path_NROFF" @@ -34300,10 +35171,11 @@ MANTYPE=doc -else $as_nop - +else case e in #( + e) MANTYPE=man - + ;; +esac fi fi @@ -34314,8 +35186,9 @@ if test ${enable_mkmf_verbose+y} then : enableval=$enable_mkmf_verbose; MKMF_VERBOSE=1 -else $as_nop - MKMF_VERBOSE=0 +else case e in #( + e) MKMF_VERBOSE=0 ;; +esac fi @@ -34324,8 +35197,9 @@ if test ${enable_rubygems+y} then : enableval=$enable_rubygems; enable_rubygems="$enableval" -else $as_nop - enable_rubygems=yes +else case e in #( + e) enable_rubygems=yes ;; +esac fi if test x"$enable_rubygems" = xno @@ -34333,10 +35207,11 @@ USE_RUBYGEMS=no -else $as_nop - +else case e in #( + e) USE_RUBYGEMS=yes - + ;; +esac fi @@ -34354,8 +35229,9 @@ if test "x$CONFIGURE_TTY" = xyes then : color=--color -else $as_nop - color= +else case e in #( + e) color= ;; +esac fi exec ${SHELL} ${tooldir}/ifchange $color "${config_h}" - ) >&6 || as_fn_error $? "failed to create ${config_h}" "$LINENO" 5 @@ -34413,10 +35289,11 @@ ${BASERUBY} -C "$srcdir" tool/file2lastrev.rb -q --revision.h > "$srcdir/revision.h" -else $as_nop - +else case e in #( + e) touch "$srcdir/revision.h" - + ;; +esac fi fi @@ -34436,8 +35313,9 @@ if test ${with_ruby_pc+y} then : withval=$with_ruby_pc; ruby_pc="$withval" -else $as_nop - ruby_pc="${RUBY_BASE_NAME}-${MAJOR}.${MINOR}.pc" +else case e in #( + e) ruby_pc="${RUBY_BASE_NAME}-${MAJOR}.${MINOR}.pc" ;; +esac fi @@ -34463,8 +35341,8 @@ # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the +# 'ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* 'ac_cv_foo' will be assigned the # following values. _ACEOF @@ -34494,14 +35372,14 @@ (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) - # `set' does not quote correctly, so add quotes: double-quote + # 'set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) - # `set' quotes correctly as required by POSIX, so do not add quotes. + # 'set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | @@ -34565,9 +35443,7 @@ t quote b any :quote -s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g -s/\[/\\&/g -s/\]/\\&/g +s/[][ `~#$^&*(){}\\|;'\''"<>?]/\\&/g s/\$/$$/g H :any @@ -34598,6 +35474,12 @@ LTLIBOBJS=$ac_ltlibobjs +# Check whether --enable-year2038 was given. +if test ${enable_year2038+y} +then : + enableval=$enable_year2038; +fi + : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 @@ -34627,7 +35509,6 @@ # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -as_nop=: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh @@ -34636,12 +35517,13 @@ # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST -else $as_nop - case `(set -o) 2>/dev/null` in #( +else case e in #( + e) case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; +esac ;; esac fi @@ -34713,7 +35595,7 @@ ;; esac -# We did not find ourselves, most probably we were run as `sh COMMAND' +# We did not find ourselves, most probably we were run as 'sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 @@ -34742,7 +35624,6 @@ } # as_fn_error - # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. @@ -34782,11 +35663,12 @@ { eval $1+=\$2 }' -else $as_nop - as_fn_append () +else case e in #( + e) as_fn_append () { eval $1=\$$1\$2 - } + } ;; +esac fi # as_fn_append # as_fn_arith ARG... @@ -34800,11 +35682,12 @@ { as_val=$(( $* )) }' -else $as_nop - as_fn_arith () +else case e in #( + e) as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` - } + } ;; +esac fi # as_fn_arith @@ -34887,9 +35770,9 @@ if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. + # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. + # In both cases, we have to default to 'cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then @@ -34970,10 +35853,12 @@ as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" +as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" +as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated # Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" +as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" +as_tr_sh="eval sed '$as_sed_sh'" # deprecated exec 6>&1 @@ -34989,7 +35874,7 @@ # values after options handling. ac_log=" This file was extended by $as_me, which was -generated by GNU Autoconf 2.71. Invocation command line was +generated by GNU Autoconf 2.72. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -35016,7 +35901,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ -\`$as_me' instantiates files and other configuration actions +'$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. @@ -35044,10 +35929,10 @@ ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ config.status -configured by $0, generated by GNU Autoconf 2.71, +configured by $0, generated by GNU Autoconf 2.72, with options \\"\$ac_cs_config\\" -Copyright (C) 2021 Free Software Foundation, Inc. +Copyright (C) 2023 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." @@ -35106,8 +35991,8 @@ ac_cs_silent=: ;; # This is an error. - -*) as_fn_error $? "unrecognized option: \`$1' -Try \`$0 --help' for more information." ;; + -*) as_fn_error $? "unrecognized option: '$1' +Try '$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; @@ -35164,7 +36049,7 @@ "$firstmf") CONFIG_FILES="$CONFIG_FILES $firstmf:$firsttmpl" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:template/Makefile.in" ;; - *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; esac done @@ -35182,7 +36067,7 @@ # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: -# after its creation but before its name has been assigned to `$tmp'. +# after its creation but before its name has been assigned to '$tmp'. $debug || { tmp= ac_tmp= @@ -35206,7 +36091,7 @@ # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. -# This happens for instance with `./config.status config.h'. +# This happens for instance with './config.status config.h'. if test -n "$CONFIG_FILES"; then @@ -35372,7 +36257,7 @@ esac case $ac_mode$ac_tag in :[FHL]*:*);; - :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac @@ -35394,19 +36279,19 @@ -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, - # because $ac_f cannot contain `:'. + # because $ac_f cannot contain ':'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || - as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done - # Let's still pretend it is `configure' which instantiates (i.e., don't + # Let's still pretend it is 'configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` @@ -35539,7 +36424,7 @@ esac _ACEOF -# Neutralize VPATH when `$srcdir' = `.'. +# Neutralize VPATH when '$srcdir' = '.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 @@ -35570,9 +36455,9 @@ { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' which seems to be undefined. Please make sure it is defined" >&5 -printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" @@ -35602,10 +36487,11 @@ VCS='$(GIT)' -else $as_nop - +else case e in #( + e) VCS='echo cannot' - + ;; +esac fi case "$VCS" in #( '$(GIT)'|git) : @@ -35637,10 +36523,11 @@ fi -else $as_nop - +else case e in #( + e) echo 'distclean-local::; @$(RM) GNUmakefile uncommon.mk' - + ;; +esac fi } > $tmpmk && if ! grep '^ruby:' $tmpmk > /dev/null then : @@ -35654,10 +36541,11 @@ echo "-include uncommon.mk" } > $tmpgmk -else $as_nop - +else case e in #( + e) tmpgmk=$tmpmk - + ;; +esac fi && test -z "`${MAKE-make} -f $tmpgmk info-program | grep '^PROGRAM=ruby$'`" && echo 'ruby: $(PROGRAM);' >> $tmpmk @@ -35707,20 +36595,22 @@ if test "$silent" = yes then : -else $as_nop - +else case e in #( + e) if ${FOLD+:} false then : -else $as_nop - +else case e in #( + e) if test "`echo abcdefg hijklmno | fold -s -w10 | sed 1d`" = hijklmno then : FOLD="fold" -else $as_nop - FOLD= +else case e in #( + e) FOLD= ;; +esac fi - + ;; +esac fi fold_width=`expr $COLUMNS - 30 2>/dev/null` || fold_width=50 @@ -35728,8 +36618,9 @@ if test $install_doc = yes then : DOCTARGETS=`echo " $RDOCTARGET $CAPITARGET " | sed 's/ nodoc //g;s/^ *//;s/ *$//'` -else $as_nop - DOCTARGETS=no +else case e in #( + e) DOCTARGETS=no ;; +esac fi echo "---" echo "Configuration summary for $RUBY_BASE_NAME version $MAJOR.$MINOR.$TEENY" @@ -35766,6 +36657,7 @@ config_summary "BASERUBY -v" "$BASERUBY_VERSION" echo "" echo "---" - + ;; +esac fi diff -Nru ruby3.3-3.3.13/cont.c ruby3.3-3.3.14/cont.c --- ruby3.3-3.3.13/cont.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/cont.c 2026-11-18 21:52:31.000000000 +0000 @@ -1651,9 +1651,9 @@ cont_restore_thread(cont); /* restore machine stack */ -#if defined(_M_AMD64) && !defined(__MINGW64__) +#if (defined(_M_AMD64) && !defined(__MINGW64__)) || defined(_M_ARM64) { - /* workaround for x64 SEH */ + /* workaround for x64 and arm64 SEH on Windows */ jmp_buf buf; setjmp(buf); _JUMP_BUFFER *bp = (void*)&cont->jmpbuf; diff -Nru ruby3.3-3.3.13/coroutine/arm64/Context.S ruby3.3-3.3.14/coroutine/arm64/Context.S --- ruby3.3-3.3.13/coroutine/arm64/Context.S 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/coroutine/arm64/Context.S 2026-11-18 21:52:31.000000000 +0000 @@ -18,6 +18,13 @@ .align 2 #endif +#if defined(_WIN32) +## Add more space for certain TEB values on each stack +#define TEB_OFFSET 0x20 +#else +#define TEB_OFFSET 0x00 +#endif + ## NOTE(PAC): Use we HINT mnemonics instead of PAC mnemonics to ## keep compatibility with those assemblers that don't support PAC. ## @@ -36,19 +43,34 @@ hint #34 #endif # Make space on the stack for caller registers - sub sp, sp, 0xa0 + sub sp, sp, 0xa0 + TEB_OFFSET # Save caller registers - stp d8, d9, [sp, 0x00] - stp d10, d11, [sp, 0x10] - stp d12, d13, [sp, 0x20] - stp d14, d15, [sp, 0x30] - stp x19, x20, [sp, 0x40] - stp x21, x22, [sp, 0x50] - stp x23, x24, [sp, 0x60] - stp x25, x26, [sp, 0x70] - stp x27, x28, [sp, 0x80] - stp x29, x30, [sp, 0x90] + stp d8, d9, [sp, 0x00 + TEB_OFFSET] + stp d10, d11, [sp, 0x10 + TEB_OFFSET] + stp d12, d13, [sp, 0x20 + TEB_OFFSET] + stp d14, d15, [sp, 0x30 + TEB_OFFSET] + stp x19, x20, [sp, 0x40 + TEB_OFFSET] + stp x21, x22, [sp, 0x50 + TEB_OFFSET] + stp x23, x24, [sp, 0x60 + TEB_OFFSET] + stp x25, x26, [sp, 0x70 + TEB_OFFSET] + stp x27, x28, [sp, 0x80 + TEB_OFFSET] + stp x29, x30, [sp, 0x90 + TEB_OFFSET] + +#if defined(_WIN32) + # Save certain values from Thread Environment Block (TEB) + # x18 points to the TEB on Windows + # Read TeStackBase and TeStackLimit at ksarm64.h from TEB + ldp x5, x6, [x18, #0x08] + # Save them + stp x5, x6, [sp, #0x00] + # Read TeDeallocationStack at ksarm64.h from TEB + ldr x5, [x18, #0x1478] + # Read TeFiberData at ksarm64.h from TEB + ldr x6, [x18, #0x20] + # Save current fiber data and deallocation stack + stp x5, x6, [sp, #0x10] +#endif # Save stack pointer to x0 (first argument) mov x2, sp @@ -58,20 +80,33 @@ ldr x3, [x1, 0] mov sp, x3 +#if defined(_WIN32) + # Restore stack base and limit + ldp x5, x6, [sp, #0x00] + # Write TeStackBase and TeStackLimit at ksarm64.h to TEB + stp x5, x6, [x18, #0x08] + # Restore fiber data and deallocation stack + ldp x5, x6, [sp, #0x10] + # Write TeDeallocationStack at ksarm64.h to TEB + str x5, [x18, #0x1478] + # Write TeFiberData at ksarm64.h to TEB + str x6, [x18, #0x20] +#endif + # Restore caller registers - ldp d8, d9, [sp, 0x00] - ldp d10, d11, [sp, 0x10] - ldp d12, d13, [sp, 0x20] - ldp d14, d15, [sp, 0x30] - ldp x19, x20, [sp, 0x40] - ldp x21, x22, [sp, 0x50] - ldp x23, x24, [sp, 0x60] - ldp x25, x26, [sp, 0x70] - ldp x27, x28, [sp, 0x80] - ldp x29, x30, [sp, 0x90] + ldp d8, d9, [sp, 0x00 + TEB_OFFSET] + ldp d10, d11, [sp, 0x10 + TEB_OFFSET] + ldp d12, d13, [sp, 0x20 + TEB_OFFSET] + ldp d14, d15, [sp, 0x30 + TEB_OFFSET] + ldp x19, x20, [sp, 0x40 + TEB_OFFSET] + ldp x21, x22, [sp, 0x50 + TEB_OFFSET] + ldp x23, x24, [sp, 0x60 + TEB_OFFSET] + ldp x25, x26, [sp, 0x70 + TEB_OFFSET] + ldp x27, x28, [sp, 0x80 + TEB_OFFSET] + ldp x29, x30, [sp, 0x90 + TEB_OFFSET] # Pop stack frame - add sp, sp, 0xa0 + add sp, sp, 0xa0 + TEB_OFFSET #if defined(__ARM_FEATURE_PAC_DEFAULT) && (__ARM_FEATURE_PAC_DEFAULT != 0) # autiasp: Authenticate x30 (LR) with SP and key A diff -Nru ruby3.3-3.3.13/coroutine/arm64/Context.asm ruby3.3-3.3.14/coroutine/arm64/Context.asm --- ruby3.3-3.3.13/coroutine/arm64/Context.asm 1970-01-01 00:00:00.000000000 +0000 +++ ruby3.3-3.3.14/coroutine/arm64/Context.asm 2026-11-18 21:52:31.000000000 +0000 @@ -0,0 +1,81 @@ + TTL coroutine/arm64/Context.asm + + AREA |.drectve|, DRECTVE + + EXPORT |coroutine_transfer| + + AREA |.text$mn|, CODE, ARM64 + +;; Add more space for certain TEB values on each stack +TEB_OFFSET EQU 0x20 + +;; Incomplete implementation +coroutine_transfer PROC + ; Make space on the stack for caller registers + sub sp, sp, 0xa0 + TEB_OFFSET + + ; Save caller registers + stp d8, d9, [sp, 0x00 + TEB_OFFSET] + stp d10, d11, [sp, 0x10 + TEB_OFFSET] + stp d12, d13, [sp, 0x20 + TEB_OFFSET] + stp d14, d15, [sp, 0x30 + TEB_OFFSET] + stp x19, x20, [sp, 0x40 + TEB_OFFSET] + stp x21, x22, [sp, 0x50 + TEB_OFFSET] + stp x23, x24, [sp, 0x60 + TEB_OFFSET] + stp x25, x26, [sp, 0x70 + TEB_OFFSET] + stp x27, x28, [sp, 0x80 + TEB_OFFSET] + stp x29, x30, [sp, 0x90 + TEB_OFFSET] + + ;; Save certain values from Thread Environment Block (TEB) x18 + ;; points to the TEB on Windows + ;; Read TeStackBase and TeStackLimit at ksarm64.h from TEB + ldp x5, x6, [x18, #0x08] + ;; Save them + stp x5, x6, [sp, #0x00] + ;; Read TeDeallocationStack at ksarm64.h from TEB + ldr x5, [x18, #0x1478] + ;; Read TeFiberData at ksarm64.h from TEB + ldr x6, [x18, #0x20] + ;; Save current fiber data and deallocation stack + stp x5, x6, [sp, #0x10] + + ; Save stack pointer to x0 (first argument) + mov x2, sp + str x2, [x0, 0] + + ; Load stack pointer from x1 (second argument) + ldr x3, [x1, 0] + mov sp, x3 + + ;; Restore stack base and limit + ldp x5, x6, [sp, #0x00] + ;; Write TeStackBase and TeStackLimit at ksarm64.h to TEB + stp x5, x6, [x18, #0x08] + ;; Restore fiber data and deallocation stack + ldp x5, x6, [sp, #0x10] + ;; Write TeDeallocationStack at ksarm64.h to TEB + str x5, [x18, #0x1478] + ;; Write TeFiberData at ksarm64.h to TEB + str x6, [x18, #0x20] + + ; Restore caller registers + ldp d8, d9, [sp, 0x00 + TEB_OFFSET] + ldp d10, d11, [sp, 0x10 + TEB_OFFSET] + ldp d12, d13, [sp, 0x20 + TEB_OFFSET] + ldp d14, d15, [sp, 0x30 + TEB_OFFSET] + ldp x19, x20, [sp, 0x40 + TEB_OFFSET] + ldp x21, x22, [sp, 0x50 + TEB_OFFSET] + ldp x23, x24, [sp, 0x60 + TEB_OFFSET] + ldp x25, x26, [sp, 0x70 + TEB_OFFSET] + ldp x27, x28, [sp, 0x80 + TEB_OFFSET] + ldp x29, x30, [sp, 0x90 + TEB_OFFSET] + + ; Pop stack frame + add sp, sp, 0xa0 + TEB_OFFSET + + ; Jump to return address (in x30) + ret + + endp + + end diff -Nru ruby3.3-3.3.13/coroutine/arm64/Context.h ruby3.3-3.3.14/coroutine/arm64/Context.h --- ruby3.3-3.3.13/coroutine/arm64/Context.h 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/coroutine/arm64/Context.h 2026-11-18 21:52:31.000000000 +0000 @@ -15,9 +15,21 @@ #include #include +#if defined __GNUC__ #define COROUTINE __attribute__((noreturn)) void +#define COROUTINE_DECL COROUTINE +#elif defined _MSC_VER +#define COROUTINE __declspec(noreturn) void +#define COROUTINE_DECL void +#endif -enum {COROUTINE_REGISTERS = 0xa0 / 8}; +#if defined(_WIN32) +#define TEB_OFFSET 0x20 +#else +#define TEB_OFFSET 0x00 +#endif + +enum {COROUTINE_REGISTERS = (0xa0 + TEB_OFFSET) / 8}; #if defined(__SANITIZE_ADDRESS__) #define COROUTINE_SANITIZE_ADDRESS @@ -44,7 +56,7 @@ #endif }; -typedef COROUTINE(* coroutine_start)(struct coroutine_context *from, struct coroutine_context *self); +typedef COROUTINE_DECL(* coroutine_start)(struct coroutine_context *from, struct coroutine_context *self); static inline void coroutine_initialize_main(struct coroutine_context * context) { context->stack_pointer = NULL; @@ -89,7 +101,14 @@ context->stack_pointer -= COROUTINE_REGISTERS; memset(context->stack_pointer, 0, sizeof(void*) * COROUTINE_REGISTERS); - context->stack_pointer[0x98 / 8] = ptrauth_sign_instruction_addr((void*)start, (void*)top); + context->stack_pointer[(0x98 + TEB_OFFSET) / 8] = ptrauth_sign_instruction_addr((void*)start, (void*)top); +#if defined(_WIN32) + // save top address of stack as base in TEB + context->stack_pointer[0x00 / 8] = (char*)stack + size; + // save botton address of stack as limit and deallocation stack in TEB + context->stack_pointer[0x08 / 8] = stack; + context->stack_pointer[0x10 / 8] = stack; +#endif } struct coroutine_context * coroutine_transfer(struct coroutine_context * current, struct coroutine_context * target); diff -Nru ruby3.3-3.3.13/coroutine/asyncify/Context.h ruby3.3-3.3.14/coroutine/asyncify/Context.h --- ruby3.3-3.3.13/coroutine/asyncify/Context.h 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/coroutine/asyncify/Context.h 2026-11-18 21:52:31.000000000 +0000 @@ -62,7 +62,9 @@ static inline struct coroutine_context * coroutine_transfer(struct coroutine_context * current, struct coroutine_context * target) { if (ASYNCIFY_CORO_DEBUG) fprintf(stderr, "[%s] entry (current = %p, target = %p)\n", __func__, current, target); +#ifndef COROUTINE_TARGET_MAY_BE_FREED struct coroutine_context * previous = target->from; +#endif target->from = current; if (ASYNCIFY_CORO_DEBUG) fprintf(stderr, "[%s] current->current_sp = %p -> %p\n", __func__, current->current_sp, rb_wasm_get_stack_pointer()); @@ -77,7 +79,11 @@ rb_wasm_set_stack_pointer(current->current_sp); +#ifndef COROUTINE_TARGET_MAY_BE_FREED + /* from is read only by coroutine_trampoline, when target starts, which has + * happened before we get here. */ target->from = previous; +#endif return target; } diff -Nru ruby3.3-3.3.13/coroutine/emscripten/Context.h ruby3.3-3.3.14/coroutine/emscripten/Context.h --- ruby3.3-3.3.13/coroutine/emscripten/Context.h 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/coroutine/emscripten/Context.h 2026-11-18 21:52:31.000000000 +0000 @@ -60,11 +60,17 @@ static inline struct coroutine_context * coroutine_transfer(struct coroutine_context * current, struct coroutine_context * target) { +#ifndef COROUTINE_TARGET_MAY_BE_FREED struct coroutine_context * previous = target->from; +#endif target->from = current; emscripten_fiber_swap(¤t->state, &target->state); +#ifndef COROUTINE_TARGET_MAY_BE_FREED + /* from is read only by coroutine_trampoline, when target starts, which has + * happened before we get here. */ target->from = previous; +#endif return target; } diff -Nru ruby3.3-3.3.13/coroutine/pthread/Context.c ruby3.3-3.3.14/coroutine/pthread/Context.c --- ruby3.3-3.3.13/coroutine/pthread/Context.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/coroutine/pthread/Context.c 2026-11-18 21:52:31.000000000 +0000 @@ -229,7 +229,11 @@ pthread_testcancel(); #endif +#ifndef COROUTINE_TARGET_MAY_BE_FREED + /* from is read only by coroutine_trampoline, when target starts, which has + * happened before we get here. */ target->from = previous; +#endif return target; } diff -Nru ruby3.3-3.3.13/coroutine/ucontext/Context.h ruby3.3-3.3.14/coroutine/ucontext/Context.h --- ruby3.3-3.3.13/coroutine/ucontext/Context.h 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/coroutine/ucontext/Context.h 2026-11-18 21:52:31.000000000 +0000 @@ -60,11 +60,17 @@ static inline struct coroutine_context * coroutine_transfer(struct coroutine_context * current, struct coroutine_context * target) { +#ifndef COROUTINE_TARGET_MAY_BE_FREED struct coroutine_context * previous = target->from; +#endif target->from = current; swapcontext(¤t->state, &target->state); +#ifndef COROUTINE_TARGET_MAY_BE_FREED + /* from is read only by coroutine_trampoline, when target starts, which has + * happened before we get here. */ target->from = previous; +#endif return target; } diff -Nru ruby3.3-3.3.13/debian/changelog ruby3.3-3.3.14/debian/changelog --- ruby3.3-3.3.13/debian/changelog 2026-10-30 18:35:16.000000000 +0000 +++ ruby3.3-3.3.14/debian/changelog 2026-11-19 17:25:10.000000000 +0000 @@ -1,3 +1,31 @@ +ruby3.3 (3.3.14-0+deb13u1) trixie-security; urgency=medium + + * New upstream release 3.3.14, fixing the following security + vulnerabilities: + - GHSA-34m4-m9fh-gqp5: Heap buffer overflow in string case + conversion, potentially allowing remote code execution. + - GHSA-7x2q-68qv-6p8x: Double free in regular expression + compilation, potentially allowing remote code execution. + - GHSA-87fm-7w84-j2px: Integer overflow in string case + conversion, causing a heap buffer overflow and potentially + allowing remote code execution. + - GHSA-wpqw-5qxg-m68r: Out-of-bounds read in case-insensitive + regular expression matching, potentially leading to memory + corruption and remote code execution. + - GHSA-3p8q-wmhx-vm2w: Integer overflow in regular expression + compilation, causing a heap buffer overflow and potentially + allowing remote code execution. + - GHSA-7whj-cfh7-xgm4: Heap buffer overflow in Regexp#to_s, + potentially allowing information disclosure or remote code + execution. + - GHSA-pvgc-g7gj-pv6h: Out-of-bounds read in case-insensitive + regular expression backreference matching, potentially + disclosing memory contents or crashing the process. + CVE identifiers have been requested but have not yet been + assigned. + + -- Lucas Kanashiro Thu, 19 Nov 2026 14:25:10 -0300 + ruby3.3 (3.3.13-0+deb13u1) trixie-security; urgency=medium * New upstream version 3.3.13. It contains the following security fixes: diff -Nru ruby3.3-3.3.13/enc/emacs_mule.c ruby3.3-3.3.14/enc/emacs_mule.c --- ruby3.3-3.3.13/enc/emacs_mule.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/enc/emacs_mule.c 2026-11-18 21:52:31.000000000 +0000 @@ -272,24 +272,7 @@ const UChar** pp, const UChar* end, UChar* lower, OnigEncoding enc) { - int len; - const UChar* p = *pp; - - if (ONIGENC_IS_MBC_ASCII(p)) { - *lower = ONIGENC_ASCII_CODE_TO_LOWER_CASE(*p); - (*pp)++; - return 1; - } - else { - int i; - - len = mbc_enc_len(p, end, enc); - for (i = 0; i < len; i++) { - *lower++ = *p++; - } - (*pp) += len; - return len; /* return byte length of converted char to lower */ - } + return onigenc_mbn_mbc_case_fold(enc, flag, pp, end, lower); } static UChar* diff -Nru ruby3.3-3.3.13/enc/iso_8859_1.c ruby3.3-3.3.14/enc/iso_8859_1.c --- ruby3.3-3.3.13/enc/iso_8859_1.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/enc/iso_8859_1.c 2026-11-18 21:52:31.000000000 +0000 @@ -264,7 +264,7 @@ OnigUChar *to_start = to; OnigCaseFoldType flags = *flagP; - while (*pp < end && to < to_end) { + while (*pp < end && to_end - to > 1) { code = *(*pp)++; if (code == SHARP_s) { if (flags & ONIGENC_CASE_UPCASE) { diff -Nru ruby3.3-3.3.13/enc/iso_8859_10.c ruby3.3-3.3.14/enc/iso_8859_10.c --- ruby3.3-3.3.13/enc/iso_8859_10.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/enc/iso_8859_10.c 2026-11-18 21:52:31.000000000 +0000 @@ -233,7 +233,7 @@ OnigUChar *to_start = to; OnigCaseFoldType flags = *flagP; - while (*pp < end && to < to_end) { + while (*pp < end && to_end - to > 1) { code = *(*pp)++; if (code == SHARP_s) { if (flags & ONIGENC_CASE_UPCASE) { diff -Nru ruby3.3-3.3.13/enc/iso_8859_13.c ruby3.3-3.3.14/enc/iso_8859_13.c --- ruby3.3-3.3.13/enc/iso_8859_13.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/enc/iso_8859_13.c 2026-11-18 21:52:31.000000000 +0000 @@ -226,7 +226,7 @@ OnigUChar *to_start = to; OnigCaseFoldType flags = *flagP; - while (*pp < end && to < to_end) { + while (*pp < end && to_end - to > 1) { code = *(*pp)++; if (code == SHARP_s) { if (flags & ONIGENC_CASE_UPCASE) { diff -Nru ruby3.3-3.3.13/enc/iso_8859_14.c ruby3.3-3.3.14/enc/iso_8859_14.c --- ruby3.3-3.3.13/enc/iso_8859_14.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/enc/iso_8859_14.c 2026-11-18 21:52:31.000000000 +0000 @@ -235,7 +235,7 @@ OnigUChar *to_start = to; OnigCaseFoldType flags = *flagP; - while (*pp < end && to < to_end) { + while (*pp < end && to_end - to > 1) { code = *(*pp)++; if (code == SHARP_s) { if (flags & ONIGENC_CASE_UPCASE) { diff -Nru ruby3.3-3.3.13/enc/iso_8859_15.c ruby3.3-3.3.14/enc/iso_8859_15.c --- ruby3.3-3.3.13/enc/iso_8859_15.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/enc/iso_8859_15.c 2026-11-18 21:52:31.000000000 +0000 @@ -229,7 +229,7 @@ OnigUChar *to_start = to; OnigCaseFoldType flags = *flagP; - while (*pp < end && to < to_end) { + while (*pp < end && to_end - to > 1) { code = *(*pp)++; if (code == SHARP_s) { if (flags & ONIGENC_CASE_UPCASE) { diff -Nru ruby3.3-3.3.13/enc/iso_8859_16.c ruby3.3-3.3.14/enc/iso_8859_16.c --- ruby3.3-3.3.13/enc/iso_8859_16.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/enc/iso_8859_16.c 2026-11-18 21:52:31.000000000 +0000 @@ -231,7 +231,7 @@ OnigUChar *to_start = to; OnigCaseFoldType flags = *flagP; - while (*pp < end && to < to_end) { + while (*pp < end && to_end - to > 1) { code = *(*pp)++; if (code == SHARP_s) { if (flags & ONIGENC_CASE_UPCASE) { diff -Nru ruby3.3-3.3.13/enc/iso_8859_2.c ruby3.3-3.3.14/enc/iso_8859_2.c --- ruby3.3-3.3.13/enc/iso_8859_2.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/enc/iso_8859_2.c 2026-11-18 21:52:31.000000000 +0000 @@ -229,7 +229,7 @@ OnigUChar *to_start = to; OnigCaseFoldType flags = *flagP; - while (*pp < end && to < to_end) { + while (*pp < end && to_end - to > 1) { code = *(*pp)++; if (code == SHARP_s) { if (flags & ONIGENC_CASE_UPCASE) { diff -Nru ruby3.3-3.3.13/enc/iso_8859_3.c ruby3.3-3.3.14/enc/iso_8859_3.c --- ruby3.3-3.3.13/enc/iso_8859_3.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/enc/iso_8859_3.c 2026-11-18 21:52:31.000000000 +0000 @@ -231,7 +231,7 @@ OnigUChar *to_start = to; OnigCaseFoldType flags = *flagP; - while (*pp < end && to < to_end) { + while (*pp < end && to_end - to > 1) { code = *(*pp)++; if (code == SHARP_s) { if (flags & ONIGENC_CASE_UPCASE) { diff -Nru ruby3.3-3.3.13/enc/iso_8859_4.c ruby3.3-3.3.14/enc/iso_8859_4.c --- ruby3.3-3.3.13/enc/iso_8859_4.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/enc/iso_8859_4.c 2026-11-18 21:52:31.000000000 +0000 @@ -232,7 +232,7 @@ OnigUChar *to_start = to; OnigCaseFoldType flags = *flagP; - while (*pp < end && to < to_end) { + while (*pp < end && to_end - to > 1) { code = *(*pp)++; if (code == SHARP_s) { if (flags & ONIGENC_CASE_UPCASE) { diff -Nru ruby3.3-3.3.13/enc/iso_8859_9.c ruby3.3-3.3.14/enc/iso_8859_9.c --- ruby3.3-3.3.13/enc/iso_8859_9.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/enc/iso_8859_9.c 2026-11-18 21:52:31.000000000 +0000 @@ -224,7 +224,7 @@ OnigUChar *to_start = to; OnigCaseFoldType flags = *flagP; - while (*pp < end && to < to_end) { + while (*pp < end && to_end - to > 1) { code = *(*pp)++; if (code == SHARP_s) { if (flags & ONIGENC_CASE_UPCASE) { diff -Nru ruby3.3-3.3.13/enc/trans/iso2022.c ruby3.3-3.3.14/enc/trans/iso2022.c --- ruby3.3-3.3.13/enc/trans/iso2022.c 2026-10-23 03:17:43.000000000 +0000 +++ ruby3.3-3.3.14/enc/trans/iso2022.c 2026-11-18 21:52:33.000000000 +0000 @@ -1,6 +1,6 @@ /* autogenerated. */ /* src="transcode-tblgen.rb", len=30823, checksum=59589 */ -/* src="iso2022.trans", len=15968, checksum=43209 */ +/* src="iso2022.trans", len=15968, checksum=43213 */ #include "transcode_data.h" #include "ruby/internal/attr/nonstring.h" @@ -721,7 +721,7 @@ TRANSCODE_TABLE_INFO, 1, /* input_unit_length */ 3, /* max_input */ - 5, /* max_output */ + 9, /* max_output */ asciicompat_encoder, /* asciicompat_type */ 3, iso2022jp_init, iso2022jp_init, /* state_size, state_init, state_fini */ NULL, NULL, NULL, fun_so_cp50220_encoder, diff -Nru ruby3.3-3.3.13/enc/trans/iso2022.trans ruby3.3-3.3.14/enc/trans/iso2022.trans --- ruby3.3-3.3.13/enc/trans/iso2022.trans 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/enc/trans/iso2022.trans 2026-11-18 21:52:31.000000000 +0000 @@ -546,7 +546,7 @@ TRANSCODE_TABLE_INFO, 1, /* input_unit_length */ 3, /* max_input */ - 5, /* max_output */ + 9, /* max_output */ asciicompat_encoder, /* asciicompat_type */ 3, iso2022jp_init, iso2022jp_init, /* state_size, state_init, state_fini */ NULL, NULL, NULL, fun_so_cp50220_encoder, diff -Nru ruby3.3-3.3.13/enc/trans/utf_16_32.c ruby3.3-3.3.14/enc/trans/utf_16_32.c --- ruby3.3-3.3.13/enc/trans/utf_16_32.c 2026-10-23 03:17:43.000000000 +0000 +++ ruby3.3-3.3.14/enc/trans/utf_16_32.c 2026-11-18 21:52:33.000000000 +0000 @@ -1,6 +1,6 @@ /* autogenerated. */ /* src="transcode-tblgen.rb", len=30823, checksum=59589 */ -/* src="utf_16_32.trans", len=15308, checksum=28538 */ +/* src="utf_16_32.trans", len=15308, checksum=28544 */ #include "transcode_data.h" @@ -811,7 +811,7 @@ TRANSCODE_TABLE_INFO, 1, /* input_unit_length */ 4, /* max_input */ - 4, /* max_output */ + 6, /* max_output */ asciicompat_encoder, /* asciicompat_type */ 1, state_init, NULL, /* state_size, state_init, state_fini */ NULL, NULL, NULL, fun_so_to_utf_16 @@ -823,7 +823,7 @@ TRANSCODE_TABLE_INFO, 1, /* input_unit_length */ 4, /* max_input */ - 4, /* max_output */ + 8, /* max_output */ asciicompat_encoder, /* asciicompat_type */ 1, state_init, NULL, /* state_size, state_init, state_fini */ NULL, NULL, NULL, fun_so_to_utf_32 diff -Nru ruby3.3-3.3.13/enc/trans/utf_16_32.trans ruby3.3-3.3.14/enc/trans/utf_16_32.trans --- ruby3.3-3.3.13/enc/trans/utf_16_32.trans 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/enc/trans/utf_16_32.trans 2026-11-18 21:52:31.000000000 +0000 @@ -521,7 +521,7 @@ TRANSCODE_TABLE_INFO, 1, /* input_unit_length */ 4, /* max_input */ - 4, /* max_output */ + 6, /* max_output */ asciicompat_encoder, /* asciicompat_type */ 1, state_init, NULL, /* state_size, state_init, state_fini */ NULL, NULL, NULL, fun_so_to_utf_16 @@ -533,7 +533,7 @@ TRANSCODE_TABLE_INFO, 1, /* input_unit_length */ 4, /* max_input */ - 4, /* max_output */ + 8, /* max_output */ asciicompat_encoder, /* asciicompat_type */ 1, state_init, NULL, /* state_size, state_init, state_fini */ NULL, NULL, NULL, fun_so_to_utf_32 diff -Nru ruby3.3-3.3.13/enc/windows_1250.c ruby3.3-3.3.14/enc/windows_1250.c --- ruby3.3-3.3.13/enc/windows_1250.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/enc/windows_1250.c 2026-11-18 21:52:31.000000000 +0000 @@ -199,7 +199,7 @@ OnigUChar *to_start = to; OnigCaseFoldType flags = *flagP; - while (*pp < end && to < to_end) { + while (*pp < end && to_end - to > 1) { code = *(*pp)++; if (code == SHARP_s) { if (flags & ONIGENC_CASE_UPCASE) { diff -Nru ruby3.3-3.3.13/enc/windows_1252.c ruby3.3-3.3.14/enc/windows_1252.c --- ruby3.3-3.3.13/enc/windows_1252.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/enc/windows_1252.c 2026-11-18 21:52:31.000000000 +0000 @@ -190,7 +190,7 @@ OnigUChar *to_start = to; OnigCaseFoldType flags = *flagP; - while (*pp < end && to < to_end) { + while (*pp < end && to_end - to > 1) { code = *(*pp)++; if (code == SHARP_s) { if (flags & ONIGENC_CASE_UPCASE) { diff -Nru ruby3.3-3.3.13/enc/windows_1254.c ruby3.3-3.3.14/enc/windows_1254.c --- ruby3.3-3.3.13/enc/windows_1254.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/enc/windows_1254.c 2026-11-18 21:52:31.000000000 +0000 @@ -232,7 +232,7 @@ OnigUChar *to_start = to; OnigCaseFoldType flags = *flagP; - while (*pp < end && to < to_end) { + while (*pp < end && to_end - to > 1) { code = *(*pp)++; if (code == SHARP_s) { if (flags & ONIGENC_CASE_UPCASE) { diff -Nru ruby3.3-3.3.13/enc/windows_1257.c ruby3.3-3.3.14/enc/windows_1257.c --- ruby3.3-3.3.13/enc/windows_1257.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/enc/windows_1257.c 2026-11-18 21:52:31.000000000 +0000 @@ -236,7 +236,7 @@ OnigUChar *to_start = to; OnigCaseFoldType flags = *flagP; - while (*pp < end && to < to_end) { + while (*pp < end && to_end - to > 1) { code = *(*pp)++; if (code == SHARP_s) { if (flags & ONIGENC_CASE_UPCASE) { diff -Nru ruby3.3-3.3.13/enum.c ruby3.3-3.3.14/enum.c --- ruby3.3-3.3.13/enum.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/enum.c 2026-11-18 21:52:31.000000000 +0000 @@ -1891,9 +1891,10 @@ int by: 1; /* min_by if 1 */ }; -static VALUE -cmpint_reenter_check(struct nmin_data *data, VALUE val) +static int +cmpint_reenter_check(struct nmin_data *data, VALUE cmp, VALUE a, VALUE b) { + int val = rb_cmpint(cmp, a, b); if (RBASIC(data->buf)->klass) { rb_raise(rb_eRuntimeError, "%s%s reentered", data->rev ? "max" : "min", @@ -1907,7 +1908,7 @@ { struct nmin_data *data = (struct nmin_data *)_data; VALUE a = *(const VALUE *)ap, b = *(const VALUE *)bp; -#define rb_cmpint(cmp, a, b) rb_cmpint(cmpint_reenter_check(data, (cmp)), a, b) +#define rb_cmpint(cmp, a, b) cmpint_reenter_check(data, cmp, a, b) return OPTIMIZED_CMP(a, b); #undef rb_cmpint } @@ -1918,8 +1919,7 @@ struct nmin_data *data = (struct nmin_data *)_data; VALUE a = *(const VALUE *)ap, b = *(const VALUE *)bp; VALUE cmp = rb_yield_values(2, a, b); - cmpint_reenter_check(data, cmp); - return rb_cmpint(cmp, a, b); + return cmpint_reenter_check(data, cmp, a, b); } static void diff -Nru ruby3.3-3.3.13/enumerator.c ruby3.3-3.3.14/enumerator.c --- ruby3.3-3.3.13/enumerator.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/enumerator.c 2026-11-18 21:52:31.000000000 +0000 @@ -1213,6 +1213,7 @@ rb_str_buf_cat2(str, ")"); } } + RB_GC_GUARD(eargs); return str; } @@ -2269,6 +2270,8 @@ if (!RTEST(chain)) return 0; value = rb_proc_call_with_block(entry->proc, 1, &(result->memo_value), Qnil); + /* entry is embedded in proc_entry, which only the procs array references */ + RB_GC_GUARD(proc_entry); LAZY_MEMO_SET_VALUE(result, value); LAZY_MEMO_RESET_PACKED(result); @@ -2316,6 +2319,7 @@ if (RTEST(chain)) return 0; value = rb_proc_call_with_block(entry->proc, 1, &(result->memo_value), Qnil); + RB_GC_GUARD(proc_entry); LAZY_MEMO_SET_VALUE(result, value); LAZY_MEMO_RESET_PACKED(result); @@ -3579,9 +3583,9 @@ struct product_state { VALUE obj; VALUE block; + int index; int argc; VALUE *argv; - int index; }; static VALUE product_each(VALUE, struct product_state *); @@ -3620,15 +3624,23 @@ { struct enum_product *ptr = enum_product_ptr(obj); int argc = RARRAY_LENINT(ptr->enums); + if (argc == 0) { /* no need to allocate state.argv */ + rb_funcall(block, id_call, 1, rb_ary_new()); + return obj; + } + + VALUE argsbuf = 0; struct product_state state = { .obj = obj, .block = block, .index = 0, .argc = argc, - .argv = ALLOCA_N(VALUE, argc), + .argv = ALLOCV_N(VALUE, argsbuf, argc), }; - return product_each(obj, &state); + VALUE ret = product_each(obj, &state); + ALLOCV_END(argsbuf); + return ret; } /* @@ -4237,6 +4249,7 @@ rb_str_buf_cat2(str, ")"); } } + RB_GC_GUARD(eargs); rb_str_buf_cat2(str, ")"); diff -Nru ruby3.3-3.3.13/error.c ruby3.3-3.3.14/error.c --- ruby3.3-3.3.13/error.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/error.c 2026-11-18 21:52:31.000000000 +0000 @@ -2326,6 +2326,8 @@ int state = 0; rb_encoding *usascii = rb_usascii_encoding(); +#define rb_memsearch_lit(str, v) \ + rb_memsearch((str), rb_strlen_lit(str), RSTRING_PTR(v), RSTRING_LEN(v), rb_enc_get(v)) #define FAKE_CSTR(v, str) rb_setup_fake_str((v), (str), rb_strlen_lit(str), usascii) c = s = FAKE_CSTR(&s_str, ""); obj = ptr->recv; @@ -2340,7 +2342,7 @@ c = d = FAKE_CSTR(&d_str, "false"); break; default: - if (strstr(RSTRING_PTR(mesg), "%2$s")) { + if (rb_memsearch_lit("%2$s", mesg) >= 0) { d = rb_protect(name_err_mesg_receiver_name, obj, &state); if (state || NIL_OR_UNDEF_P(d)) d = rb_protect(rb_inspect, obj, &state); diff -Nru ruby3.3-3.3.13/ext/-test-/string/cstr.c ruby3.3-3.3.14/ext/-test-/string/cstr.c --- ruby3.3-3.3.13/ext/-test-/string/cstr.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/ext/-test-/string/cstr.c 2026-11-18 21:52:31.000000000 +0000 @@ -111,9 +111,10 @@ FL_SET((str2), STR_NOEMBED); memcpy(buf, RSTRING_PTR(str), capacity); RBASIC(str2)->flags &= ~(STR_SHARED | FL_USER5 | FL_USER6); - RSTRING(str2)->as.heap.aux.capa = capacity; + RSTRING(str2)->as.heap.aux.capa = RSTRING_LEN(str); RSTRING(str2)->as.heap.ptr = buf; RSTRING(str2)->len = RSTRING_LEN(str); + TERM_FILL(RSTRING_END(str2), TERM_LEN(str)); return str2; } diff -Nru ruby3.3-3.3.13/ext/ripper/ripper.c ruby3.3-3.3.14/ext/ripper/ripper.c --- ruby3.3-3.3.13/ext/ripper/ripper.c 2026-10-23 03:17:43.000000000 +0000 +++ ruby3.3-3.3.14/ext/ripper/ripper.c 2026-11-18 21:52:33.000000000 +0000 @@ -392,10 +392,20 @@ rb_parser_set_location(p, &(Current)) #define RUBY_INIT_YYLLOC() \ { \ - {p->ruby_sourceline, (int)(p->lex.ptok - p->lex.pbeg)}, \ - {p->ruby_sourceline, (int)(p->lex.pcur - p->lex.pbeg)}, \ + {p->ruby_sourceline, parser_column(p->lex.ptok - p->lex.pbeg)}, \ + {p->ruby_sourceline, parser_column(p->lex.pcur - p->lex.pbeg)}, \ } +/* Saturate instead of wrapping to a column before the line. */ +static inline int +parser_column(long pos) +{ +#if SIZEOF_INT < SIZEOF_LONG + if (pos > INT_MAX) return INT_MAX; +#endif + return (int)pos; +} + #define IS_lex_state_for(x, ls) ((x) & (ls)) #define IS_lex_state_all_for(x, ls) (((x) & (ls)) == (ls)) #define IS_lex_state(ls) IS_lex_state_for(p->lex.state, (ls)) @@ -1963,7 +1973,7 @@ } #endif -#line 1967 "ripper.c" +#line 1977 "ripper.c" # ifndef YY_CAST # ifdef __cplusplus @@ -2142,7 +2152,7 @@ #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED union YYSTYPE { -#line 1962 "ripper.y" +#line 1972 "ripper.y" VALUE val; NODE *node; @@ -2162,7 +2172,7 @@ struct rb_strterm_struct *strterm; struct lex_context ctxt; -#line 2166 "ripper.c" +#line 2176 "ripper.c" }; typedef union YYSTYPE YYSTYPE; @@ -3035,85 +3045,85 @@ /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ static const yytype_int16 yyrline[] = { - 0, 2193, 2193, 2193, 2221, 2227, 2234, 2241, 2250, 2255, - 2261, 2263, 2279, 2284, 2275, 2297, 2294, 2309, 2315, 2322, - 2329, 2338, 2343, 2342, 2352, 2354, 2360, 2360, 2367, 2374, - 2384, 2393, 2400, 2408, 2416, 2429, 2442, 2453, 2468, 2469, - 2477, 2484, 2497, 2504, 2505, 2514, 2521, 2528, 2536, 2543, - 2550, 2558, 2565, 2578, 2591, 2601, 2602, 2610, 2616, 2621, - 2631, 2634, 2635, 2639, 2643, 2647, 2652, 2651, 2667, 2666, - 2681, 2684, 2696, 2709, 2708, 2728, 2733, 2741, 2741, 2741, - 2747, 2748, 2751, 2752, 2761, 2770, 2779, 2788, 2799, 2806, - 2813, 2820, 2827, 2835, 2843, 2851, 2858, 2867, 2878, 2879, - 2888, 2889, 2898, 2905, 2912, 2919, 2926, 2933, 2940, 2947, - 2954, 2961, 2970, 2971, 2980, 2987, 2996, 3003, 3012, 3019, - 3026, 3033, 3041, 3048, 3056, 3063, 3070, 3080, 3087, 3094, - 3101, 3108, 3115, 3122, 3129, 3136, 3146, 3154, 3157, 3164, - 3171, 3180, 3181, 3182, 3183, 3188, 3191, 3198, 3201, 3208, - 3208, 3218, 3219, 3220, 3221, 3222, 3223, 3224, 3225, 3226, - 3227, 3228, 3229, 3230, 3231, 3232, 3233, 3234, 3235, 3236, + 0, 2203, 2203, 2203, 2231, 2237, 2244, 2251, 2260, 2265, + 2271, 2273, 2289, 2294, 2285, 2307, 2304, 2319, 2325, 2332, + 2339, 2348, 2353, 2352, 2362, 2364, 2370, 2370, 2377, 2384, + 2394, 2403, 2410, 2418, 2426, 2439, 2452, 2463, 2478, 2479, + 2487, 2494, 2507, 2514, 2515, 2524, 2531, 2538, 2546, 2553, + 2560, 2568, 2575, 2588, 2601, 2611, 2612, 2620, 2626, 2631, + 2641, 2644, 2645, 2649, 2653, 2657, 2662, 2661, 2677, 2676, + 2691, 2694, 2706, 2719, 2718, 2738, 2743, 2751, 2751, 2751, + 2757, 2758, 2761, 2762, 2771, 2780, 2789, 2798, 2809, 2816, + 2823, 2830, 2837, 2845, 2853, 2861, 2868, 2877, 2888, 2889, + 2898, 2899, 2908, 2915, 2922, 2929, 2936, 2943, 2950, 2957, + 2964, 2971, 2980, 2981, 2990, 2997, 3006, 3013, 3022, 3029, + 3036, 3043, 3051, 3058, 3066, 3073, 3080, 3090, 3097, 3104, + 3111, 3118, 3125, 3132, 3139, 3146, 3156, 3164, 3167, 3174, + 3181, 3190, 3191, 3192, 3193, 3198, 3201, 3208, 3211, 3218, + 3218, 3228, 3229, 3230, 3231, 3232, 3233, 3234, 3235, 3236, 3237, 3238, 3239, 3240, 3241, 3242, 3243, 3244, 3245, 3246, - 3247, 3250, 3250, 3250, 3251, 3251, 3252, 3252, 3252, 3253, - 3253, 3253, 3253, 3254, 3254, 3254, 3254, 3255, 3255, 3255, - 3256, 3256, 3256, 3256, 3257, 3257, 3257, 3257, 3258, 3258, - 3258, 3258, 3259, 3259, 3259, 3259, 3260, 3260, 3260, 3260, - 3261, 3261, 3264, 3271, 3278, 3285, 3292, 3299, 3306, 3314, - 3322, 3330, 3339, 3348, 3356, 3364, 3372, 3380, 3384, 3388, - 3392, 3396, 3400, 3404, 3408, 3412, 3416, 3420, 3424, 3428, - 3432, 3433, 3437, 3441, 3445, 3449, 3453, 3457, 3461, 3465, - 3469, 3473, 3477, 3482, 3491, 3504, 3517, 3523, 3524, 3532, - 3538, 3539, 3540, 3541, 3544, 3548, 3555, 3561, 3568, 3575, - 3582, 3583, 3587, 3594, 3603, 3608, 3619, 3626, 3638, 3652, - 3653, 3656, 3657, 3658, 3662, 3669, 3678, 3686, 3693, 3701, - 3709, 3713, 3713, 3750, 3757, 3767, 3771, 3778, 3785, 3792, - 3799, 3809, 3813, 3824, 3825, 3829, 3836, 3843, 3852, 3853, - 3854, 3855, 3856, 3857, 3858, 3859, 3860, 3861, 3862, 3870, - 3869, 3884, 3884, 3892, 3900, 3907, 3914, 3921, 3929, 3936, - 3943, 3950, 3957, 3962, 3966, 3970, 3977, 3978, 3986, 3987, - 3998, 4009, 4020, 4032, 4031, 4048, 4047, 4062, 4071, 4116, - 4115, 4134, 4133, 4154, 4153, 4173, 4171, 4192, 4190, 4209, - 4214, 4219, 4224, 4241, 4248, 4257, 4277, 4286, 4296, 4306, - 4315, 4325, 4336, 4347, 4355, 4364, 4373, 4381, 4388, 4394, - 4409, 4416, 4423, 4429, 4436, 4443, 4444, 4445, 4448, 4449, - 4452, 4453, 4465, 4466, 4475, 4476, 4479, 4487, 4496, 4503, - 4512, 4519, 4526, 4533, 4540, 4549, 4557, 4566, 4567, 4570, - 4570, 4572, 4576, 4580, 4584, 4590, 4595, 4600, 4610, 4614, - 4618, 4622, 4626, 4630, 4635, 4639, 4643, 4647, 4651, 4655, - 4659, 4663, 4667, 4673, 4674, 4680, 4691, 4704, 4708, 4717, - 4719, 4723, 4728, 4734, 4740, 4746, 4754, 4745, 4780, 4789, - 4800, 4806, 4805, 4817, 4826, 4840, 4847, 4854, 4863, 4872, - 4880, 4888, 4895, 4903, 4911, 4918, 4925, 4935, 4942, 4951, - 4951, 4968, 4968, 4989, 4997, 5004, 5012, 5021, 5033, 5034, - 5037, 5038, 5040, 5051, 5048, 5066, 5067, 5070, 5071, 5079, - 5089, 5090, 5095, 5103, 5107, 5111, 5117, 5120, 5129, 5132, - 5139, 5142, 5143, 5145, 5146, 5147, 5156, 5165, 5174, 5179, - 5188, 5197, 5206, 5211, 5215, 5219, 5225, 5224, 5234, 5239, - 5246, 5255, 5259, 5268, 5272, 5276, 5279, 5283, 5292, 5296, - 5302, 5309, 5317, 5326, 5327, 5336, 5345, 5349, 5353, 5357, - 5363, 5365, 5374, 5382, 5396, 5397, 5420, 5424, 5430, 5436, - 5437, 5440, 5441, 5450, 5459, 5467, 5475, 5476, 5477, 5478, - 5486, 5496, 5497, 5498, 5499, 5500, 5501, 5502, 5503, 5504, - 5511, 5514, 5524, 5535, 5544, 5553, 5560, 5567, 5576, 5600, - 5603, 5610, 5617, 5620, 5624, 5627, 5635, 5638, 5639, 5642, - 5659, 5660, 5661, 5670, 5680, 5689, 5695, 5696, 5699, 5709, - 5715, 5724, 5726, 5735, 5745, 5751, 5760, 5769, 5779, 5785, - 5795, 5801, 5811, 5821, 5840, 5846, 5856, 5866, 5907, 5910, - 5909, 5926, 5935, 5939, 5925, 5960, 5961, 5964, 5971, 5974, - 5975, 5978, 5988, 5989, 5992, 6002, 6003, 6013, 6014, 6015, - 6016, 6019, 6020, 6021, 6024, 6025, 6026, 6029, 6030, 6031, - 6032, 6033, 6034, 6035, 6038, 6051, 6060, 6067, 6076, 6077, - 6081, 6080, 6090, 6098, 6099, 6107, 6119, 6120, 6120, 6136, - 6140, 6144, 6148, 6152, 6162, 6167, 6172, 6176, 6180, 6184, - 6188, 6192, 6196, 6200, 6204, 6208, 6212, 6216, 6220, 6224, - 6229, 6235, 6248, 6257, 6266, 6275, 6286, 6287, 6295, 6304, - 6312, 6333, 6335, 6348, 6358, 6367, 6378, 6386, 6396, 6403, - 6413, 6420, 6429, 6430, 6433, 6441, 6449, 6459, 6470, 6481, - 6488, 6497, 6504, 6513, 6514, 6517, 6525, 6535, 6536, 6539, - 6547, 6557, 6561, 6567, 6572, 6572, 6598, 6599, 6608, 6610, - 6633, 6644, 6651, 6660, 6668, 6685, 6696, 6697, 6698, 6701, - 6702, 6705, 6706, 6707, 6710, 6711, 6714, 6715, 6718, 6719, - 6722, 6723, 6726, 6727, 6730, 6733, 6736, 6739, 6740, 6743, - 6744, 6751, 6752, 6756 + 3247, 3248, 3249, 3250, 3251, 3252, 3253, 3254, 3255, 3256, + 3257, 3260, 3260, 3260, 3261, 3261, 3262, 3262, 3262, 3263, + 3263, 3263, 3263, 3264, 3264, 3264, 3264, 3265, 3265, 3265, + 3266, 3266, 3266, 3266, 3267, 3267, 3267, 3267, 3268, 3268, + 3268, 3268, 3269, 3269, 3269, 3269, 3270, 3270, 3270, 3270, + 3271, 3271, 3274, 3281, 3288, 3295, 3302, 3309, 3316, 3324, + 3332, 3340, 3349, 3358, 3366, 3374, 3382, 3390, 3394, 3398, + 3402, 3406, 3410, 3414, 3418, 3422, 3426, 3430, 3434, 3438, + 3442, 3443, 3447, 3451, 3455, 3459, 3463, 3467, 3471, 3475, + 3479, 3483, 3487, 3492, 3501, 3514, 3527, 3533, 3534, 3542, + 3548, 3549, 3550, 3551, 3554, 3558, 3565, 3571, 3578, 3585, + 3592, 3593, 3597, 3604, 3613, 3618, 3629, 3636, 3648, 3662, + 3663, 3666, 3667, 3668, 3672, 3679, 3688, 3696, 3703, 3711, + 3719, 3723, 3723, 3760, 3767, 3777, 3781, 3788, 3795, 3802, + 3809, 3819, 3823, 3834, 3835, 3839, 3846, 3853, 3862, 3863, + 3864, 3865, 3866, 3867, 3868, 3869, 3870, 3871, 3872, 3880, + 3879, 3894, 3894, 3902, 3910, 3917, 3924, 3931, 3939, 3946, + 3953, 3960, 3967, 3972, 3976, 3980, 3987, 3988, 3996, 3997, + 4008, 4019, 4030, 4042, 4041, 4058, 4057, 4072, 4081, 4126, + 4125, 4144, 4143, 4164, 4163, 4183, 4181, 4202, 4200, 4219, + 4224, 4229, 4234, 4251, 4258, 4267, 4287, 4296, 4306, 4316, + 4325, 4335, 4346, 4357, 4365, 4374, 4383, 4391, 4398, 4404, + 4419, 4426, 4433, 4439, 4446, 4453, 4454, 4455, 4458, 4459, + 4462, 4463, 4475, 4476, 4485, 4486, 4489, 4497, 4506, 4513, + 4522, 4529, 4536, 4543, 4550, 4559, 4567, 4576, 4577, 4580, + 4580, 4582, 4586, 4590, 4594, 4600, 4605, 4610, 4620, 4624, + 4628, 4632, 4636, 4640, 4645, 4649, 4653, 4657, 4661, 4665, + 4669, 4673, 4677, 4683, 4684, 4690, 4701, 4714, 4718, 4727, + 4729, 4733, 4738, 4744, 4750, 4756, 4764, 4755, 4790, 4799, + 4810, 4816, 4815, 4827, 4836, 4850, 4857, 4864, 4873, 4882, + 4890, 4898, 4905, 4913, 4921, 4928, 4935, 4945, 4952, 4961, + 4961, 4978, 4978, 4999, 5007, 5014, 5022, 5031, 5043, 5044, + 5047, 5048, 5050, 5061, 5058, 5076, 5077, 5080, 5081, 5089, + 5099, 5100, 5105, 5113, 5117, 5121, 5127, 5130, 5139, 5142, + 5149, 5152, 5153, 5155, 5156, 5157, 5166, 5175, 5184, 5189, + 5198, 5207, 5216, 5221, 5225, 5229, 5235, 5234, 5244, 5249, + 5256, 5265, 5269, 5278, 5282, 5286, 5289, 5293, 5302, 5306, + 5312, 5319, 5327, 5336, 5337, 5346, 5355, 5359, 5363, 5367, + 5373, 5375, 5384, 5392, 5406, 5407, 5430, 5434, 5440, 5446, + 5447, 5450, 5451, 5460, 5469, 5477, 5485, 5486, 5487, 5488, + 5496, 5506, 5507, 5508, 5509, 5510, 5511, 5512, 5513, 5514, + 5521, 5524, 5534, 5545, 5554, 5563, 5570, 5577, 5586, 5610, + 5613, 5620, 5627, 5630, 5634, 5637, 5645, 5648, 5649, 5652, + 5669, 5670, 5671, 5680, 5690, 5699, 5705, 5706, 5709, 5719, + 5725, 5734, 5736, 5745, 5755, 5761, 5770, 5779, 5789, 5795, + 5805, 5811, 5821, 5831, 5850, 5856, 5866, 5876, 5917, 5920, + 5919, 5936, 5945, 5949, 5935, 5970, 5971, 5974, 5981, 5984, + 5985, 5988, 5998, 5999, 6002, 6012, 6013, 6023, 6024, 6025, + 6026, 6029, 6030, 6031, 6034, 6035, 6036, 6039, 6040, 6041, + 6042, 6043, 6044, 6045, 6048, 6061, 6070, 6077, 6086, 6087, + 6091, 6090, 6100, 6108, 6109, 6117, 6129, 6130, 6130, 6146, + 6150, 6154, 6158, 6162, 6172, 6177, 6182, 6186, 6190, 6194, + 6198, 6202, 6206, 6210, 6214, 6218, 6222, 6226, 6230, 6234, + 6239, 6245, 6258, 6267, 6276, 6285, 6296, 6297, 6305, 6314, + 6322, 6343, 6345, 6358, 6368, 6377, 6388, 6396, 6406, 6413, + 6423, 6430, 6439, 6440, 6443, 6451, 6459, 6469, 6480, 6491, + 6498, 6507, 6514, 6523, 6524, 6527, 6535, 6545, 6546, 6549, + 6557, 6567, 6571, 6577, 6582, 6582, 6608, 6609, 6618, 6620, + 6643, 6654, 6661, 6670, 6678, 6695, 6706, 6707, 6708, 6711, + 6712, 6715, 6716, 6717, 6720, 6721, 6724, 6725, 6728, 6729, + 6732, 6733, 6736, 6737, 6740, 6743, 6746, 6749, 6750, 6753, + 6754, 6761, 6762, 6766 }; #endif @@ -7166,7 +7176,7 @@ switch (yykind) { case YYSYMBOL_keyword_class: /* "`class'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7178,11 +7188,11 @@ #else #endif } -#line 7182 "ripper.c" +#line 7192 "ripper.c" break; case YYSYMBOL_keyword_module: /* "`module'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7194,11 +7204,11 @@ #else #endif } -#line 7198 "ripper.c" +#line 7208 "ripper.c" break; case YYSYMBOL_keyword_def: /* "`def'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7210,11 +7220,11 @@ #else #endif } -#line 7214 "ripper.c" +#line 7224 "ripper.c" break; case YYSYMBOL_keyword_undef: /* "`undef'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7226,11 +7236,11 @@ #else #endif } -#line 7230 "ripper.c" +#line 7240 "ripper.c" break; case YYSYMBOL_keyword_begin: /* "`begin'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7242,11 +7252,11 @@ #else #endif } -#line 7246 "ripper.c" +#line 7256 "ripper.c" break; case YYSYMBOL_keyword_rescue: /* "`rescue'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7258,11 +7268,11 @@ #else #endif } -#line 7262 "ripper.c" +#line 7272 "ripper.c" break; case YYSYMBOL_keyword_ensure: /* "`ensure'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7274,11 +7284,11 @@ #else #endif } -#line 7278 "ripper.c" +#line 7288 "ripper.c" break; case YYSYMBOL_keyword_end: /* "`end'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7290,11 +7300,11 @@ #else #endif } -#line 7294 "ripper.c" +#line 7304 "ripper.c" break; case YYSYMBOL_keyword_if: /* "`if'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7306,11 +7316,11 @@ #else #endif } -#line 7310 "ripper.c" +#line 7320 "ripper.c" break; case YYSYMBOL_keyword_unless: /* "`unless'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7322,11 +7332,11 @@ #else #endif } -#line 7326 "ripper.c" +#line 7336 "ripper.c" break; case YYSYMBOL_keyword_then: /* "`then'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7338,11 +7348,11 @@ #else #endif } -#line 7342 "ripper.c" +#line 7352 "ripper.c" break; case YYSYMBOL_keyword_elsif: /* "`elsif'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7354,11 +7364,11 @@ #else #endif } -#line 7358 "ripper.c" +#line 7368 "ripper.c" break; case YYSYMBOL_keyword_else: /* "`else'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7370,11 +7380,11 @@ #else #endif } -#line 7374 "ripper.c" +#line 7384 "ripper.c" break; case YYSYMBOL_keyword_case: /* "`case'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7386,11 +7396,11 @@ #else #endif } -#line 7390 "ripper.c" +#line 7400 "ripper.c" break; case YYSYMBOL_keyword_when: /* "`when'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7402,11 +7412,11 @@ #else #endif } -#line 7406 "ripper.c" +#line 7416 "ripper.c" break; case YYSYMBOL_keyword_while: /* "`while'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7418,11 +7428,11 @@ #else #endif } -#line 7422 "ripper.c" +#line 7432 "ripper.c" break; case YYSYMBOL_keyword_until: /* "`until'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7434,11 +7444,11 @@ #else #endif } -#line 7438 "ripper.c" +#line 7448 "ripper.c" break; case YYSYMBOL_keyword_for: /* "`for'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7450,11 +7460,11 @@ #else #endif } -#line 7454 "ripper.c" +#line 7464 "ripper.c" break; case YYSYMBOL_keyword_break: /* "`break'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7466,11 +7476,11 @@ #else #endif } -#line 7470 "ripper.c" +#line 7480 "ripper.c" break; case YYSYMBOL_keyword_next: /* "`next'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7482,11 +7492,11 @@ #else #endif } -#line 7486 "ripper.c" +#line 7496 "ripper.c" break; case YYSYMBOL_keyword_redo: /* "`redo'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7498,11 +7508,11 @@ #else #endif } -#line 7502 "ripper.c" +#line 7512 "ripper.c" break; case YYSYMBOL_keyword_retry: /* "`retry'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7514,11 +7524,11 @@ #else #endif } -#line 7518 "ripper.c" +#line 7528 "ripper.c" break; case YYSYMBOL_keyword_in: /* "`in'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7530,11 +7540,11 @@ #else #endif } -#line 7534 "ripper.c" +#line 7544 "ripper.c" break; case YYSYMBOL_keyword_do: /* "`do'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7546,11 +7556,11 @@ #else #endif } -#line 7550 "ripper.c" +#line 7560 "ripper.c" break; case YYSYMBOL_keyword_do_cond: /* "`do' for condition" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7562,11 +7572,11 @@ #else #endif } -#line 7566 "ripper.c" +#line 7576 "ripper.c" break; case YYSYMBOL_keyword_do_block: /* "`do' for block" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7578,11 +7588,11 @@ #else #endif } -#line 7582 "ripper.c" +#line 7592 "ripper.c" break; case YYSYMBOL_keyword_do_LAMBDA: /* "`do' for lambda" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7594,11 +7604,11 @@ #else #endif } -#line 7598 "ripper.c" +#line 7608 "ripper.c" break; case YYSYMBOL_keyword_return: /* "`return'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7610,11 +7620,11 @@ #else #endif } -#line 7614 "ripper.c" +#line 7624 "ripper.c" break; case YYSYMBOL_keyword_yield: /* "`yield'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7626,11 +7636,11 @@ #else #endif } -#line 7630 "ripper.c" +#line 7640 "ripper.c" break; case YYSYMBOL_keyword_super: /* "`super'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7642,11 +7652,11 @@ #else #endif } -#line 7646 "ripper.c" +#line 7656 "ripper.c" break; case YYSYMBOL_keyword_self: /* "`self'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7658,11 +7668,11 @@ #else #endif } -#line 7662 "ripper.c" +#line 7672 "ripper.c" break; case YYSYMBOL_keyword_nil: /* "`nil'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7674,11 +7684,11 @@ #else #endif } -#line 7678 "ripper.c" +#line 7688 "ripper.c" break; case YYSYMBOL_keyword_true: /* "`true'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7690,11 +7700,11 @@ #else #endif } -#line 7694 "ripper.c" +#line 7704 "ripper.c" break; case YYSYMBOL_keyword_false: /* "`false'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7706,11 +7716,11 @@ #else #endif } -#line 7710 "ripper.c" +#line 7720 "ripper.c" break; case YYSYMBOL_keyword_and: /* "`and'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7722,11 +7732,11 @@ #else #endif } -#line 7726 "ripper.c" +#line 7736 "ripper.c" break; case YYSYMBOL_keyword_or: /* "`or'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7738,11 +7748,11 @@ #else #endif } -#line 7742 "ripper.c" +#line 7752 "ripper.c" break; case YYSYMBOL_keyword_not: /* "`not'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7754,11 +7764,11 @@ #else #endif } -#line 7758 "ripper.c" +#line 7768 "ripper.c" break; case YYSYMBOL_modifier_if: /* "`if' modifier" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7770,11 +7780,11 @@ #else #endif } -#line 7774 "ripper.c" +#line 7784 "ripper.c" break; case YYSYMBOL_modifier_unless: /* "`unless' modifier" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7786,11 +7796,11 @@ #else #endif } -#line 7790 "ripper.c" +#line 7800 "ripper.c" break; case YYSYMBOL_modifier_while: /* "`while' modifier" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7802,11 +7812,11 @@ #else #endif } -#line 7806 "ripper.c" +#line 7816 "ripper.c" break; case YYSYMBOL_modifier_until: /* "`until' modifier" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7818,11 +7828,11 @@ #else #endif } -#line 7822 "ripper.c" +#line 7832 "ripper.c" break; case YYSYMBOL_modifier_rescue: /* "`rescue' modifier" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7834,11 +7844,11 @@ #else #endif } -#line 7838 "ripper.c" +#line 7848 "ripper.c" break; case YYSYMBOL_keyword_alias: /* "`alias'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7850,11 +7860,11 @@ #else #endif } -#line 7854 "ripper.c" +#line 7864 "ripper.c" break; case YYSYMBOL_keyword_defined: /* "`defined?'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7866,11 +7876,11 @@ #else #endif } -#line 7870 "ripper.c" +#line 7880 "ripper.c" break; case YYSYMBOL_keyword_BEGIN: /* "`BEGIN'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7882,11 +7892,11 @@ #else #endif } -#line 7886 "ripper.c" +#line 7896 "ripper.c" break; case YYSYMBOL_keyword_END: /* "`END'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7898,11 +7908,11 @@ #else #endif } -#line 7902 "ripper.c" +#line 7912 "ripper.c" break; case YYSYMBOL_keyword__LINE__: /* "`__LINE__'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7914,11 +7924,11 @@ #else #endif } -#line 7918 "ripper.c" +#line 7928 "ripper.c" break; case YYSYMBOL_keyword__FILE__: /* "`__FILE__'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7930,11 +7940,11 @@ #else #endif } -#line 7934 "ripper.c" +#line 7944 "ripper.c" break; case YYSYMBOL_keyword__ENCODING__: /* "`__ENCODING__'" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -7946,11 +7956,11 @@ #else #endif } -#line 7950 "ripper.c" +#line 7960 "ripper.c" break; case YYSYMBOL_tIDENTIFIER: /* "local variable or method" */ -#line 1926 "ripper.y" +#line 1936 "ripper.y" { #ifndef RIPPER rb_parser_printf(p, "%"PRIsVALUE, rb_id2str(((*yyvaluep).val))); @@ -7958,11 +7968,11 @@ rb_parser_printf(p, "%"PRIsVALUE, RNODE_RIPPER(((*yyvaluep).val))->nd_rval); #endif } -#line 7962 "ripper.c" +#line 7972 "ripper.c" break; case YYSYMBOL_tFID: /* "method" */ -#line 1926 "ripper.y" +#line 1936 "ripper.y" { #ifndef RIPPER rb_parser_printf(p, "%"PRIsVALUE, rb_id2str(((*yyvaluep).val))); @@ -7970,11 +7980,11 @@ rb_parser_printf(p, "%"PRIsVALUE, RNODE_RIPPER(((*yyvaluep).val))->nd_rval); #endif } -#line 7974 "ripper.c" +#line 7984 "ripper.c" break; case YYSYMBOL_tGVAR: /* "global variable" */ -#line 1926 "ripper.y" +#line 1936 "ripper.y" { #ifndef RIPPER rb_parser_printf(p, "%"PRIsVALUE, rb_id2str(((*yyvaluep).val))); @@ -7982,11 +7992,11 @@ rb_parser_printf(p, "%"PRIsVALUE, RNODE_RIPPER(((*yyvaluep).val))->nd_rval); #endif } -#line 7986 "ripper.c" +#line 7996 "ripper.c" break; case YYSYMBOL_tIVAR: /* "instance variable" */ -#line 1926 "ripper.y" +#line 1936 "ripper.y" { #ifndef RIPPER rb_parser_printf(p, "%"PRIsVALUE, rb_id2str(((*yyvaluep).val))); @@ -7994,11 +8004,11 @@ rb_parser_printf(p, "%"PRIsVALUE, RNODE_RIPPER(((*yyvaluep).val))->nd_rval); #endif } -#line 7998 "ripper.c" +#line 8008 "ripper.c" break; case YYSYMBOL_tCONSTANT: /* "constant" */ -#line 1926 "ripper.y" +#line 1936 "ripper.y" { #ifndef RIPPER rb_parser_printf(p, "%"PRIsVALUE, rb_id2str(((*yyvaluep).val))); @@ -8006,11 +8016,11 @@ rb_parser_printf(p, "%"PRIsVALUE, RNODE_RIPPER(((*yyvaluep).val))->nd_rval); #endif } -#line 8010 "ripper.c" +#line 8020 "ripper.c" break; case YYSYMBOL_tCVAR: /* "class variable" */ -#line 1926 "ripper.y" +#line 1936 "ripper.y" { #ifndef RIPPER rb_parser_printf(p, "%"PRIsVALUE, rb_id2str(((*yyvaluep).val))); @@ -8018,11 +8028,11 @@ rb_parser_printf(p, "%"PRIsVALUE, RNODE_RIPPER(((*yyvaluep).val))->nd_rval); #endif } -#line 8022 "ripper.c" +#line 8032 "ripper.c" break; case YYSYMBOL_tLABEL: /* "label" */ -#line 1926 "ripper.y" +#line 1936 "ripper.y" { #ifndef RIPPER rb_parser_printf(p, "%"PRIsVALUE, rb_id2str(((*yyvaluep).val))); @@ -8030,11 +8040,11 @@ rb_parser_printf(p, "%"PRIsVALUE, RNODE_RIPPER(((*yyvaluep).val))->nd_rval); #endif } -#line 8034 "ripper.c" +#line 8044 "ripper.c" break; case YYSYMBOL_tINTEGER: /* "integer literal" */ -#line 1933 "ripper.y" +#line 1943 "ripper.y" { #ifndef RIPPER rb_parser_printf(p, "%+"PRIsVALUE, RNODE_LIT(((*yyvaluep).val))->nd_lit); @@ -8042,11 +8052,11 @@ rb_parser_printf(p, "%+"PRIsVALUE, get_value(((*yyvaluep).val))); #endif } -#line 8046 "ripper.c" +#line 8056 "ripper.c" break; case YYSYMBOL_tFLOAT: /* "float literal" */ -#line 1933 "ripper.y" +#line 1943 "ripper.y" { #ifndef RIPPER rb_parser_printf(p, "%+"PRIsVALUE, RNODE_LIT(((*yyvaluep).val))->nd_lit); @@ -8054,11 +8064,11 @@ rb_parser_printf(p, "%+"PRIsVALUE, get_value(((*yyvaluep).val))); #endif } -#line 8058 "ripper.c" +#line 8068 "ripper.c" break; case YYSYMBOL_tRATIONAL: /* "rational literal" */ -#line 1933 "ripper.y" +#line 1943 "ripper.y" { #ifndef RIPPER rb_parser_printf(p, "%+"PRIsVALUE, RNODE_LIT(((*yyvaluep).val))->nd_lit); @@ -8066,11 +8076,11 @@ rb_parser_printf(p, "%+"PRIsVALUE, get_value(((*yyvaluep).val))); #endif } -#line 8070 "ripper.c" +#line 8080 "ripper.c" break; case YYSYMBOL_tIMAGINARY: /* "imaginary literal" */ -#line 1933 "ripper.y" +#line 1943 "ripper.y" { #ifndef RIPPER rb_parser_printf(p, "%+"PRIsVALUE, RNODE_LIT(((*yyvaluep).val))->nd_lit); @@ -8078,11 +8088,11 @@ rb_parser_printf(p, "%+"PRIsVALUE, get_value(((*yyvaluep).val))); #endif } -#line 8082 "ripper.c" +#line 8092 "ripper.c" break; case YYSYMBOL_tCHAR: /* "char literal" */ -#line 1933 "ripper.y" +#line 1943 "ripper.y" { #ifndef RIPPER rb_parser_printf(p, "%+"PRIsVALUE, RNODE_LIT(((*yyvaluep).val))->nd_lit); @@ -8090,11 +8100,11 @@ rb_parser_printf(p, "%+"PRIsVALUE, get_value(((*yyvaluep).val))); #endif } -#line 8094 "ripper.c" +#line 8104 "ripper.c" break; case YYSYMBOL_tNTH_REF: /* "numbered reference" */ -#line 1940 "ripper.y" +#line 1950 "ripper.y" { #ifndef RIPPER rb_parser_printf(p, "$%ld", RNODE_NTH_REF(((*yyvaluep).val))->nd_nth); @@ -8102,11 +8112,11 @@ rb_parser_printf(p, "%"PRIsVALUE, ((*yyvaluep).val)); #endif } -#line 8106 "ripper.c" +#line 8116 "ripper.c" break; case YYSYMBOL_tBACK_REF: /* "back reference" */ -#line 1947 "ripper.y" +#line 1957 "ripper.y" { #ifndef RIPPER rb_parser_printf(p, "$%c", (int)RNODE_BACK_REF(((*yyvaluep).val))->nd_nth); @@ -8114,11 +8124,11 @@ rb_parser_printf(p, "%"PRIsVALUE, ((*yyvaluep).val)); #endif } -#line 8118 "ripper.c" +#line 8128 "ripper.c" break; case YYSYMBOL_tSTRING_CONTENT: /* "literal content" */ -#line 1933 "ripper.y" +#line 1943 "ripper.y" { #ifndef RIPPER rb_parser_printf(p, "%+"PRIsVALUE, RNODE_LIT(((*yyvaluep).val))->nd_lit); @@ -8126,11 +8136,11 @@ rb_parser_printf(p, "%+"PRIsVALUE, get_value(((*yyvaluep).val))); #endif } -#line 8130 "ripper.c" +#line 8140 "ripper.c" break; case YYSYMBOL_tREGEXP_END: /* tREGEXP_END */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8142,11 +8152,11 @@ #else #endif } -#line 8146 "ripper.c" +#line 8156 "ripper.c" break; case YYSYMBOL_tDUMNY_END: /* "dummy end" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8158,11 +8168,11 @@ #else #endif } -#line 8162 "ripper.c" +#line 8172 "ripper.c" break; case YYSYMBOL_69_: /* '.' */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8174,11 +8184,11 @@ #else #endif } -#line 8178 "ripper.c" +#line 8188 "ripper.c" break; case YYSYMBOL_70_backslash_: /* "backslash" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8190,11 +8200,11 @@ #else #endif } -#line 8194 "ripper.c" +#line 8204 "ripper.c" break; case YYSYMBOL_72_escaped_horizontal_tab_: /* "escaped horizontal tab" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8206,11 +8216,11 @@ #else #endif } -#line 8210 "ripper.c" +#line 8220 "ripper.c" break; case YYSYMBOL_73_escaped_form_feed_: /* "escaped form feed" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8222,11 +8232,11 @@ #else #endif } -#line 8226 "ripper.c" +#line 8236 "ripper.c" break; case YYSYMBOL_74_escaped_carriage_return_: /* "escaped carriage return" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8238,11 +8248,11 @@ #else #endif } -#line 8242 "ripper.c" +#line 8252 "ripper.c" break; case YYSYMBOL_75_escaped_vertical_tab_: /* "escaped vertical tab" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8254,11 +8264,11 @@ #else #endif } -#line 8258 "ripper.c" +#line 8268 "ripper.c" break; case YYSYMBOL_tANDDOT: /* "&." */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8270,11 +8280,11 @@ #else #endif } -#line 8274 "ripper.c" +#line 8284 "ripper.c" break; case YYSYMBOL_tCOLON2: /* "::" */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8286,11 +8296,11 @@ #else #endif } -#line 8290 "ripper.c" +#line 8300 "ripper.c" break; case YYSYMBOL_tOP_ASGN: /* "operator-assignment" */ -#line 1926 "ripper.y" +#line 1936 "ripper.y" { #ifndef RIPPER rb_parser_printf(p, "%"PRIsVALUE, rb_id2str(((*yyvaluep).val))); @@ -8298,11 +8308,11 @@ rb_parser_printf(p, "%"PRIsVALUE, RNODE_RIPPER(((*yyvaluep).val))->nd_rval); #endif } -#line 8302 "ripper.c" +#line 8312 "ripper.c" break; case YYSYMBOL_top_compstmt: /* top_compstmt */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8314,11 +8324,11 @@ #else #endif } -#line 8318 "ripper.c" +#line 8328 "ripper.c" break; case YYSYMBOL_top_stmts: /* top_stmts */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8330,11 +8340,11 @@ #else #endif } -#line 8334 "ripper.c" +#line 8344 "ripper.c" break; case YYSYMBOL_top_stmt: /* top_stmt */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8346,11 +8356,11 @@ #else #endif } -#line 8350 "ripper.c" +#line 8360 "ripper.c" break; case YYSYMBOL_begin_block: /* begin_block */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8362,11 +8372,11 @@ #else #endif } -#line 8366 "ripper.c" +#line 8376 "ripper.c" break; case YYSYMBOL_bodystmt: /* bodystmt */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8378,11 +8388,11 @@ #else #endif } -#line 8382 "ripper.c" +#line 8392 "ripper.c" break; case YYSYMBOL_compstmt: /* compstmt */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8394,11 +8404,11 @@ #else #endif } -#line 8398 "ripper.c" +#line 8408 "ripper.c" break; case YYSYMBOL_stmts: /* stmts */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8410,11 +8420,11 @@ #else #endif } -#line 8414 "ripper.c" +#line 8424 "ripper.c" break; case YYSYMBOL_stmt_or_begin: /* stmt_or_begin */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8426,11 +8436,11 @@ #else #endif } -#line 8430 "ripper.c" +#line 8440 "ripper.c" break; case YYSYMBOL_stmt: /* stmt */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8442,11 +8452,11 @@ #else #endif } -#line 8446 "ripper.c" +#line 8456 "ripper.c" break; case YYSYMBOL_command_asgn: /* command_asgn */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8458,11 +8468,11 @@ #else #endif } -#line 8462 "ripper.c" +#line 8472 "ripper.c" break; case YYSYMBOL_endless_command: /* endless_command */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8474,11 +8484,11 @@ #else #endif } -#line 8478 "ripper.c" +#line 8488 "ripper.c" break; case YYSYMBOL_command_rhs: /* command_rhs */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8490,11 +8500,11 @@ #else #endif } -#line 8494 "ripper.c" +#line 8504 "ripper.c" break; case YYSYMBOL_expr: /* expr */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8506,11 +8516,11 @@ #else #endif } -#line 8510 "ripper.c" +#line 8520 "ripper.c" break; case YYSYMBOL_def_name: /* def_name */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8522,11 +8532,11 @@ #else #endif } -#line 8526 "ripper.c" +#line 8536 "ripper.c" break; case YYSYMBOL_expr_value: /* expr_value */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8538,11 +8548,11 @@ #else #endif } -#line 8542 "ripper.c" +#line 8552 "ripper.c" break; case YYSYMBOL_expr_value_do: /* expr_value_do */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8554,11 +8564,11 @@ #else #endif } -#line 8558 "ripper.c" +#line 8568 "ripper.c" break; case YYSYMBOL_command_call: /* command_call */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8570,11 +8580,11 @@ #else #endif } -#line 8574 "ripper.c" +#line 8584 "ripper.c" break; case YYSYMBOL_block_command: /* block_command */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8586,11 +8596,11 @@ #else #endif } -#line 8590 "ripper.c" +#line 8600 "ripper.c" break; case YYSYMBOL_cmd_brace_block: /* cmd_brace_block */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8602,11 +8612,11 @@ #else #endif } -#line 8606 "ripper.c" +#line 8616 "ripper.c" break; case YYSYMBOL_fcall: /* fcall */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8618,11 +8628,11 @@ #else #endif } -#line 8622 "ripper.c" +#line 8632 "ripper.c" break; case YYSYMBOL_command: /* command */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8634,11 +8644,11 @@ #else #endif } -#line 8638 "ripper.c" +#line 8648 "ripper.c" break; case YYSYMBOL_mlhs: /* mlhs */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8650,11 +8660,11 @@ #else #endif } -#line 8654 "ripper.c" +#line 8664 "ripper.c" break; case YYSYMBOL_mlhs_inner: /* mlhs_inner */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8666,11 +8676,11 @@ #else #endif } -#line 8670 "ripper.c" +#line 8680 "ripper.c" break; case YYSYMBOL_mlhs_basic: /* mlhs_basic */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8682,11 +8692,11 @@ #else #endif } -#line 8686 "ripper.c" +#line 8696 "ripper.c" break; case YYSYMBOL_mlhs_item: /* mlhs_item */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8698,11 +8708,11 @@ #else #endif } -#line 8702 "ripper.c" +#line 8712 "ripper.c" break; case YYSYMBOL_mlhs_head: /* mlhs_head */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8714,11 +8724,11 @@ #else #endif } -#line 8718 "ripper.c" +#line 8728 "ripper.c" break; case YYSYMBOL_mlhs_post: /* mlhs_post */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8730,11 +8740,11 @@ #else #endif } -#line 8734 "ripper.c" +#line 8744 "ripper.c" break; case YYSYMBOL_mlhs_node: /* mlhs_node */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8746,11 +8756,11 @@ #else #endif } -#line 8750 "ripper.c" +#line 8760 "ripper.c" break; case YYSYMBOL_lhs: /* lhs */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8762,11 +8772,11 @@ #else #endif } -#line 8766 "ripper.c" +#line 8776 "ripper.c" break; case YYSYMBOL_cname: /* cname */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8778,11 +8788,11 @@ #else #endif } -#line 8782 "ripper.c" +#line 8792 "ripper.c" break; case YYSYMBOL_cpath: /* cpath */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8794,11 +8804,11 @@ #else #endif } -#line 8798 "ripper.c" +#line 8808 "ripper.c" break; case YYSYMBOL_fname: /* fname */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8810,11 +8820,11 @@ #else #endif } -#line 8814 "ripper.c" +#line 8824 "ripper.c" break; case YYSYMBOL_fitem: /* fitem */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8826,11 +8836,11 @@ #else #endif } -#line 8830 "ripper.c" +#line 8840 "ripper.c" break; case YYSYMBOL_undef_list: /* undef_list */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8842,11 +8852,11 @@ #else #endif } -#line 8846 "ripper.c" +#line 8856 "ripper.c" break; case YYSYMBOL_op: /* op */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8858,11 +8868,11 @@ #else #endif } -#line 8862 "ripper.c" +#line 8872 "ripper.c" break; case YYSYMBOL_reswords: /* reswords */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8874,11 +8884,11 @@ #else #endif } -#line 8878 "ripper.c" +#line 8888 "ripper.c" break; case YYSYMBOL_arg: /* arg */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8890,11 +8900,11 @@ #else #endif } -#line 8894 "ripper.c" +#line 8904 "ripper.c" break; case YYSYMBOL_endless_arg: /* endless_arg */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8906,11 +8916,11 @@ #else #endif } -#line 8910 "ripper.c" +#line 8920 "ripper.c" break; case YYSYMBOL_relop: /* relop */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8922,11 +8932,11 @@ #else #endif } -#line 8926 "ripper.c" +#line 8936 "ripper.c" break; case YYSYMBOL_rel_expr: /* rel_expr */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8938,11 +8948,11 @@ #else #endif } -#line 8942 "ripper.c" +#line 8952 "ripper.c" break; case YYSYMBOL_arg_value: /* arg_value */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8954,11 +8964,11 @@ #else #endif } -#line 8958 "ripper.c" +#line 8968 "ripper.c" break; case YYSYMBOL_aref_args: /* aref_args */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8970,11 +8980,11 @@ #else #endif } -#line 8974 "ripper.c" +#line 8984 "ripper.c" break; case YYSYMBOL_arg_rhs: /* arg_rhs */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -8986,11 +8996,11 @@ #else #endif } -#line 8990 "ripper.c" +#line 9000 "ripper.c" break; case YYSYMBOL_paren_args: /* paren_args */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9002,11 +9012,11 @@ #else #endif } -#line 9006 "ripper.c" +#line 9016 "ripper.c" break; case YYSYMBOL_opt_paren_args: /* opt_paren_args */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9018,11 +9028,11 @@ #else #endif } -#line 9022 "ripper.c" +#line 9032 "ripper.c" break; case YYSYMBOL_opt_call_args: /* opt_call_args */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9034,11 +9044,11 @@ #else #endif } -#line 9038 "ripper.c" +#line 9048 "ripper.c" break; case YYSYMBOL_call_args: /* call_args */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9050,11 +9060,11 @@ #else #endif } -#line 9054 "ripper.c" +#line 9064 "ripper.c" break; case YYSYMBOL_command_args: /* command_args */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9066,11 +9076,11 @@ #else #endif } -#line 9070 "ripper.c" +#line 9080 "ripper.c" break; case YYSYMBOL_block_arg: /* block_arg */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9082,11 +9092,11 @@ #else #endif } -#line 9086 "ripper.c" +#line 9096 "ripper.c" break; case YYSYMBOL_opt_block_arg: /* opt_block_arg */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9098,11 +9108,11 @@ #else #endif } -#line 9102 "ripper.c" +#line 9112 "ripper.c" break; case YYSYMBOL_args: /* args */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9114,11 +9124,11 @@ #else #endif } -#line 9118 "ripper.c" +#line 9128 "ripper.c" break; case YYSYMBOL_arg_splat: /* arg_splat */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9130,11 +9140,11 @@ #else #endif } -#line 9134 "ripper.c" +#line 9144 "ripper.c" break; case YYSYMBOL_mrhs_arg: /* mrhs_arg */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9146,11 +9156,11 @@ #else #endif } -#line 9150 "ripper.c" +#line 9160 "ripper.c" break; case YYSYMBOL_mrhs: /* mrhs */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9162,11 +9172,11 @@ #else #endif } -#line 9166 "ripper.c" +#line 9176 "ripper.c" break; case YYSYMBOL_primary: /* primary */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9178,11 +9188,11 @@ #else #endif } -#line 9182 "ripper.c" +#line 9192 "ripper.c" break; case YYSYMBOL_primary_value: /* primary_value */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9194,11 +9204,11 @@ #else #endif } -#line 9198 "ripper.c" +#line 9208 "ripper.c" break; case YYSYMBOL_if_tail: /* if_tail */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9210,11 +9220,11 @@ #else #endif } -#line 9214 "ripper.c" +#line 9224 "ripper.c" break; case YYSYMBOL_opt_else: /* opt_else */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9226,11 +9236,11 @@ #else #endif } -#line 9230 "ripper.c" +#line 9240 "ripper.c" break; case YYSYMBOL_for_var: /* for_var */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9242,11 +9252,11 @@ #else #endif } -#line 9246 "ripper.c" +#line 9256 "ripper.c" break; case YYSYMBOL_f_marg: /* f_marg */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9258,11 +9268,11 @@ #else #endif } -#line 9262 "ripper.c" +#line 9272 "ripper.c" break; case YYSYMBOL_f_marg_list: /* f_marg_list */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9274,11 +9284,11 @@ #else #endif } -#line 9278 "ripper.c" +#line 9288 "ripper.c" break; case YYSYMBOL_f_margs: /* f_margs */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9290,11 +9300,11 @@ #else #endif } -#line 9294 "ripper.c" +#line 9304 "ripper.c" break; case YYSYMBOL_f_rest_marg: /* f_rest_marg */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9306,11 +9316,11 @@ #else #endif } -#line 9310 "ripper.c" +#line 9320 "ripper.c" break; case YYSYMBOL_f_any_kwrest: /* f_any_kwrest */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9322,11 +9332,11 @@ #else #endif } -#line 9326 "ripper.c" +#line 9336 "ripper.c" break; case YYSYMBOL_block_args_tail: /* block_args_tail */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9338,11 +9348,11 @@ #else #endif } -#line 9342 "ripper.c" +#line 9352 "ripper.c" break; case YYSYMBOL_opt_block_args_tail: /* opt_block_args_tail */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9354,11 +9364,11 @@ #else #endif } -#line 9358 "ripper.c" +#line 9368 "ripper.c" break; case YYSYMBOL_excessed_comma: /* excessed_comma */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9370,11 +9380,11 @@ #else #endif } -#line 9374 "ripper.c" +#line 9384 "ripper.c" break; case YYSYMBOL_block_param: /* block_param */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9386,11 +9396,11 @@ #else #endif } -#line 9390 "ripper.c" +#line 9400 "ripper.c" break; case YYSYMBOL_opt_block_param: /* opt_block_param */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9402,11 +9412,11 @@ #else #endif } -#line 9406 "ripper.c" +#line 9416 "ripper.c" break; case YYSYMBOL_block_param_def: /* block_param_def */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9418,11 +9428,11 @@ #else #endif } -#line 9422 "ripper.c" +#line 9432 "ripper.c" break; case YYSYMBOL_opt_bv_decl: /* opt_bv_decl */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9434,11 +9444,11 @@ #else #endif } -#line 9438 "ripper.c" +#line 9448 "ripper.c" break; case YYSYMBOL_bv_decls: /* bv_decls */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9450,11 +9460,11 @@ #else #endif } -#line 9454 "ripper.c" +#line 9464 "ripper.c" break; case YYSYMBOL_bvar: /* bvar */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9466,11 +9476,11 @@ #else #endif } -#line 9470 "ripper.c" +#line 9480 "ripper.c" break; case YYSYMBOL_lambda: /* lambda */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9482,11 +9492,11 @@ #else #endif } -#line 9486 "ripper.c" +#line 9496 "ripper.c" break; case YYSYMBOL_f_larglist: /* f_larglist */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9498,11 +9508,11 @@ #else #endif } -#line 9502 "ripper.c" +#line 9512 "ripper.c" break; case YYSYMBOL_lambda_body: /* lambda_body */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9514,11 +9524,11 @@ #else #endif } -#line 9518 "ripper.c" +#line 9528 "ripper.c" break; case YYSYMBOL_do_block: /* do_block */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9530,11 +9540,11 @@ #else #endif } -#line 9534 "ripper.c" +#line 9544 "ripper.c" break; case YYSYMBOL_block_call: /* block_call */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9546,11 +9556,11 @@ #else #endif } -#line 9550 "ripper.c" +#line 9560 "ripper.c" break; case YYSYMBOL_method_call: /* method_call */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9562,11 +9572,11 @@ #else #endif } -#line 9566 "ripper.c" +#line 9576 "ripper.c" break; case YYSYMBOL_brace_block: /* brace_block */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9578,11 +9588,11 @@ #else #endif } -#line 9582 "ripper.c" +#line 9592 "ripper.c" break; case YYSYMBOL_brace_body: /* brace_body */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9594,11 +9604,11 @@ #else #endif } -#line 9598 "ripper.c" +#line 9608 "ripper.c" break; case YYSYMBOL_do_body: /* do_body */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9610,11 +9620,11 @@ #else #endif } -#line 9614 "ripper.c" +#line 9624 "ripper.c" break; case YYSYMBOL_case_args: /* case_args */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9626,11 +9636,11 @@ #else #endif } -#line 9630 "ripper.c" +#line 9640 "ripper.c" break; case YYSYMBOL_case_body: /* case_body */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9642,11 +9652,11 @@ #else #endif } -#line 9646 "ripper.c" +#line 9656 "ripper.c" break; case YYSYMBOL_cases: /* cases */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9658,11 +9668,11 @@ #else #endif } -#line 9662 "ripper.c" +#line 9672 "ripper.c" break; case YYSYMBOL_p_case_body: /* p_case_body */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9674,11 +9684,11 @@ #else #endif } -#line 9678 "ripper.c" +#line 9688 "ripper.c" break; case YYSYMBOL_p_cases: /* p_cases */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9690,11 +9700,11 @@ #else #endif } -#line 9694 "ripper.c" +#line 9704 "ripper.c" break; case YYSYMBOL_p_top_expr: /* p_top_expr */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9706,11 +9716,11 @@ #else #endif } -#line 9710 "ripper.c" +#line 9720 "ripper.c" break; case YYSYMBOL_p_top_expr_body: /* p_top_expr_body */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9722,11 +9732,11 @@ #else #endif } -#line 9726 "ripper.c" +#line 9736 "ripper.c" break; case YYSYMBOL_p_expr: /* p_expr */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9738,11 +9748,11 @@ #else #endif } -#line 9742 "ripper.c" +#line 9752 "ripper.c" break; case YYSYMBOL_p_as: /* p_as */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9754,11 +9764,11 @@ #else #endif } -#line 9758 "ripper.c" +#line 9768 "ripper.c" break; case YYSYMBOL_p_alt: /* p_alt */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9770,11 +9780,11 @@ #else #endif } -#line 9774 "ripper.c" +#line 9784 "ripper.c" break; case YYSYMBOL_p_expr_basic: /* p_expr_basic */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9786,11 +9796,11 @@ #else #endif } -#line 9790 "ripper.c" +#line 9800 "ripper.c" break; case YYSYMBOL_p_args: /* p_args */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9802,11 +9812,11 @@ #else #endif } -#line 9806 "ripper.c" +#line 9816 "ripper.c" break; case YYSYMBOL_p_args_head: /* p_args_head */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9818,11 +9828,11 @@ #else #endif } -#line 9822 "ripper.c" +#line 9832 "ripper.c" break; case YYSYMBOL_p_args_tail: /* p_args_tail */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9834,11 +9844,11 @@ #else #endif } -#line 9838 "ripper.c" +#line 9848 "ripper.c" break; case YYSYMBOL_p_find: /* p_find */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9850,11 +9860,11 @@ #else #endif } -#line 9854 "ripper.c" +#line 9864 "ripper.c" break; case YYSYMBOL_p_rest: /* p_rest */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9866,11 +9876,11 @@ #else #endif } -#line 9870 "ripper.c" +#line 9880 "ripper.c" break; case YYSYMBOL_p_args_post: /* p_args_post */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9882,11 +9892,11 @@ #else #endif } -#line 9886 "ripper.c" +#line 9896 "ripper.c" break; case YYSYMBOL_p_arg: /* p_arg */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9898,11 +9908,11 @@ #else #endif } -#line 9902 "ripper.c" +#line 9912 "ripper.c" break; case YYSYMBOL_p_kwargs: /* p_kwargs */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9914,11 +9924,11 @@ #else #endif } -#line 9918 "ripper.c" +#line 9928 "ripper.c" break; case YYSYMBOL_p_kwarg: /* p_kwarg */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9930,11 +9940,11 @@ #else #endif } -#line 9934 "ripper.c" +#line 9944 "ripper.c" break; case YYSYMBOL_p_kw: /* p_kw */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9946,11 +9956,11 @@ #else #endif } -#line 9950 "ripper.c" +#line 9960 "ripper.c" break; case YYSYMBOL_p_kw_label: /* p_kw_label */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9962,11 +9972,11 @@ #else #endif } -#line 9966 "ripper.c" +#line 9976 "ripper.c" break; case YYSYMBOL_p_kwrest: /* p_kwrest */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9978,11 +9988,11 @@ #else #endif } -#line 9982 "ripper.c" +#line 9992 "ripper.c" break; case YYSYMBOL_p_kwnorest: /* p_kwnorest */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -9994,11 +10004,11 @@ #else #endif } -#line 9998 "ripper.c" +#line 10008 "ripper.c" break; case YYSYMBOL_p_any_kwrest: /* p_any_kwrest */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10010,11 +10020,11 @@ #else #endif } -#line 10014 "ripper.c" +#line 10024 "ripper.c" break; case YYSYMBOL_p_value: /* p_value */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10026,11 +10036,11 @@ #else #endif } -#line 10030 "ripper.c" +#line 10040 "ripper.c" break; case YYSYMBOL_p_primitive: /* p_primitive */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10042,11 +10052,11 @@ #else #endif } -#line 10046 "ripper.c" +#line 10056 "ripper.c" break; case YYSYMBOL_p_variable: /* p_variable */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10058,11 +10068,11 @@ #else #endif } -#line 10062 "ripper.c" +#line 10072 "ripper.c" break; case YYSYMBOL_p_var_ref: /* p_var_ref */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10074,11 +10084,11 @@ #else #endif } -#line 10078 "ripper.c" +#line 10088 "ripper.c" break; case YYSYMBOL_p_expr_ref: /* p_expr_ref */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10090,11 +10100,11 @@ #else #endif } -#line 10094 "ripper.c" +#line 10104 "ripper.c" break; case YYSYMBOL_p_const: /* p_const */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10106,11 +10116,11 @@ #else #endif } -#line 10110 "ripper.c" +#line 10120 "ripper.c" break; case YYSYMBOL_opt_rescue: /* opt_rescue */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10122,11 +10132,11 @@ #else #endif } -#line 10126 "ripper.c" +#line 10136 "ripper.c" break; case YYSYMBOL_exc_list: /* exc_list */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10138,11 +10148,11 @@ #else #endif } -#line 10142 "ripper.c" +#line 10152 "ripper.c" break; case YYSYMBOL_exc_var: /* exc_var */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10154,11 +10164,11 @@ #else #endif } -#line 10158 "ripper.c" +#line 10168 "ripper.c" break; case YYSYMBOL_opt_ensure: /* opt_ensure */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10170,11 +10180,11 @@ #else #endif } -#line 10174 "ripper.c" +#line 10184 "ripper.c" break; case YYSYMBOL_literal: /* literal */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10186,11 +10196,11 @@ #else #endif } -#line 10190 "ripper.c" +#line 10200 "ripper.c" break; case YYSYMBOL_strings: /* strings */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10202,11 +10212,11 @@ #else #endif } -#line 10206 "ripper.c" +#line 10216 "ripper.c" break; case YYSYMBOL_string: /* string */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10218,11 +10228,11 @@ #else #endif } -#line 10222 "ripper.c" +#line 10232 "ripper.c" break; case YYSYMBOL_string1: /* string1 */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10234,11 +10244,11 @@ #else #endif } -#line 10238 "ripper.c" +#line 10248 "ripper.c" break; case YYSYMBOL_xstring: /* xstring */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10250,11 +10260,11 @@ #else #endif } -#line 10254 "ripper.c" +#line 10264 "ripper.c" break; case YYSYMBOL_regexp: /* regexp */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10266,11 +10276,11 @@ #else #endif } -#line 10270 "ripper.c" +#line 10280 "ripper.c" break; case YYSYMBOL_words: /* words */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10282,11 +10292,11 @@ #else #endif } -#line 10286 "ripper.c" +#line 10296 "ripper.c" break; case YYSYMBOL_word_list: /* word_list */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10298,11 +10308,11 @@ #else #endif } -#line 10302 "ripper.c" +#line 10312 "ripper.c" break; case YYSYMBOL_word: /* word */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10314,11 +10324,11 @@ #else #endif } -#line 10318 "ripper.c" +#line 10328 "ripper.c" break; case YYSYMBOL_symbols: /* symbols */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10330,11 +10340,11 @@ #else #endif } -#line 10334 "ripper.c" +#line 10344 "ripper.c" break; case YYSYMBOL_symbol_list: /* symbol_list */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10346,11 +10356,11 @@ #else #endif } -#line 10350 "ripper.c" +#line 10360 "ripper.c" break; case YYSYMBOL_qwords: /* qwords */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10362,11 +10372,11 @@ #else #endif } -#line 10366 "ripper.c" +#line 10376 "ripper.c" break; case YYSYMBOL_qsymbols: /* qsymbols */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10378,11 +10388,11 @@ #else #endif } -#line 10382 "ripper.c" +#line 10392 "ripper.c" break; case YYSYMBOL_qword_list: /* qword_list */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10394,11 +10404,11 @@ #else #endif } -#line 10398 "ripper.c" +#line 10408 "ripper.c" break; case YYSYMBOL_qsym_list: /* qsym_list */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10410,11 +10420,11 @@ #else #endif } -#line 10414 "ripper.c" +#line 10424 "ripper.c" break; case YYSYMBOL_string_contents: /* string_contents */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10426,11 +10436,11 @@ #else #endif } -#line 10430 "ripper.c" +#line 10440 "ripper.c" break; case YYSYMBOL_xstring_contents: /* xstring_contents */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10442,11 +10452,11 @@ #else #endif } -#line 10446 "ripper.c" +#line 10456 "ripper.c" break; case YYSYMBOL_regexp_contents: /* regexp_contents */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10458,11 +10468,11 @@ #else #endif } -#line 10462 "ripper.c" +#line 10472 "ripper.c" break; case YYSYMBOL_string_content: /* string_content */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10474,11 +10484,11 @@ #else #endif } -#line 10478 "ripper.c" +#line 10488 "ripper.c" break; case YYSYMBOL_string_dvar: /* string_dvar */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10490,11 +10500,11 @@ #else #endif } -#line 10494 "ripper.c" +#line 10504 "ripper.c" break; case YYSYMBOL_symbol: /* symbol */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10506,11 +10516,11 @@ #else #endif } -#line 10510 "ripper.c" +#line 10520 "ripper.c" break; case YYSYMBOL_ssym: /* ssym */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10522,11 +10532,11 @@ #else #endif } -#line 10526 "ripper.c" +#line 10536 "ripper.c" break; case YYSYMBOL_sym: /* sym */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10538,11 +10548,11 @@ #else #endif } -#line 10542 "ripper.c" +#line 10552 "ripper.c" break; case YYSYMBOL_dsym: /* dsym */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10554,11 +10564,11 @@ #else #endif } -#line 10558 "ripper.c" +#line 10568 "ripper.c" break; case YYSYMBOL_numeric: /* numeric */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10570,11 +10580,11 @@ #else #endif } -#line 10574 "ripper.c" +#line 10584 "ripper.c" break; case YYSYMBOL_simple_numeric: /* simple_numeric */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10586,11 +10596,11 @@ #else #endif } -#line 10590 "ripper.c" +#line 10600 "ripper.c" break; case YYSYMBOL_nonlocal_var: /* nonlocal_var */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10602,11 +10612,11 @@ #else #endif } -#line 10606 "ripper.c" +#line 10616 "ripper.c" break; case YYSYMBOL_user_variable: /* user_variable */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10618,11 +10628,11 @@ #else #endif } -#line 10622 "ripper.c" +#line 10632 "ripper.c" break; case YYSYMBOL_keyword_variable: /* keyword_variable */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10634,11 +10644,11 @@ #else #endif } -#line 10638 "ripper.c" +#line 10648 "ripper.c" break; case YYSYMBOL_var_ref: /* var_ref */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10650,11 +10660,11 @@ #else #endif } -#line 10654 "ripper.c" +#line 10664 "ripper.c" break; case YYSYMBOL_var_lhs: /* var_lhs */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10666,11 +10676,11 @@ #else #endif } -#line 10670 "ripper.c" +#line 10680 "ripper.c" break; case YYSYMBOL_backref: /* backref */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10682,11 +10692,11 @@ #else #endif } -#line 10686 "ripper.c" +#line 10696 "ripper.c" break; case YYSYMBOL_superclass: /* superclass */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10698,11 +10708,11 @@ #else #endif } -#line 10702 "ripper.c" +#line 10712 "ripper.c" break; case YYSYMBOL_f_opt_paren_args: /* f_opt_paren_args */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10714,11 +10724,11 @@ #else #endif } -#line 10718 "ripper.c" +#line 10728 "ripper.c" break; case YYSYMBOL_f_paren_args: /* f_paren_args */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10730,11 +10740,11 @@ #else #endif } -#line 10734 "ripper.c" +#line 10744 "ripper.c" break; case YYSYMBOL_f_arglist: /* f_arglist */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10746,11 +10756,11 @@ #else #endif } -#line 10750 "ripper.c" +#line 10760 "ripper.c" break; case YYSYMBOL_args_tail: /* args_tail */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10762,11 +10772,11 @@ #else #endif } -#line 10766 "ripper.c" +#line 10776 "ripper.c" break; case YYSYMBOL_opt_args_tail: /* opt_args_tail */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10778,11 +10788,11 @@ #else #endif } -#line 10782 "ripper.c" +#line 10792 "ripper.c" break; case YYSYMBOL_f_args: /* f_args */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10794,11 +10804,11 @@ #else #endif } -#line 10798 "ripper.c" +#line 10808 "ripper.c" break; case YYSYMBOL_args_forward: /* args_forward */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10810,11 +10820,11 @@ #else #endif } -#line 10814 "ripper.c" +#line 10824 "ripper.c" break; case YYSYMBOL_f_bad_arg: /* f_bad_arg */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10826,11 +10836,11 @@ #else #endif } -#line 10830 "ripper.c" +#line 10840 "ripper.c" break; case YYSYMBOL_f_norm_arg: /* f_norm_arg */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10842,11 +10852,11 @@ #else #endif } -#line 10846 "ripper.c" +#line 10856 "ripper.c" break; case YYSYMBOL_f_arg_asgn: /* f_arg_asgn */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10858,11 +10868,11 @@ #else #endif } -#line 10862 "ripper.c" +#line 10872 "ripper.c" break; case YYSYMBOL_f_arg_item: /* f_arg_item */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10874,11 +10884,11 @@ #else #endif } -#line 10878 "ripper.c" +#line 10888 "ripper.c" break; case YYSYMBOL_f_arg: /* f_arg */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10890,11 +10900,11 @@ #else #endif } -#line 10894 "ripper.c" +#line 10904 "ripper.c" break; case YYSYMBOL_f_label: /* f_label */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10906,11 +10916,11 @@ #else #endif } -#line 10910 "ripper.c" +#line 10920 "ripper.c" break; case YYSYMBOL_f_kw: /* f_kw */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10922,11 +10932,11 @@ #else #endif } -#line 10926 "ripper.c" +#line 10936 "ripper.c" break; case YYSYMBOL_f_block_kw: /* f_block_kw */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10938,11 +10948,11 @@ #else #endif } -#line 10942 "ripper.c" +#line 10952 "ripper.c" break; case YYSYMBOL_f_block_kwarg: /* f_block_kwarg */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10954,11 +10964,11 @@ #else #endif } -#line 10958 "ripper.c" +#line 10968 "ripper.c" break; case YYSYMBOL_f_kwarg: /* f_kwarg */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10970,11 +10980,11 @@ #else #endif } -#line 10974 "ripper.c" +#line 10984 "ripper.c" break; case YYSYMBOL_f_no_kwarg: /* f_no_kwarg */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -10986,11 +10996,11 @@ #else #endif } -#line 10990 "ripper.c" +#line 11000 "ripper.c" break; case YYSYMBOL_f_kwrest: /* f_kwrest */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -11002,11 +11012,11 @@ #else #endif } -#line 11006 "ripper.c" +#line 11016 "ripper.c" break; case YYSYMBOL_f_opt: /* f_opt */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -11018,11 +11028,11 @@ #else #endif } -#line 11022 "ripper.c" +#line 11032 "ripper.c" break; case YYSYMBOL_f_block_opt: /* f_block_opt */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -11034,11 +11044,11 @@ #else #endif } -#line 11038 "ripper.c" +#line 11048 "ripper.c" break; case YYSYMBOL_f_block_optarg: /* f_block_optarg */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -11050,11 +11060,11 @@ #else #endif } -#line 11054 "ripper.c" +#line 11064 "ripper.c" break; case YYSYMBOL_f_optarg: /* f_optarg */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -11066,11 +11076,11 @@ #else #endif } -#line 11070 "ripper.c" +#line 11080 "ripper.c" break; case YYSYMBOL_f_rest_arg: /* f_rest_arg */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -11082,11 +11092,11 @@ #else #endif } -#line 11086 "ripper.c" +#line 11096 "ripper.c" break; case YYSYMBOL_f_block_arg: /* f_block_arg */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -11098,11 +11108,11 @@ #else #endif } -#line 11102 "ripper.c" +#line 11112 "ripper.c" break; case YYSYMBOL_opt_f_block_arg: /* opt_f_block_arg */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -11114,11 +11124,11 @@ #else #endif } -#line 11118 "ripper.c" +#line 11128 "ripper.c" break; case YYSYMBOL_singleton: /* singleton */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -11130,11 +11140,11 @@ #else #endif } -#line 11134 "ripper.c" +#line 11144 "ripper.c" break; case YYSYMBOL_assoc_list: /* assoc_list */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -11146,11 +11156,11 @@ #else #endif } -#line 11150 "ripper.c" +#line 11160 "ripper.c" break; case YYSYMBOL_assocs: /* assocs */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -11162,11 +11172,11 @@ #else #endif } -#line 11166 "ripper.c" +#line 11176 "ripper.c" break; case YYSYMBOL_assoc: /* assoc */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -11178,11 +11188,11 @@ #else #endif } -#line 11182 "ripper.c" +#line 11192 "ripper.c" break; case YYSYMBOL_operation: /* operation */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -11194,11 +11204,11 @@ #else #endif } -#line 11198 "ripper.c" +#line 11208 "ripper.c" break; case YYSYMBOL_operation2: /* operation2 */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -11210,11 +11220,11 @@ #else #endif } -#line 11214 "ripper.c" +#line 11224 "ripper.c" break; case YYSYMBOL_operation3: /* operation3 */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -11226,11 +11236,11 @@ #else #endif } -#line 11230 "ripper.c" +#line 11240 "ripper.c" break; case YYSYMBOL_dot_or_colon: /* dot_or_colon */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -11242,11 +11252,11 @@ #else #endif } -#line 11246 "ripper.c" +#line 11256 "ripper.c" break; case YYSYMBOL_call_op: /* call_op */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -11258,11 +11268,11 @@ #else #endif } -#line 11262 "ripper.c" +#line 11272 "ripper.c" break; case YYSYMBOL_call_op2: /* call_op2 */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -11274,11 +11284,11 @@ #else #endif } -#line 11278 "ripper.c" +#line 11288 "ripper.c" break; case YYSYMBOL_none: /* none */ -#line 1915 "ripper.y" +#line 1925 "ripper.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).val) == (NODE *)-1) { @@ -11290,7 +11300,7 @@ #else #endif } -#line 11294 "ripper.c" +#line 11304 "ripper.c" break; default: @@ -11783,12 +11793,12 @@ /* User initialization code. */ -#line 1958 "ripper.y" +#line 1968 "ripper.y" { RUBY_SET_YYLLOC_OF_NONE(yylloc); } -#line 11792 "ripper.c" +#line 11802 "ripper.c" yylsp[0] = yylloc; goto yysetstate; @@ -11999,18 +12009,18 @@ switch (yyn) { case 2: /* $@1: %empty */ -#line 2193 "ripper.y" +#line 2203 "ripper.y" { SET_LEX_STATE(EXPR_BEG); local_push(p, ifndef_ripper(1)+0); /* jumps are possible in the top-level loop. */ if (!ifndef_ripper(p->do_loop) + 0) init_block_exit(p); } -#line 12010 "ripper.c" +#line 12020 "ripper.c" break; case 3: /* program: $@1 top_compstmt */ -#line 2200 "ripper.y" +#line 2210 "ripper.y" { #if 0 if ((yyvsp[0].val) && !compile_for_eval) { @@ -12030,75 +12040,75 @@ {VALUE v1,v2;v1=(yyvsp[0].val);v2=dispatch1(program,v1);p->result=v2;} local_pop(p); } -#line 12034 "ripper.c" +#line 12044 "ripper.c" break; case 4: /* top_compstmt: top_stmts opt_terms */ -#line 2222 "ripper.y" +#line 2232 "ripper.y" { (yyval.val) = void_stmts(p, (yyvsp[-1].val)); } -#line 12042 "ripper.c" +#line 12052 "ripper.c" break; case 5: /* top_stmts: none */ -#line 2228 "ripper.y" +#line 2238 "ripper.y" { #if 0 (yyval.val) = NEW_BEGIN(0, &(yyloc)); #endif {VALUE v1,v2,v3,v4,v5;v1=dispatch0(stmts_new);v2=dispatch0(void_stmt);v3=v1;v4=v2;v5=dispatch2(stmts_add,v3,v4);(yyval.val)=v5;} } -#line 12053 "ripper.c" +#line 12063 "ripper.c" break; case 6: /* top_stmts: top_stmt */ -#line 2235 "ripper.y" +#line 2245 "ripper.y" { #if 0 (yyval.val) = newline_node((yyvsp[0].val)); #endif {VALUE v1,v2,v3,v4;v1=dispatch0(stmts_new);v2=v1;v3=(yyvsp[0].val);v4=dispatch2(stmts_add,v2,v3);(yyval.val)=v4;} } -#line 12064 "ripper.c" +#line 12074 "ripper.c" break; case 7: /* top_stmts: top_stmts terms top_stmt */ -#line 2242 "ripper.y" +#line 2252 "ripper.y" { #if 0 (yyval.val) = block_append(p, (yyvsp[-2].val), newline_node((yyvsp[0].val))); #endif {VALUE v1,v2,v3;v1=(yyvsp[-2].val);v2=(yyvsp[0].val);v3=dispatch2(stmts_add,v1,v2);(yyval.val)=v3;} } -#line 12075 "ripper.c" +#line 12085 "ripper.c" break; case 8: /* top_stmt: stmt */ -#line 2251 "ripper.y" +#line 2261 "ripper.y" { clear_block_exit(p, true); (yyval.val) = (yyvsp[0].val); } -#line 12084 "ripper.c" +#line 12094 "ripper.c" break; case 9: /* top_stmt: "`BEGIN'" begin_block */ -#line 2256 "ripper.y" +#line 2266 "ripper.y" { (yyval.val) = (yyvsp[0].val); } -#line 12092 "ripper.c" +#line 12102 "ripper.c" break; case 10: /* block_open: '{' */ -#line 2261 "ripper.y" +#line 2271 "ripper.y" {(yyval.node_exits) = init_block_exit(p);} -#line 12098 "ripper.c" +#line 12108 "ripper.c" break; case 11: /* begin_block: block_open top_compstmt '}' */ -#line 2264 "ripper.y" +#line 2274 "ripper.y" { restore_block_exit(p, (yyvsp[-2].node_exits)); #if 0 @@ -12108,166 +12118,166 @@ #endif {VALUE v1,v2;v1=(yyvsp[-1].val);v2=dispatch1(BEGIN,v1);(yyval.val)=v2;} } -#line 12112 "ripper.c" +#line 12122 "ripper.c" break; case 12: /* $@2: %empty */ -#line 2279 "ripper.y" +#line 2289 "ripper.y" { if (!(yyvsp[-1].val)) yyerror1(&(yylsp[0]), "else without rescue is useless"); next_rescue_context(&p->ctxt, &(yyvsp[-2].ctxt), after_else); } -#line 12121 "ripper.c" +#line 12131 "ripper.c" break; case 13: /* $@3: %empty */ -#line 2284 "ripper.y" +#line 2294 "ripper.y" { next_rescue_context(&p->ctxt, &(yyvsp[-4].ctxt), after_ensure); } -#line 12129 "ripper.c" +#line 12139 "ripper.c" break; case 14: /* bodystmt: compstmt lex_ctxt opt_rescue k_else $@2 compstmt $@3 opt_ensure */ -#line 2288 "ripper.y" +#line 2298 "ripper.y" { #if 0 (yyval.val) = new_bodystmt(p, (yyvsp[-7].val), (yyvsp[-5].val), (yyvsp[-2].val), (yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2,v3,v4,v5;v1=(yyvsp[-7].val);v2=(yyvsp[-5].val);v3=(yyvsp[-2].val);v4=(yyvsp[0].val);v5=dispatch4(bodystmt,v1,v2,v3,v4);(yyval.val)=v5;} } -#line 12140 "ripper.c" +#line 12150 "ripper.c" break; case 15: /* $@4: %empty */ -#line 2297 "ripper.y" +#line 2307 "ripper.y" { next_rescue_context(&p->ctxt, &(yyvsp[-1].ctxt), after_ensure); } -#line 12148 "ripper.c" +#line 12158 "ripper.c" break; case 16: /* bodystmt: compstmt lex_ctxt opt_rescue $@4 opt_ensure */ -#line 2301 "ripper.y" +#line 2311 "ripper.y" { #if 0 (yyval.val) = new_bodystmt(p, (yyvsp[-4].val), (yyvsp[-2].val), 0, (yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2,v3,v4,v5;v1=(yyvsp[-4].val);v2=(yyvsp[-2].val);v3=Qnil;v4=(yyvsp[0].val);v5=dispatch4(bodystmt,v1,v2,v3,v4);(yyval.val)=v5;} } -#line 12159 "ripper.c" +#line 12169 "ripper.c" break; case 17: /* compstmt: stmts opt_terms */ -#line 2310 "ripper.y" +#line 2320 "ripper.y" { (yyval.val) = void_stmts(p, (yyvsp[-1].val)); } -#line 12167 "ripper.c" +#line 12177 "ripper.c" break; case 18: /* stmts: none */ -#line 2316 "ripper.y" +#line 2326 "ripper.y" { #if 0 (yyval.val) = NEW_BEGIN(0, &(yyloc)); #endif {VALUE v1,v2,v3,v4,v5;v1=dispatch0(stmts_new);v2=dispatch0(void_stmt);v3=v1;v4=v2;v5=dispatch2(stmts_add,v3,v4);(yyval.val)=v5;} } -#line 12178 "ripper.c" +#line 12188 "ripper.c" break; case 19: /* stmts: stmt_or_begin */ -#line 2323 "ripper.y" +#line 2333 "ripper.y" { #if 0 (yyval.val) = newline_node((yyvsp[0].val)); #endif {VALUE v1,v2,v3,v4;v1=dispatch0(stmts_new);v2=v1;v3=(yyvsp[0].val);v4=dispatch2(stmts_add,v2,v3);(yyval.val)=v4;} } -#line 12189 "ripper.c" +#line 12199 "ripper.c" break; case 20: /* stmts: stmts terms stmt_or_begin */ -#line 2330 "ripper.y" +#line 2340 "ripper.y" { #if 0 (yyval.val) = block_append(p, (yyvsp[-2].val), newline_node((yyvsp[0].val))); #endif {VALUE v1,v2,v3;v1=(yyvsp[-2].val);v2=(yyvsp[0].val);v3=dispatch2(stmts_add,v1,v2);(yyval.val)=v3;} } -#line 12200 "ripper.c" +#line 12210 "ripper.c" break; case 21: /* stmt_or_begin: stmt */ -#line 2339 "ripper.y" +#line 2349 "ripper.y" { (yyval.val) = (yyvsp[0].val); } -#line 12208 "ripper.c" +#line 12218 "ripper.c" break; case 22: /* $@5: %empty */ -#line 2343 "ripper.y" +#line 2353 "ripper.y" { yyerror1(&(yylsp[0]), "BEGIN is permitted only at toplevel"); } -#line 12216 "ripper.c" +#line 12226 "ripper.c" break; case 23: /* stmt_or_begin: "`BEGIN'" $@5 begin_block */ -#line 2347 "ripper.y" +#line 2357 "ripper.y" { (yyval.val) = (yyvsp[0].val); } -#line 12224 "ripper.c" +#line 12234 "ripper.c" break; case 24: /* allow_exits: %empty */ -#line 2352 "ripper.y" +#line 2362 "ripper.y" {(yyval.node_exits) = allow_block_exit(p);} -#line 12230 "ripper.c" +#line 12240 "ripper.c" break; case 25: /* k_END: "`END'" lex_ctxt */ -#line 2355 "ripper.y" +#line 2365 "ripper.y" { (yyval.ctxt) = (yyvsp[0].ctxt); p->ctxt.in_rescue = before_rescue; } -#line 12239 "ripper.c" +#line 12249 "ripper.c" break; case 26: /* $@6: %empty */ -#line 2360 "ripper.y" +#line 2370 "ripper.y" {SET_LEX_STATE(EXPR_FNAME|EXPR_FITEM);} -#line 12245 "ripper.c" +#line 12255 "ripper.c" break; case 27: /* stmt: "`alias'" fitem $@6 fitem */ -#line 2361 "ripper.y" +#line 2371 "ripper.y" { #if 0 (yyval.val) = NEW_ALIAS((yyvsp[-2].val), (yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2,v3;v1=(yyvsp[-2].val);v2=(yyvsp[0].val);v3=dispatch2(alias,v1,v2);(yyval.val)=v3;} } -#line 12256 "ripper.c" +#line 12266 "ripper.c" break; case 28: /* stmt: "`alias'" "global variable" "global variable" */ -#line 2368 "ripper.y" +#line 2378 "ripper.y" { #if 0 (yyval.val) = NEW_VALIAS((yyvsp[-1].val), (yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2,v3;v1=(yyvsp[-1].val);v2=(yyvsp[0].val);v3=dispatch2(var_alias,v1,v2);(yyval.val)=v3;} } -#line 12267 "ripper.c" +#line 12277 "ripper.c" break; case 29: /* stmt: "`alias'" "global variable" "back reference" */ -#line 2375 "ripper.y" +#line 2385 "ripper.y" { #if 0 char buf[2]; @@ -12277,11 +12287,11 @@ #endif {VALUE v1,v2,v3;v1=(yyvsp[-1].val);v2=(yyvsp[0].val);v3=dispatch2(var_alias,v1,v2);(yyval.val)=v3;} } -#line 12281 "ripper.c" +#line 12291 "ripper.c" break; case 30: /* stmt: "`alias'" "global variable" "numbered reference" */ -#line 2385 "ripper.y" +#line 2395 "ripper.y" { static const char mesg[] = "can't make alias for the number variables"; #if 0 @@ -12290,22 +12300,22 @@ #endif {VALUE v1,v2,v3;v1=ERR_MESG();v2=(yyvsp[0].val);v3=dispatch2(alias_error,v1,v2);(yyval.val)=v3;}ripper_error(p); } -#line 12294 "ripper.c" +#line 12304 "ripper.c" break; case 31: /* stmt: "`undef'" undef_list */ -#line 2394 "ripper.y" +#line 2404 "ripper.y" { #if 0 (yyval.val) = (yyvsp[0].val); #endif {VALUE v1,v2;v1=(yyvsp[0].val);v2=dispatch1(undef,v1);(yyval.val)=v2;} } -#line 12305 "ripper.c" +#line 12315 "ripper.c" break; case 32: /* stmt: stmt "`if' modifier" expr_value */ -#line 2401 "ripper.y" +#line 2411 "ripper.y" { #if 0 (yyval.val) = new_if(p, (yyvsp[0].val), remove_begin((yyvsp[-2].val)), 0, &(yyloc)); @@ -12313,11 +12323,11 @@ #endif {VALUE v1,v2,v3;v1=(yyvsp[0].val);v2=(yyvsp[-2].val);v3=dispatch2(if_mod,v1,v2);(yyval.val)=v3;} } -#line 12317 "ripper.c" +#line 12327 "ripper.c" break; case 33: /* stmt: stmt "`unless' modifier" expr_value */ -#line 2409 "ripper.y" +#line 2419 "ripper.y" { #if 0 (yyval.val) = new_unless(p, (yyvsp[0].val), remove_begin((yyvsp[-2].val)), 0, &(yyloc)); @@ -12325,11 +12335,11 @@ #endif {VALUE v1,v2,v3;v1=(yyvsp[0].val);v2=(yyvsp[-2].val);v3=dispatch2(unless_mod,v1,v2);(yyval.val)=v3;} } -#line 12329 "ripper.c" +#line 12339 "ripper.c" break; case 34: /* stmt: stmt "`while' modifier" expr_value */ -#line 2417 "ripper.y" +#line 2427 "ripper.y" { clear_block_exit(p, false); #if 0 @@ -12342,11 +12352,11 @@ #endif {VALUE v1,v2,v3;v1=(yyvsp[0].val);v2=(yyvsp[-2].val);v3=dispatch2(while_mod,v1,v2);(yyval.val)=v3;} } -#line 12346 "ripper.c" +#line 12356 "ripper.c" break; case 35: /* stmt: stmt "`until' modifier" expr_value */ -#line 2430 "ripper.y" +#line 2440 "ripper.y" { clear_block_exit(p, false); #if 0 @@ -12359,11 +12369,11 @@ #endif {VALUE v1,v2,v3;v1=(yyvsp[0].val);v2=(yyvsp[-2].val);v3=dispatch2(until_mod,v1,v2);(yyval.val)=v3;} } -#line 12363 "ripper.c" +#line 12373 "ripper.c" break; case 36: /* stmt: stmt "`rescue' modifier" after_rescue stmt */ -#line 2443 "ripper.y" +#line 2453 "ripper.y" { p->ctxt.in_rescue = (yyvsp[-1].ctxt).in_rescue; #if 0 @@ -12374,11 +12384,11 @@ #endif {VALUE v1,v2,v3;v1=(yyvsp[-3].val);v2=(yyvsp[0].val);v3=dispatch2(rescue_mod,v1,v2);(yyval.val)=v3;} } -#line 12378 "ripper.c" +#line 12388 "ripper.c" break; case 37: /* stmt: k_END allow_exits '{' compstmt '}' */ -#line 2454 "ripper.y" +#line 2464 "ripper.y" { if (p->ctxt.in_def) { rb_warn0("END in method; use at_exit"); @@ -12393,11 +12403,11 @@ #endif {VALUE v1,v2;v1=(yyvsp[-1].val);v2=dispatch1(END,v1);(yyval.val)=v2;} } -#line 12397 "ripper.c" +#line 12407 "ripper.c" break; case 39: /* stmt: mlhs '=' lex_ctxt command_call */ -#line 2470 "ripper.y" +#line 2480 "ripper.y" { #if 0 value_expr((yyvsp[0].val)); @@ -12405,22 +12415,22 @@ #endif {VALUE v1,v2,v3;v1=(yyvsp[-3].val);v2=(yyvsp[0].val);v3=dispatch2(massign,v1,v2);(yyval.val)=v3;} } -#line 12409 "ripper.c" +#line 12419 "ripper.c" break; case 40: /* stmt: lhs '=' lex_ctxt mrhs */ -#line 2478 "ripper.y" +#line 2488 "ripper.y" { #if 0 (yyval.val) = node_assign(p, (yyvsp[-3].val), (yyvsp[0].val), (yyvsp[-1].ctxt), &(yyloc)); #endif {VALUE v1,v2,v3;v1=(yyvsp[-3].val);v2=(yyvsp[0].val);v3=dispatch2(assign,v1,v2);(yyval.val)=v3;} } -#line 12420 "ripper.c" +#line 12430 "ripper.c" break; case 41: /* stmt: mlhs '=' lex_ctxt mrhs_arg "`rescue' modifier" after_rescue stmt */ -#line 2486 "ripper.y" +#line 2496 "ripper.y" { p->ctxt.in_rescue = (yyvsp[-4].ctxt).in_rescue; #if 0 @@ -12432,55 +12442,55 @@ #endif {VALUE v1,v2,v3,v4,v5,v6;v1=(yyvsp[-3].val);v2=(yyvsp[0].val);v3=dispatch2(rescue_mod,v1,v2);v4=(yyvsp[-6].val);v5=v3;v6=dispatch2(massign,v4,v5);(yyval.val)=v6;} } -#line 12436 "ripper.c" +#line 12446 "ripper.c" break; case 42: /* stmt: mlhs '=' lex_ctxt mrhs_arg */ -#line 2498 "ripper.y" +#line 2508 "ripper.y" { #if 0 (yyval.val) = node_assign(p, (NODE *)(yyvsp[-3].val), (yyvsp[0].val), (yyvsp[-1].ctxt), &(yyloc)); #endif {VALUE v1,v2,v3;v1=(yyvsp[-3].val);v2=(yyvsp[0].val);v3=dispatch2(massign,v1,v2);(yyval.val)=v3;} } -#line 12447 "ripper.c" +#line 12457 "ripper.c" break; case 44: /* stmt: error */ -#line 2506 "ripper.y" +#line 2516 "ripper.y" { (void)yynerrs; #if 0 (yyval.val) = NEW_ERROR(&(yyloc)); #endif } -#line 12458 "ripper.c" +#line 12468 "ripper.c" break; case 45: /* command_asgn: lhs '=' lex_ctxt command_rhs */ -#line 2515 "ripper.y" +#line 2525 "ripper.y" { #if 0 (yyval.val) = node_assign(p, (yyvsp[-3].val), (yyvsp[0].val), (yyvsp[-1].ctxt), &(yyloc)); #endif {VALUE v1,v2,v3;v1=(yyvsp[-3].val);v2=(yyvsp[0].val);v3=dispatch2(assign,v1,v2);(yyval.val)=v3;} } -#line 12469 "ripper.c" +#line 12479 "ripper.c" break; case 46: /* command_asgn: var_lhs "operator-assignment" lex_ctxt command_rhs */ -#line 2522 "ripper.y" +#line 2532 "ripper.y" { #if 0 (yyval.val) = new_op_assign(p, (yyvsp[-3].val), (yyvsp[-2].val), (yyvsp[0].val), (yyvsp[-1].ctxt), &(yyloc)); #endif {VALUE v1,v2,v3,v4;v1=(yyvsp[-3].val);v2=(yyvsp[-2].val);v3=(yyvsp[0].val);v4=dispatch3(opassign,v1,v2,v3);(yyval.val)=v4;} } -#line 12480 "ripper.c" +#line 12490 "ripper.c" break; case 47: /* command_asgn: primary_value '[' opt_call_args rbracket "operator-assignment" lex_ctxt command_rhs */ -#line 2529 "ripper.y" +#line 2539 "ripper.y" { #if 0 (yyval.val) = new_ary_op_assign(p, (yyvsp[-6].val), (yyvsp[-4].val), (yyvsp[-2].val), (yyvsp[0].val), &(yylsp[-4]), &(yyloc)); @@ -12488,33 +12498,33 @@ {VALUE v1,v2,v3,v4,v5,v6,v7;v1=(yyvsp[-6].val);v2=(yyvsp[-4].val);v3=dispatch2(aref_field,v1,v2);v4=v3;v5=(yyvsp[-2].val);v6=(yyvsp[0].val);v7=dispatch3(opassign,v4,v5,v6);(yyval.val)=v7;} } -#line 12492 "ripper.c" +#line 12502 "ripper.c" break; case 48: /* command_asgn: primary_value call_op "local variable or method" "operator-assignment" lex_ctxt command_rhs */ -#line 2537 "ripper.y" +#line 2547 "ripper.y" { #if 0 (yyval.val) = new_attr_op_assign(p, (yyvsp[-5].val), (yyvsp[-4].val), (yyvsp[-3].val), (yyvsp[-2].val), (yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2,v3,v4,v5,v6,v7,v8;v1=(yyvsp[-5].val);v2=(yyvsp[-4].val);v3=(yyvsp[-3].val);v4=dispatch3(field,v1,v2,v3);v5=v4;v6=(yyvsp[-2].val);v7=(yyvsp[0].val);v8=dispatch3(opassign,v5,v6,v7);(yyval.val)=v8;} } -#line 12503 "ripper.c" +#line 12513 "ripper.c" break; case 49: /* command_asgn: primary_value call_op "constant" "operator-assignment" lex_ctxt command_rhs */ -#line 2544 "ripper.y" +#line 2554 "ripper.y" { #if 0 (yyval.val) = new_attr_op_assign(p, (yyvsp[-5].val), (yyvsp[-4].val), (yyvsp[-3].val), (yyvsp[-2].val), (yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2,v3,v4,v5,v6,v7,v8;v1=(yyvsp[-5].val);v2=(yyvsp[-4].val);v3=(yyvsp[-3].val);v4=dispatch3(field,v1,v2,v3);v5=v4;v6=(yyvsp[-2].val);v7=(yyvsp[0].val);v8=dispatch3(opassign,v5,v6,v7);(yyval.val)=v8;} } -#line 12514 "ripper.c" +#line 12524 "ripper.c" break; case 50: /* command_asgn: primary_value "::" "constant" "operator-assignment" lex_ctxt command_rhs */ -#line 2551 "ripper.y" +#line 2561 "ripper.y" { #if 0 YYLTYPE loc = code_loc_gen(&(yylsp[-5]), &(yylsp[-3])); @@ -12522,22 +12532,22 @@ #endif {VALUE v1,v2,v3,v4,v5,v6,v7;v1=(yyvsp[-5].val);v2=(yyvsp[-3].val);v3=dispatch2(const_path_field,v1,v2);v4=v3;v5=(yyvsp[-2].val);v6=(yyvsp[0].val);v7=dispatch3(opassign,v4,v5,v6);(yyval.val)=v7;} } -#line 12526 "ripper.c" +#line 12536 "ripper.c" break; case 51: /* command_asgn: primary_value "::" "local variable or method" "operator-assignment" lex_ctxt command_rhs */ -#line 2559 "ripper.y" +#line 2569 "ripper.y" { #if 0 (yyval.val) = new_attr_op_assign(p, (yyvsp[-5].val), ID2VAL(idCOLON2), (yyvsp[-3].val), (yyvsp[-2].val), (yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2,v3,v4,v5,v6,v7,v8;v1=(yyvsp[-5].val);v2=(yyvsp[-4].val);v3=(yyvsp[-3].val);v4=dispatch3(field,v1,v2,v3);v5=v4;v6=(yyvsp[-2].val);v7=(yyvsp[0].val);v8=dispatch3(opassign,v5,v6,v7);(yyval.val)=v8;} } -#line 12537 "ripper.c" +#line 12547 "ripper.c" break; case 52: /* command_asgn: defn_head f_opt_paren_args '=' endless_command */ -#line 2566 "ripper.y" +#line 2576 "ripper.y" { endless_method_name(p, get_id((yyvsp[-3].node_def_temp)->nd_mid), &(yylsp[-3])); restore_defun(p, (yyvsp[-3].node_def_temp)); @@ -12550,11 +12560,11 @@ {VALUE v1,v2,v3,v4;v1=(yyvsp[-3].node_def_temp)->nd_mid;v2=(yyvsp[-2].val);v3=(yyvsp[0].val);v4=dispatch3(def,v1,v2,v3);(yyval.val)=v4;} local_pop(p); } -#line 12554 "ripper.c" +#line 12564 "ripper.c" break; case 53: /* command_asgn: defs_head f_opt_paren_args '=' endless_command */ -#line 2579 "ripper.y" +#line 2589 "ripper.y" { endless_method_name(p, get_id((yyvsp[-3].node_def_temp)->nd_mid), &(yylsp[-3])); restore_defun(p, (yyvsp[-3].node_def_temp)); @@ -12567,11 +12577,11 @@ {VALUE v1,v2,v3,v4,v5,v6;v1=(yyvsp[-3].node_def_temp)->nd_recv;v2=(yyvsp[-3].node_def_temp)->dot_or_colon;v3=(yyvsp[-3].node_def_temp)->nd_mid;v4=(yyvsp[-2].val);v5=(yyvsp[0].val);v6=dispatch5(defs,v1,v2,v3,v4,v5);(yyval.val)=v6;} local_pop(p); } -#line 12571 "ripper.c" +#line 12581 "ripper.c" break; case 54: /* command_asgn: backref "operator-assignment" lex_ctxt command_rhs */ -#line 2592 "ripper.y" +#line 2602 "ripper.y" { #if 0 rb_backref_error(p, (yyvsp[-3].val)); @@ -12579,11 +12589,11 @@ #endif {VALUE v1,v2,v3;v1=var_field(p, (yyvsp[-3].val));v2=(yyvsp[0].val);v3=dispatch2(assign,v1,v2);(yyval.val)=backref_error(p, RNODE((yyvsp[-3].val)), v3);}ripper_error(p); } -#line 12583 "ripper.c" +#line 12593 "ripper.c" break; case 56: /* endless_command: endless_command "`rescue' modifier" after_rescue arg */ -#line 2603 "ripper.y" +#line 2613 "ripper.y" { p->ctxt.in_rescue = (yyvsp[-1].ctxt).in_rescue; #if 0 @@ -12591,28 +12601,28 @@ #endif {VALUE v1,v2,v3;v1=(yyvsp[-3].val);v2=(yyvsp[0].val);v3=dispatch2(rescue_mod,v1,v2);(yyval.val)=v3;} } -#line 12595 "ripper.c" +#line 12605 "ripper.c" break; case 57: /* endless_command: "`not'" opt_nl endless_command */ -#line 2611 "ripper.y" +#line 2621 "ripper.y" { (yyval.val) = call_uni_op(p, method_cond(p, (yyvsp[0].val), &(yylsp[0])), METHOD_NOT, &(yylsp[-2]), &(yyloc)); } -#line 12603 "ripper.c" +#line 12613 "ripper.c" break; case 58: /* command_rhs: command_call */ -#line 2617 "ripper.y" +#line 2627 "ripper.y" { value_expr((yyvsp[0].val)); (yyval.val) = (yyvsp[0].val); } -#line 12612 "ripper.c" +#line 12622 "ripper.c" break; case 59: /* command_rhs: command_call "`rescue' modifier" after_rescue stmt */ -#line 2622 "ripper.y" +#line 2632 "ripper.y" { p->ctxt.in_rescue = (yyvsp[-1].ctxt).in_rescue; #if 0 @@ -12622,51 +12632,51 @@ #endif {VALUE v1,v2,v3;v1=(yyvsp[-3].val);v2=(yyvsp[0].val);v3=dispatch2(rescue_mod,v1,v2);(yyval.val)=v3;} } -#line 12626 "ripper.c" +#line 12636 "ripper.c" break; case 62: /* expr: expr "`and'" expr */ -#line 2636 "ripper.y" +#line 2646 "ripper.y" { (yyval.val) = logop(p, idAND, (yyvsp[-2].val), (yyvsp[0].val), &(yylsp[-1]), &(yyloc)); } -#line 12634 "ripper.c" +#line 12644 "ripper.c" break; case 63: /* expr: expr "`or'" expr */ -#line 2640 "ripper.y" +#line 2650 "ripper.y" { (yyval.val) = logop(p, idOR, (yyvsp[-2].val), (yyvsp[0].val), &(yylsp[-1]), &(yyloc)); } -#line 12642 "ripper.c" +#line 12652 "ripper.c" break; case 64: /* expr: "`not'" opt_nl expr */ -#line 2644 "ripper.y" +#line 2654 "ripper.y" { (yyval.val) = call_uni_op(p, method_cond(p, (yyvsp[0].val), &(yylsp[0])), METHOD_NOT, &(yylsp[-2]), &(yyloc)); } -#line 12650 "ripper.c" +#line 12660 "ripper.c" break; case 65: /* expr: '!' command_call */ -#line 2648 "ripper.y" +#line 2658 "ripper.y" { (yyval.val) = call_uni_op(p, method_cond(p, (yyvsp[0].val), &(yylsp[0])), '!', &(yylsp[-1]), &(yyloc)); } -#line 12658 "ripper.c" +#line 12668 "ripper.c" break; case 66: /* $@7: %empty */ -#line 2652 "ripper.y" +#line 2662 "ripper.y" { value_expr((yyvsp[-1].val)); } -#line 12666 "ripper.c" +#line 12676 "ripper.c" break; case 67: /* expr: arg "=>" $@7 p_in_kwarg p_pvtbl p_pktbl p_top_expr_body */ -#line 2657 "ripper.y" +#line 2667 "ripper.y" { pop_pktbl(p, (yyvsp[-1].tbl)); pop_pvtbl(p, (yyvsp[-2].tbl)); @@ -12676,19 +12686,19 @@ #endif {VALUE v1,v2,v3,v4,v5,v6,v7;v1=(yyvsp[0].val);v2=Qnil;v3=Qnil;v4=dispatch3(in,v1,v2,v3);v5=(yyvsp[-6].val);v6=v4;v7=dispatch2(case,v5,v6);(yyval.val)=v7;} } -#line 12680 "ripper.c" +#line 12690 "ripper.c" break; case 68: /* $@8: %empty */ -#line 2667 "ripper.y" +#line 2677 "ripper.y" { value_expr((yyvsp[-1].val)); } -#line 12688 "ripper.c" +#line 12698 "ripper.c" break; case 69: /* expr: arg "`in'" $@8 p_in_kwarg p_pvtbl p_pktbl p_top_expr_body */ -#line 2672 "ripper.y" +#line 2682 "ripper.y" { pop_pktbl(p, (yyvsp[-1].tbl)); pop_pvtbl(p, (yyvsp[-2].tbl)); @@ -12698,11 +12708,11 @@ #endif {VALUE v1,v2,v3,v4,v5,v6,v7;v1=(yyvsp[0].val);v2=Qnil;v3=Qnil;v4=dispatch3(in,v1,v2,v3);v5=(yyvsp[-6].val);v6=v4;v7=dispatch2(case,v5,v6);(yyval.val)=v7;} } -#line 12702 "ripper.c" +#line 12712 "ripper.c" break; case 71: /* def_name: fname */ -#line 2685 "ripper.y" +#line 2695 "ripper.y" { ID fname = get_id((yyvsp[0].val)); numparam_name(p, fname); @@ -12712,11 +12722,11 @@ p->ctxt.in_rescue = before_rescue; (yyval.val) = (yyvsp[0].val); } -#line 12716 "ripper.c" +#line 12726 "ripper.c" break; case 72: /* defn_head: k_def def_name */ -#line 2697 "ripper.y" +#line 2707 "ripper.y" { (yyval.node_def_temp) = def_head_save(p, (yyvsp[-1].node_def_temp)); (yyval.node_def_temp)->nd_mid = (yyvsp[0].val); @@ -12726,20 +12736,20 @@ add_mark_object(p, (yyvsp[0].val)); } -#line 12730 "ripper.c" +#line 12740 "ripper.c" break; case 73: /* $@9: %empty */ -#line 2709 "ripper.y" +#line 2719 "ripper.y" { SET_LEX_STATE(EXPR_FNAME); p->ctxt.in_argdef = 1; } -#line 12739 "ripper.c" +#line 12749 "ripper.c" break; case 74: /* defs_head: k_def singleton dot_or_colon $@9 def_name */ -#line 2714 "ripper.y" +#line 2724 "ripper.y" { SET_LEX_STATE(EXPR_ENDFN|EXPR_LABEL); /* force for args */ (yyval.node_def_temp) = def_head_save(p, (yyvsp[-4].node_def_temp)); @@ -12752,83 +12762,83 @@ (yyval.node_def_temp)->dot_or_colon = add_mark_object(p, (yyvsp[-2].val)); } -#line 12756 "ripper.c" +#line 12766 "ripper.c" break; case 75: /* expr_value: expr */ -#line 2729 "ripper.y" +#line 2739 "ripper.y" { value_expr((yyvsp[0].val)); (yyval.val) = (yyvsp[0].val); } -#line 12765 "ripper.c" +#line 12775 "ripper.c" break; case 76: /* expr_value: error */ -#line 2734 "ripper.y" +#line 2744 "ripper.y" { #if 0 (yyval.val) = NEW_ERROR(&(yyloc)); #endif } -#line 12775 "ripper.c" +#line 12785 "ripper.c" break; case 77: /* $@10: %empty */ -#line 2741 "ripper.y" +#line 2751 "ripper.y" {COND_PUSH(1);} -#line 12781 "ripper.c" +#line 12791 "ripper.c" break; case 78: /* $@11: %empty */ -#line 2741 "ripper.y" +#line 2751 "ripper.y" {COND_POP();} -#line 12787 "ripper.c" +#line 12797 "ripper.c" break; case 79: /* expr_value_do: $@10 expr_value do $@11 */ -#line 2742 "ripper.y" +#line 2752 "ripper.y" { (yyval.val) = (yyvsp[-2].val); } -#line 12795 "ripper.c" +#line 12805 "ripper.c" break; case 83: /* block_command: block_call call_op2 operation2 command_args */ -#line 2753 "ripper.y" +#line 2763 "ripper.y" { #if 0 (yyval.val) = new_qcall(p, (yyvsp[-2].val), (yyvsp[-3].val), (yyvsp[-1].val), (yyvsp[0].val), &(yylsp[-1]), &(yyloc)); #endif {VALUE v1,v2,v3,v4,v5,v6,v7;v1=(yyvsp[-3].val);v2=(yyvsp[-2].val);v3=(yyvsp[-1].val);v4=dispatch3(call,v1,v2,v3);v5=v4;v6=(yyvsp[0].val);v7=dispatch2(method_add_arg,v5,v6);(yyval.val)=v7;} } -#line 12806 "ripper.c" +#line 12816 "ripper.c" break; case 84: /* cmd_brace_block: "{ arg" brace_body '}' */ -#line 2762 "ripper.y" +#line 2772 "ripper.y" { (yyval.val) = (yyvsp[-1].val); #if 0 set_embraced_location((yyval.val), &(yylsp[-2]), &(yylsp[0])); #endif } -#line 12817 "ripper.c" +#line 12827 "ripper.c" break; case 85: /* fcall: operation */ -#line 2771 "ripper.y" +#line 2781 "ripper.y" { #if 0 (yyval.val) = NEW_FCALL((yyvsp[0].val), 0, &(yyloc)); #endif (yyval.val)=(yyvsp[0].val); } -#line 12828 "ripper.c" +#line 12838 "ripper.c" break; case 86: /* command: fcall command_args */ -#line 2780 "ripper.y" +#line 2790 "ripper.y" { #if 0 (yyvsp[-1].val)->nd_args = (yyvsp[0].val); @@ -12837,11 +12847,11 @@ #endif {VALUE v1,v2,v3;v1=(yyvsp[-1].val);v2=(yyvsp[0].val);v3=dispatch2(command,v1,v2);(yyval.val)=v3;} } -#line 12841 "ripper.c" +#line 12851 "ripper.c" break; case 87: /* command: fcall command_args cmd_brace_block */ -#line 2789 "ripper.y" +#line 2799 "ripper.y" { #if 0 block_dup_check(p, (yyvsp[-1].val), (yyvsp[0].val)); @@ -12852,55 +12862,55 @@ #endif {VALUE v1,v2,v3,v4,v5,v6;v1=(yyvsp[-2].val);v2=(yyvsp[-1].val);v3=dispatch2(command,v1,v2);v4=v3;v5=(yyvsp[0].val);v6=dispatch2(method_add_block,v4,v5);(yyval.val)=v6;} } -#line 12856 "ripper.c" +#line 12866 "ripper.c" break; case 88: /* command: primary_value call_op operation2 command_args */ -#line 2800 "ripper.y" +#line 2810 "ripper.y" { #if 0 (yyval.val) = new_command_qcall(p, (yyvsp[-2].val), (yyvsp[-3].val), (yyvsp[-1].val), (yyvsp[0].val), Qnull, &(yylsp[-1]), &(yyloc)); #endif {VALUE v1,v2,v3,v4,v5;v1=(yyvsp[-3].val);v2=(yyvsp[-2].val);v3=(yyvsp[-1].val);v4=(yyvsp[0].val);v5=dispatch4(command_call,v1,v2,v3,v4);(yyval.val)=v5;} } -#line 12867 "ripper.c" +#line 12877 "ripper.c" break; case 89: /* command: primary_value call_op operation2 command_args cmd_brace_block */ -#line 2807 "ripper.y" +#line 2817 "ripper.y" { #if 0 (yyval.val) = new_command_qcall(p, (yyvsp[-3].val), (yyvsp[-4].val), (yyvsp[-2].val), (yyvsp[-1].val), (yyvsp[0].val), &(yylsp[-2]), &(yyloc)); #endif {VALUE v1,v2,v3,v4,v5,v6,v7,v8;v1=(yyvsp[-4].val);v2=(yyvsp[-3].val);v3=(yyvsp[-2].val);v4=(yyvsp[-1].val);v5=dispatch4(command_call,v1,v2,v3,v4);v6=v5;v7=(yyvsp[0].val);v8=dispatch2(method_add_block,v6,v7);(yyval.val)=v8;} } -#line 12878 "ripper.c" +#line 12888 "ripper.c" break; case 90: /* command: primary_value "::" operation2 command_args */ -#line 2814 "ripper.y" +#line 2824 "ripper.y" { #if 0 (yyval.val) = new_command_qcall(p, ID2VAL(idCOLON2), (yyvsp[-3].val), (yyvsp[-1].val), (yyvsp[0].val), Qnull, &(yylsp[-1]), &(yyloc)); #endif {VALUE v1,v2,v3,v4,v5;v1=(yyvsp[-3].val);v2=(yyvsp[-2].val);v3=(yyvsp[-1].val);v4=(yyvsp[0].val);v5=dispatch4(command_call,v1,v2,v3,v4);(yyval.val)=v5;} } -#line 12889 "ripper.c" +#line 12899 "ripper.c" break; case 91: /* command: primary_value "::" operation2 command_args cmd_brace_block */ -#line 2821 "ripper.y" +#line 2831 "ripper.y" { #if 0 (yyval.val) = new_command_qcall(p, ID2VAL(idCOLON2), (yyvsp[-4].val), (yyvsp[-2].val), (yyvsp[-1].val), (yyvsp[0].val), &(yylsp[-2]), &(yyloc)); #endif {VALUE v1,v2,v3,v4,v5,v6,v7,v8;v1=(yyvsp[-4].val);v2=(yyvsp[-3].val);v3=(yyvsp[-2].val);v4=(yyvsp[-1].val);v5=dispatch4(command_call,v1,v2,v3,v4);v6=v5;v7=(yyvsp[0].val);v8=dispatch2(method_add_block,v6,v7);(yyval.val)=v8;} } -#line 12900 "ripper.c" +#line 12910 "ripper.c" break; case 92: /* command: primary_value "::" "constant" '{' brace_body '}' */ -#line 2828 "ripper.y" +#line 2838 "ripper.y" { #if 0 set_embraced_location((yyvsp[-1].val), &(yylsp[-2]), &(yylsp[0])); @@ -12908,11 +12918,11 @@ #endif {VALUE v1,v2,v3,v4,v5,v6,v7,v8;v1=(yyvsp[-5].val);v2=(yyvsp[-4].val);v3=(yyvsp[-3].val);v4=Qnull;v5=dispatch4(command_call,v1,v2,v3,v4);v6=v5;v7=(yyvsp[-1].val);v8=dispatch2(method_add_block,v6,v7);(yyval.val)=v8;} } -#line 12912 "ripper.c" +#line 12922 "ripper.c" break; case 93: /* command: "`super'" command_args */ -#line 2836 "ripper.y" +#line 2846 "ripper.y" { #if 0 (yyval.val) = NEW_SUPER((yyvsp[0].val), &(yyloc)); @@ -12920,11 +12930,11 @@ #endif {VALUE v1,v2;v1=(yyvsp[0].val);v2=dispatch1(super,v1);(yyval.val)=v2;} } -#line 12924 "ripper.c" +#line 12934 "ripper.c" break; case 94: /* command: k_yield command_args */ -#line 2844 "ripper.y" +#line 2854 "ripper.y" { #if 0 (yyval.val) = new_yield(p, (yyvsp[0].val), &(yyloc)); @@ -12932,22 +12942,22 @@ #endif {VALUE v1,v2;v1=(yyvsp[0].val);v2=dispatch1(yield,v1);(yyval.val)=v2;} } -#line 12936 "ripper.c" +#line 12946 "ripper.c" break; case 95: /* command: k_return call_args */ -#line 2852 "ripper.y" +#line 2862 "ripper.y" { #if 0 (yyval.val) = NEW_RETURN(ret_args(p, (yyvsp[0].val)), &(yyloc)); #endif {VALUE v1,v2;v1=(yyvsp[0].val);v2=dispatch1(return,v1);(yyval.val)=v2;} } -#line 12947 "ripper.c" +#line 12957 "ripper.c" break; case 96: /* command: "`break'" call_args */ -#line 2859 "ripper.y" +#line 2869 "ripper.y" { NODE *args = 0; #if 0 @@ -12956,11 +12966,11 @@ (yyval.node) = add_block_exit(p, NEW_BREAK(args, &(yyloc))); {VALUE v1,v2;v1=(yyvsp[0].val);v2=dispatch1(break,v1);(yyval.val)=v2;} } -#line 12960 "ripper.c" +#line 12970 "ripper.c" break; case 97: /* command: "`next'" call_args */ -#line 2868 "ripper.y" +#line 2878 "ripper.y" { NODE *args = 0; #if 0 @@ -12969,231 +12979,231 @@ (yyval.node) = add_block_exit(p, NEW_NEXT(args, &(yyloc))); {VALUE v1,v2;v1=(yyvsp[0].val);v2=dispatch1(next,v1);(yyval.val)=v2;} } -#line 12973 "ripper.c" +#line 12983 "ripper.c" break; case 99: /* mlhs: "(" mlhs_inner rparen */ -#line 2880 "ripper.y" +#line 2890 "ripper.y" { #if 0 (yyval.val) = (yyvsp[-1].val); #endif {VALUE v1,v2;v1=(yyvsp[-1].val);v2=dispatch1(mlhs_paren,v1);(yyval.val)=v2;} } -#line 12984 "ripper.c" +#line 12994 "ripper.c" break; case 101: /* mlhs_inner: "(" mlhs_inner rparen */ -#line 2890 "ripper.y" +#line 2900 "ripper.y" { #if 0 (yyval.val) = NEW_MASGN(NEW_LIST((NODE *)(yyvsp[-1].val), &(yyloc)), 0, &(yyloc)); #endif {VALUE v1,v2;v1=(yyvsp[-1].val);v2=dispatch1(mlhs_paren,v1);(yyval.val)=v2;} } -#line 12995 "ripper.c" +#line 13005 "ripper.c" break; case 102: /* mlhs_basic: mlhs_head */ -#line 2899 "ripper.y" +#line 2909 "ripper.y" { #if 0 (yyval.val) = NEW_MASGN((yyvsp[0].val), 0, &(yyloc)); #endif (yyval.val)=(yyvsp[0].val); } -#line 13006 "ripper.c" +#line 13016 "ripper.c" break; case 103: /* mlhs_basic: mlhs_head mlhs_item */ -#line 2906 "ripper.y" +#line 2916 "ripper.y" { #if 0 (yyval.val) = NEW_MASGN(list_append(p, (yyvsp[-1].val), (yyvsp[0].val)), 0, &(yyloc)); #endif {VALUE v1,v2,v3;v1=(yyvsp[-1].val);v2=(yyvsp[0].val);v3=dispatch2(mlhs_add,v1,v2);(yyval.val)=v3;} } -#line 13017 "ripper.c" +#line 13027 "ripper.c" break; case 104: /* mlhs_basic: mlhs_head "*" mlhs_node */ -#line 2913 "ripper.y" +#line 2923 "ripper.y" { #if 0 (yyval.val) = NEW_MASGN((yyvsp[-2].val), (yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2,v3;v1=(yyvsp[-2].val);v2=(yyvsp[0].val);v3=dispatch2(mlhs_add_star,v1,v2);(yyval.val)=v3;} } -#line 13028 "ripper.c" +#line 13038 "ripper.c" break; case 105: /* mlhs_basic: mlhs_head "*" mlhs_node ',' mlhs_post */ -#line 2920 "ripper.y" +#line 2930 "ripper.y" { #if 0 (yyval.val) = NEW_MASGN((yyvsp[-4].val), NEW_POSTARG((yyvsp[-2].val),(yyvsp[0].val),&(yyloc)), &(yyloc)); #endif {VALUE v1,v2,v3,v4,v5,v6;v1=(yyvsp[-4].val);v2=(yyvsp[-2].val);v3=dispatch2(mlhs_add_star,v1,v2);v4=v3;v5=(yyvsp[0].val);v6=dispatch2(mlhs_add_post,v4,v5);(yyval.val)=v6;} } -#line 13039 "ripper.c" +#line 13049 "ripper.c" break; case 106: /* mlhs_basic: mlhs_head "*" */ -#line 2927 "ripper.y" +#line 2937 "ripper.y" { #if 0 (yyval.val) = NEW_MASGN((yyvsp[-1].val), NODE_SPECIAL_NO_NAME_REST, &(yyloc)); #endif {VALUE v1,v2,v3;v1=(yyvsp[-1].val);v2=Qnil;v3=dispatch2(mlhs_add_star,v1,v2);(yyval.val)=v3;} } -#line 13050 "ripper.c" +#line 13060 "ripper.c" break; case 107: /* mlhs_basic: mlhs_head "*" ',' mlhs_post */ -#line 2934 "ripper.y" +#line 2944 "ripper.y" { #if 0 (yyval.val) = NEW_MASGN((yyvsp[-3].val), NEW_POSTARG(NODE_SPECIAL_NO_NAME_REST, (yyvsp[0].val), &(yyloc)), &(yyloc)); #endif {VALUE v1,v2,v3,v4,v5,v6;v1=(yyvsp[-3].val);v2=Qnil;v3=dispatch2(mlhs_add_star,v1,v2);v4=v3;v5=(yyvsp[0].val);v6=dispatch2(mlhs_add_post,v4,v5);(yyval.val)=v6;} } -#line 13061 "ripper.c" +#line 13071 "ripper.c" break; case 108: /* mlhs_basic: "*" mlhs_node */ -#line 2941 "ripper.y" +#line 2951 "ripper.y" { #if 0 (yyval.val) = NEW_MASGN(0, (yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2,v3,v4;v1=dispatch0(mlhs_new);v2=v1;v3=(yyvsp[0].val);v4=dispatch2(mlhs_add_star,v2,v3);(yyval.val)=v4;} } -#line 13072 "ripper.c" +#line 13082 "ripper.c" break; case 109: /* mlhs_basic: "*" mlhs_node ',' mlhs_post */ -#line 2948 "ripper.y" +#line 2958 "ripper.y" { #if 0 (yyval.val) = NEW_MASGN(0, NEW_POSTARG((yyvsp[-2].val),(yyvsp[0].val),&(yyloc)), &(yyloc)); #endif {VALUE v1,v2,v3,v4,v5,v6,v7;v1=dispatch0(mlhs_new);v2=v1;v3=(yyvsp[-2].val);v4=dispatch2(mlhs_add_star,v2,v3);v5=v4;v6=(yyvsp[0].val);v7=dispatch2(mlhs_add_post,v5,v6);(yyval.val)=v7;} } -#line 13083 "ripper.c" +#line 13093 "ripper.c" break; case 110: /* mlhs_basic: "*" */ -#line 2955 "ripper.y" +#line 2965 "ripper.y" { #if 0 (yyval.val) = NEW_MASGN(0, NODE_SPECIAL_NO_NAME_REST, &(yyloc)); #endif {VALUE v1,v2,v3,v4;v1=dispatch0(mlhs_new);v2=v1;v3=Qnil;v4=dispatch2(mlhs_add_star,v2,v3);(yyval.val)=v4;} } -#line 13094 "ripper.c" +#line 13104 "ripper.c" break; case 111: /* mlhs_basic: "*" ',' mlhs_post */ -#line 2962 "ripper.y" +#line 2972 "ripper.y" { #if 0 (yyval.val) = NEW_MASGN(0, NEW_POSTARG(NODE_SPECIAL_NO_NAME_REST, (yyvsp[0].val), &(yyloc)), &(yyloc)); #endif {VALUE v1,v2,v3,v4,v5,v6,v7;v1=dispatch0(mlhs_new);v2=v1;v3=Qnil;v4=dispatch2(mlhs_add_star,v2,v3);v5=v4;v6=(yyvsp[0].val);v7=dispatch2(mlhs_add_post,v5,v6);(yyval.val)=v7;} } -#line 13105 "ripper.c" +#line 13115 "ripper.c" break; case 113: /* mlhs_item: "(" mlhs_inner rparen */ -#line 2972 "ripper.y" +#line 2982 "ripper.y" { #if 0 (yyval.val) = (NODE *)(yyvsp[-1].val); #endif {VALUE v1,v2;v1=(yyvsp[-1].val);v2=dispatch1(mlhs_paren,v1);(yyval.val)=v2;} } -#line 13116 "ripper.c" +#line 13126 "ripper.c" break; case 114: /* mlhs_head: mlhs_item ',' */ -#line 2981 "ripper.y" +#line 2991 "ripper.y" { #if 0 (yyval.val) = NEW_LIST((yyvsp[-1].val), &(yylsp[-1])); #endif {VALUE v1,v2,v3,v4;v1=dispatch0(mlhs_new);v2=v1;v3=(yyvsp[-1].val);v4=dispatch2(mlhs_add,v2,v3);(yyval.val)=v4;} } -#line 13127 "ripper.c" +#line 13137 "ripper.c" break; case 115: /* mlhs_head: mlhs_head mlhs_item ',' */ -#line 2988 "ripper.y" +#line 2998 "ripper.y" { #if 0 (yyval.val) = list_append(p, (yyvsp[-2].val), (yyvsp[-1].val)); #endif {VALUE v1,v2,v3;v1=(yyvsp[-2].val);v2=(yyvsp[-1].val);v3=dispatch2(mlhs_add,v1,v2);(yyval.val)=v3;} } -#line 13138 "ripper.c" +#line 13148 "ripper.c" break; case 116: /* mlhs_post: mlhs_item */ -#line 2997 "ripper.y" +#line 3007 "ripper.y" { #if 0 (yyval.val) = NEW_LIST((yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2,v3,v4;v1=dispatch0(mlhs_new);v2=v1;v3=(yyvsp[0].val);v4=dispatch2(mlhs_add,v2,v3);(yyval.val)=v4;} } -#line 13149 "ripper.c" +#line 13159 "ripper.c" break; case 117: /* mlhs_post: mlhs_post ',' mlhs_item */ -#line 3004 "ripper.y" +#line 3014 "ripper.y" { #if 0 (yyval.val) = list_append(p, (yyvsp[-2].val), (yyvsp[0].val)); #endif {VALUE v1,v2,v3;v1=(yyvsp[-2].val);v2=(yyvsp[0].val);v3=dispatch2(mlhs_add,v1,v2);(yyval.val)=v3;} } -#line 13160 "ripper.c" +#line 13170 "ripper.c" break; case 118: /* mlhs_node: user_variable */ -#line 3013 "ripper.y" +#line 3023 "ripper.y" { #if 0 (yyval.val) = assignable(p, (yyvsp[0].val), 0, &(yyloc)); #endif (yyval.val)=assignable(p, var_field(p, (yyvsp[0].val))); } -#line 13171 "ripper.c" +#line 13181 "ripper.c" break; case 119: /* mlhs_node: keyword_variable */ -#line 3020 "ripper.y" +#line 3030 "ripper.y" { #if 0 (yyval.val) = assignable(p, (yyvsp[0].val), 0, &(yyloc)); #endif (yyval.val)=assignable(p, var_field(p, (yyvsp[0].val))); } -#line 13182 "ripper.c" +#line 13192 "ripper.c" break; case 120: /* mlhs_node: primary_value '[' opt_call_args rbracket */ -#line 3027 "ripper.y" +#line 3037 "ripper.y" { #if 0 (yyval.val) = aryset(p, (yyvsp[-3].val), (yyvsp[-1].val), &(yyloc)); #endif {VALUE v1,v2,v3;v1=(yyvsp[-3].val);v2=(yyvsp[-1].val);v3=dispatch2(aref_field,v1,v2);(yyval.val)=v3;} } -#line 13193 "ripper.c" +#line 13203 "ripper.c" break; case 121: /* mlhs_node: primary_value call_op "local variable or method" */ -#line 3034 "ripper.y" +#line 3044 "ripper.y" { anddot_multiple_assignment_check(p, &(yylsp[-1]), (yyvsp[-1].val)); #if 0 @@ -13201,22 +13211,22 @@ #endif {VALUE v1,v2,v3,v4;v1=(yyvsp[-2].val);v2=(yyvsp[-1].val);v3=(yyvsp[0].val);v4=dispatch3(field,v1,v2,v3);(yyval.val)=v4;} } -#line 13205 "ripper.c" +#line 13215 "ripper.c" break; case 122: /* mlhs_node: primary_value "::" "local variable or method" */ -#line 3042 "ripper.y" +#line 3052 "ripper.y" { #if 0 (yyval.val) = attrset(p, (yyvsp[-2].val), idCOLON2, (yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2,v3;v1=(yyvsp[-2].val);v2=(yyvsp[0].val);v3=dispatch2(const_path_field,v1,v2);(yyval.val)=v3;} } -#line 13216 "ripper.c" +#line 13226 "ripper.c" break; case 123: /* mlhs_node: primary_value call_op "constant" */ -#line 3049 "ripper.y" +#line 3059 "ripper.y" { anddot_multiple_assignment_check(p, &(yylsp[-1]), (yyvsp[-1].val)); #if 0 @@ -13224,33 +13234,33 @@ #endif {VALUE v1,v2,v3,v4;v1=(yyvsp[-2].val);v2=(yyvsp[-1].val);v3=(yyvsp[0].val);v4=dispatch3(field,v1,v2,v3);(yyval.val)=v4;} } -#line 13228 "ripper.c" +#line 13238 "ripper.c" break; case 124: /* mlhs_node: primary_value "::" "constant" */ -#line 3057 "ripper.y" +#line 3067 "ripper.y" { #if 0 (yyval.val) = const_decl(p, NEW_COLON2((yyvsp[-2].val), (yyvsp[0].val), &(yyloc)), &(yyloc)); #endif {VALUE v1,v2,v3;v1=(yyvsp[-2].val);v2=(yyvsp[0].val);v3=dispatch2(const_path_field,v1,v2);(yyval.val)=const_decl(p, v3);} } -#line 13239 "ripper.c" +#line 13249 "ripper.c" break; case 125: /* mlhs_node: ":: at EXPR_BEG" "constant" */ -#line 3064 "ripper.y" +#line 3074 "ripper.y" { #if 0 (yyval.val) = const_decl(p, NEW_COLON3((yyvsp[0].val), &(yyloc)), &(yyloc)); #endif {VALUE v1,v2;v1=(yyvsp[0].val);v2=dispatch1(top_const_field,v1);(yyval.val)=const_decl(p, v2);} } -#line 13250 "ripper.c" +#line 13260 "ripper.c" break; case 126: /* mlhs_node: backref */ -#line 3071 "ripper.y" +#line 3081 "ripper.y" { #if 0 rb_backref_error(p, (yyvsp[0].val)); @@ -13258,99 +13268,99 @@ #endif (yyval.val)=backref_error(p, RNODE((yyvsp[0].val)), var_field(p, (yyvsp[0].val)));ripper_error(p); } -#line 13262 "ripper.c" +#line 13272 "ripper.c" break; case 127: /* lhs: user_variable */ -#line 3081 "ripper.y" +#line 3091 "ripper.y" { #if 0 (yyval.val) = assignable(p, (yyvsp[0].val), 0, &(yyloc)); #endif (yyval.val)=assignable(p, var_field(p, (yyvsp[0].val))); } -#line 13273 "ripper.c" +#line 13283 "ripper.c" break; case 128: /* lhs: keyword_variable */ -#line 3088 "ripper.y" +#line 3098 "ripper.y" { #if 0 (yyval.val) = assignable(p, (yyvsp[0].val), 0, &(yyloc)); #endif (yyval.val)=assignable(p, var_field(p, (yyvsp[0].val))); } -#line 13284 "ripper.c" +#line 13294 "ripper.c" break; case 129: /* lhs: primary_value '[' opt_call_args rbracket */ -#line 3095 "ripper.y" +#line 3105 "ripper.y" { #if 0 (yyval.val) = aryset(p, (yyvsp[-3].val), (yyvsp[-1].val), &(yyloc)); #endif {VALUE v1,v2,v3;v1=(yyvsp[-3].val);v2=(yyvsp[-1].val);v3=dispatch2(aref_field,v1,v2);(yyval.val)=v3;} } -#line 13295 "ripper.c" +#line 13305 "ripper.c" break; case 130: /* lhs: primary_value call_op "local variable or method" */ -#line 3102 "ripper.y" +#line 3112 "ripper.y" { #if 0 (yyval.val) = attrset(p, (yyvsp[-2].val), (yyvsp[-1].val), (yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2,v3,v4;v1=(yyvsp[-2].val);v2=(yyvsp[-1].val);v3=(yyvsp[0].val);v4=dispatch3(field,v1,v2,v3);(yyval.val)=v4;} } -#line 13306 "ripper.c" +#line 13316 "ripper.c" break; case 131: /* lhs: primary_value "::" "local variable or method" */ -#line 3109 "ripper.y" +#line 3119 "ripper.y" { #if 0 (yyval.val) = attrset(p, (yyvsp[-2].val), idCOLON2, (yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2,v3,v4;v1=(yyvsp[-2].val);v2=(yyvsp[-1].val);v3=(yyvsp[0].val);v4=dispatch3(field,v1,v2,v3);(yyval.val)=v4;} } -#line 13317 "ripper.c" +#line 13327 "ripper.c" break; case 132: /* lhs: primary_value call_op "constant" */ -#line 3116 "ripper.y" +#line 3126 "ripper.y" { #if 0 (yyval.val) = attrset(p, (yyvsp[-2].val), (yyvsp[-1].val), (yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2,v3,v4;v1=(yyvsp[-2].val);v2=(yyvsp[-1].val);v3=(yyvsp[0].val);v4=dispatch3(field,v1,v2,v3);(yyval.val)=v4;} } -#line 13328 "ripper.c" +#line 13338 "ripper.c" break; case 133: /* lhs: primary_value "::" "constant" */ -#line 3123 "ripper.y" +#line 3133 "ripper.y" { #if 0 (yyval.val) = const_decl(p, NEW_COLON2((yyvsp[-2].val), (yyvsp[0].val), &(yyloc)), &(yyloc)); #endif {VALUE v1,v2,v3;v1=(yyvsp[-2].val);v2=(yyvsp[0].val);v3=dispatch2(const_path_field,v1,v2);(yyval.val)=const_decl(p, v3);} } -#line 13339 "ripper.c" +#line 13349 "ripper.c" break; case 134: /* lhs: ":: at EXPR_BEG" "constant" */ -#line 3130 "ripper.y" +#line 3140 "ripper.y" { #if 0 (yyval.val) = const_decl(p, NEW_COLON3((yyvsp[0].val), &(yyloc)), &(yyloc)); #endif {VALUE v1,v2;v1=(yyvsp[0].val);v2=dispatch1(top_const_field,v1);(yyval.val)=const_decl(p, v2);} } -#line 13350 "ripper.c" +#line 13360 "ripper.c" break; case 135: /* lhs: backref */ -#line 3137 "ripper.y" +#line 3147 "ripper.y" { #if 0 rb_backref_error(p, (yyvsp[0].val)); @@ -13358,11 +13368,11 @@ #endif (yyval.val)=backref_error(p, RNODE((yyvsp[0].val)), var_field(p, (yyvsp[0].val)));ripper_error(p); } -#line 13362 "ripper.c" +#line 13372 "ripper.c" break; case 136: /* cname: "local variable or method" */ -#line 3147 "ripper.y" +#line 3157 "ripper.y" { static const char mesg[] = "class/module name must be CONSTANT"; #if 0 @@ -13370,81 +13380,81 @@ #endif {VALUE v1,v2,v3;v1=ERR_MESG();v2=(yyvsp[0].val);v3=dispatch2(class_name_error,v1,v2);(yyval.val)=v3;}ripper_error(p); } -#line 13374 "ripper.c" +#line 13384 "ripper.c" break; case 138: /* cpath: ":: at EXPR_BEG" cname */ -#line 3158 "ripper.y" +#line 3168 "ripper.y" { #if 0 (yyval.val) = NEW_COLON3((yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2;v1=(yyvsp[0].val);v2=dispatch1(top_const_ref,v1);(yyval.val)=v2;} } -#line 13385 "ripper.c" +#line 13395 "ripper.c" break; case 139: /* cpath: cname */ -#line 3165 "ripper.y" +#line 3175 "ripper.y" { #if 0 (yyval.val) = NEW_COLON2(0, (yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2;v1=(yyvsp[0].val);v2=dispatch1(const_ref,v1);(yyval.val)=v2;} } -#line 13396 "ripper.c" +#line 13406 "ripper.c" break; case 140: /* cpath: primary_value "::" cname */ -#line 3172 "ripper.y" +#line 3182 "ripper.y" { #if 0 (yyval.val) = NEW_COLON2((yyvsp[-2].val), (yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2,v3;v1=(yyvsp[-2].val);v2=(yyvsp[0].val);v3=dispatch2(const_path_ref,v1,v2);(yyval.val)=v3;} } -#line 13407 "ripper.c" +#line 13417 "ripper.c" break; case 144: /* fname: op */ -#line 3184 "ripper.y" +#line 3194 "ripper.y" { SET_LEX_STATE(EXPR_ENDFN); (yyval.val) = (yyvsp[0].val); } -#line 13416 "ripper.c" +#line 13426 "ripper.c" break; case 146: /* fitem: fname */ -#line 3192 "ripper.y" +#line 3202 "ripper.y" { #if 0 (yyval.val) = NEW_LIT(ID2SYM((yyvsp[0].val)), &(yyloc)); #endif {VALUE v1,v2;v1=(yyvsp[0].val);v2=dispatch1(symbol_literal,v1);(yyval.val)=v2;} } -#line 13427 "ripper.c" +#line 13437 "ripper.c" break; case 148: /* undef_list: fitem */ -#line 3202 "ripper.y" +#line 3212 "ripper.y" { #if 0 (yyval.val) = NEW_UNDEF((yyvsp[0].val), &(yyloc)); #endif (yyval.val)=rb_ary_new3(1, get_value((yyvsp[0].val))); } -#line 13438 "ripper.c" +#line 13448 "ripper.c" break; case 149: /* $@12: %empty */ -#line 3208 "ripper.y" +#line 3218 "ripper.y" {SET_LEX_STATE(EXPR_FNAME|EXPR_FITEM);} -#line 13444 "ripper.c" +#line 13454 "ripper.c" break; case 150: /* undef_list: undef_list ',' $@12 fitem */ -#line 3209 "ripper.y" +#line 3219 "ripper.y" { #if 0 NODE *undef = NEW_UNDEF((yyvsp[0].val), &(yylsp[0])); @@ -13452,257 +13462,257 @@ #endif (yyval.val)=rb_ary_push((yyvsp[-3].val), get_value((yyvsp[0].val))); } -#line 13456 "ripper.c" +#line 13466 "ripper.c" break; case 151: /* op: '|' */ -#line 3218 "ripper.y" +#line 3228 "ripper.y" { ifndef_ripper((yyval.val) = '|'); } -#line 13462 "ripper.c" +#line 13472 "ripper.c" break; case 152: /* op: '^' */ -#line 3219 "ripper.y" +#line 3229 "ripper.y" { ifndef_ripper((yyval.val) = '^'); } -#line 13468 "ripper.c" +#line 13478 "ripper.c" break; case 153: /* op: '&' */ -#line 3220 "ripper.y" +#line 3230 "ripper.y" { ifndef_ripper((yyval.val) = '&'); } -#line 13474 "ripper.c" +#line 13484 "ripper.c" break; case 154: /* op: "<=>" */ -#line 3221 "ripper.y" +#line 3231 "ripper.y" { ifndef_ripper((yyval.val) = tCMP); } -#line 13480 "ripper.c" +#line 13490 "ripper.c" break; case 155: /* op: "==" */ -#line 3222 "ripper.y" +#line 3232 "ripper.y" { ifndef_ripper((yyval.val) = tEQ); } -#line 13486 "ripper.c" +#line 13496 "ripper.c" break; case 156: /* op: "===" */ -#line 3223 "ripper.y" +#line 3233 "ripper.y" { ifndef_ripper((yyval.val) = tEQQ); } -#line 13492 "ripper.c" +#line 13502 "ripper.c" break; case 157: /* op: "=~" */ -#line 3224 "ripper.y" +#line 3234 "ripper.y" { ifndef_ripper((yyval.val) = tMATCH); } -#line 13498 "ripper.c" +#line 13508 "ripper.c" break; case 158: /* op: "!~" */ -#line 3225 "ripper.y" +#line 3235 "ripper.y" { ifndef_ripper((yyval.val) = tNMATCH); } -#line 13504 "ripper.c" +#line 13514 "ripper.c" break; case 159: /* op: '>' */ -#line 3226 "ripper.y" +#line 3236 "ripper.y" { ifndef_ripper((yyval.val) = '>'); } -#line 13510 "ripper.c" +#line 13520 "ripper.c" break; case 160: /* op: ">=" */ -#line 3227 "ripper.y" +#line 3237 "ripper.y" { ifndef_ripper((yyval.val) = tGEQ); } -#line 13516 "ripper.c" +#line 13526 "ripper.c" break; case 161: /* op: '<' */ -#line 3228 "ripper.y" +#line 3238 "ripper.y" { ifndef_ripper((yyval.val) = '<'); } -#line 13522 "ripper.c" +#line 13532 "ripper.c" break; case 162: /* op: "<=" */ -#line 3229 "ripper.y" +#line 3239 "ripper.y" { ifndef_ripper((yyval.val) = tLEQ); } -#line 13528 "ripper.c" +#line 13538 "ripper.c" break; case 163: /* op: "!=" */ -#line 3230 "ripper.y" +#line 3240 "ripper.y" { ifndef_ripper((yyval.val) = tNEQ); } -#line 13534 "ripper.c" +#line 13544 "ripper.c" break; case 164: /* op: "<<" */ -#line 3231 "ripper.y" +#line 3241 "ripper.y" { ifndef_ripper((yyval.val) = tLSHFT); } -#line 13540 "ripper.c" +#line 13550 "ripper.c" break; case 165: /* op: ">>" */ -#line 3232 "ripper.y" +#line 3242 "ripper.y" { ifndef_ripper((yyval.val) = tRSHFT); } -#line 13546 "ripper.c" +#line 13556 "ripper.c" break; case 166: /* op: '+' */ -#line 3233 "ripper.y" +#line 3243 "ripper.y" { ifndef_ripper((yyval.val) = '+'); } -#line 13552 "ripper.c" +#line 13562 "ripper.c" break; case 167: /* op: '-' */ -#line 3234 "ripper.y" +#line 3244 "ripper.y" { ifndef_ripper((yyval.val) = '-'); } -#line 13558 "ripper.c" +#line 13568 "ripper.c" break; case 168: /* op: '*' */ -#line 3235 "ripper.y" +#line 3245 "ripper.y" { ifndef_ripper((yyval.val) = '*'); } -#line 13564 "ripper.c" +#line 13574 "ripper.c" break; case 169: /* op: "*" */ -#line 3236 "ripper.y" +#line 3246 "ripper.y" { ifndef_ripper((yyval.val) = '*'); } -#line 13570 "ripper.c" +#line 13580 "ripper.c" break; case 170: /* op: '/' */ -#line 3237 "ripper.y" +#line 3247 "ripper.y" { ifndef_ripper((yyval.val) = '/'); } -#line 13576 "ripper.c" +#line 13586 "ripper.c" break; case 171: /* op: '%' */ -#line 3238 "ripper.y" +#line 3248 "ripper.y" { ifndef_ripper((yyval.val) = '%'); } -#line 13582 "ripper.c" +#line 13592 "ripper.c" break; case 172: /* op: "**" */ -#line 3239 "ripper.y" +#line 3249 "ripper.y" { ifndef_ripper((yyval.val) = tPOW); } -#line 13588 "ripper.c" +#line 13598 "ripper.c" break; case 173: /* op: "**arg" */ -#line 3240 "ripper.y" +#line 3250 "ripper.y" { ifndef_ripper((yyval.val) = tDSTAR); } -#line 13594 "ripper.c" +#line 13604 "ripper.c" break; case 174: /* op: '!' */ -#line 3241 "ripper.y" +#line 3251 "ripper.y" { ifndef_ripper((yyval.val) = '!'); } -#line 13600 "ripper.c" +#line 13610 "ripper.c" break; case 175: /* op: '~' */ -#line 3242 "ripper.y" +#line 3252 "ripper.y" { ifndef_ripper((yyval.val) = '~'); } -#line 13606 "ripper.c" +#line 13616 "ripper.c" break; case 176: /* op: "unary+" */ -#line 3243 "ripper.y" +#line 3253 "ripper.y" { ifndef_ripper((yyval.val) = tUPLUS); } -#line 13612 "ripper.c" +#line 13622 "ripper.c" break; case 177: /* op: "unary-" */ -#line 3244 "ripper.y" +#line 3254 "ripper.y" { ifndef_ripper((yyval.val) = tUMINUS); } -#line 13618 "ripper.c" +#line 13628 "ripper.c" break; case 178: /* op: "[]" */ -#line 3245 "ripper.y" +#line 3255 "ripper.y" { ifndef_ripper((yyval.val) = tAREF); } -#line 13624 "ripper.c" +#line 13634 "ripper.c" break; case 179: /* op: "[]=" */ -#line 3246 "ripper.y" +#line 3256 "ripper.y" { ifndef_ripper((yyval.val) = tASET); } -#line 13630 "ripper.c" +#line 13640 "ripper.c" break; case 180: /* op: '`' */ -#line 3247 "ripper.y" +#line 3257 "ripper.y" { ifndef_ripper((yyval.val) = '`'); } -#line 13636 "ripper.c" +#line 13646 "ripper.c" break; case 222: /* arg: lhs '=' lex_ctxt arg_rhs */ -#line 3265 "ripper.y" +#line 3275 "ripper.y" { #if 0 (yyval.val) = node_assign(p, (yyvsp[-3].val), (yyvsp[0].val), (yyvsp[-1].ctxt), &(yyloc)); #endif {VALUE v1,v2,v3;v1=(yyvsp[-3].val);v2=(yyvsp[0].val);v3=dispatch2(assign,v1,v2);(yyval.val)=v3;} } -#line 13647 "ripper.c" +#line 13657 "ripper.c" break; case 223: /* arg: var_lhs "operator-assignment" lex_ctxt arg_rhs */ -#line 3272 "ripper.y" +#line 3282 "ripper.y" { #if 0 (yyval.val) = new_op_assign(p, (yyvsp[-3].val), (yyvsp[-2].val), (yyvsp[0].val), (yyvsp[-1].ctxt), &(yyloc)); #endif {VALUE v1,v2,v3,v4;v1=(yyvsp[-3].val);v2=(yyvsp[-2].val);v3=(yyvsp[0].val);v4=dispatch3(opassign,v1,v2,v3);(yyval.val)=v4;} } -#line 13658 "ripper.c" +#line 13668 "ripper.c" break; case 224: /* arg: primary_value '[' opt_call_args rbracket "operator-assignment" lex_ctxt arg_rhs */ -#line 3279 "ripper.y" +#line 3289 "ripper.y" { #if 0 (yyval.val) = new_ary_op_assign(p, (yyvsp[-6].val), (yyvsp[-4].val), (yyvsp[-2].val), (yyvsp[0].val), &(yylsp[-4]), &(yyloc)); #endif {VALUE v1,v2,v3,v4,v5,v6,v7;v1=(yyvsp[-6].val);v2=(yyvsp[-4].val);v3=dispatch2(aref_field,v1,v2);v4=v3;v5=(yyvsp[-2].val);v6=(yyvsp[0].val);v7=dispatch3(opassign,v4,v5,v6);(yyval.val)=v7;} } -#line 13669 "ripper.c" +#line 13679 "ripper.c" break; case 225: /* arg: primary_value call_op "local variable or method" "operator-assignment" lex_ctxt arg_rhs */ -#line 3286 "ripper.y" +#line 3296 "ripper.y" { #if 0 (yyval.val) = new_attr_op_assign(p, (yyvsp[-5].val), (yyvsp[-4].val), (yyvsp[-3].val), (yyvsp[-2].val), (yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2,v3,v4,v5,v6,v7,v8;v1=(yyvsp[-5].val);v2=(yyvsp[-4].val);v3=(yyvsp[-3].val);v4=dispatch3(field,v1,v2,v3);v5=v4;v6=(yyvsp[-2].val);v7=(yyvsp[0].val);v8=dispatch3(opassign,v5,v6,v7);(yyval.val)=v8;} } -#line 13680 "ripper.c" +#line 13690 "ripper.c" break; case 226: /* arg: primary_value call_op "constant" "operator-assignment" lex_ctxt arg_rhs */ -#line 3293 "ripper.y" +#line 3303 "ripper.y" { #if 0 (yyval.val) = new_attr_op_assign(p, (yyvsp[-5].val), (yyvsp[-4].val), (yyvsp[-3].val), (yyvsp[-2].val), (yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2,v3,v4,v5,v6,v7,v8;v1=(yyvsp[-5].val);v2=(yyvsp[-4].val);v3=(yyvsp[-3].val);v4=dispatch3(field,v1,v2,v3);v5=v4;v6=(yyvsp[-2].val);v7=(yyvsp[0].val);v8=dispatch3(opassign,v5,v6,v7);(yyval.val)=v8;} } -#line 13691 "ripper.c" +#line 13701 "ripper.c" break; case 227: /* arg: primary_value "::" "local variable or method" "operator-assignment" lex_ctxt arg_rhs */ -#line 3300 "ripper.y" +#line 3310 "ripper.y" { #if 0 (yyval.val) = new_attr_op_assign(p, (yyvsp[-5].val), ID2VAL(idCOLON2), (yyvsp[-3].val), (yyvsp[-2].val), (yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2,v3,v4,v5,v6,v7,v8;v1=(yyvsp[-5].val);v2=(yyvsp[-4].val);v3=(yyvsp[-3].val);v4=dispatch3(field,v1,v2,v3);v5=v4;v6=(yyvsp[-2].val);v7=(yyvsp[0].val);v8=dispatch3(opassign,v5,v6,v7);(yyval.val)=v8;} } -#line 13702 "ripper.c" +#line 13712 "ripper.c" break; case 228: /* arg: primary_value "::" "constant" "operator-assignment" lex_ctxt arg_rhs */ -#line 3307 "ripper.y" +#line 3317 "ripper.y" { #if 0 YYLTYPE loc = code_loc_gen(&(yylsp[-5]), &(yylsp[-3])); @@ -13710,11 +13720,11 @@ #endif {VALUE v1,v2,v3,v4,v5,v6,v7;v1=(yyvsp[-5].val);v2=(yyvsp[-3].val);v3=dispatch2(const_path_field,v1,v2);v4=v3;v5=(yyvsp[-2].val);v6=(yyvsp[0].val);v7=dispatch3(opassign,v4,v5,v6);(yyval.val)=v7;} } -#line 13714 "ripper.c" +#line 13724 "ripper.c" break; case 229: /* arg: ":: at EXPR_BEG" "constant" "operator-assignment" lex_ctxt arg_rhs */ -#line 3315 "ripper.y" +#line 3325 "ripper.y" { #if 0 YYLTYPE loc = code_loc_gen(&(yylsp[-4]), &(yylsp[-3])); @@ -13722,11 +13732,11 @@ #endif {VALUE v1,v2,v3,v4,v5,v6;v1=(yyvsp[-3].val);v2=dispatch1(top_const_field,v1);v3=v2;v4=(yyvsp[-2].val);v5=(yyvsp[0].val);v6=dispatch3(opassign,v3,v4,v5);(yyval.val)=v6;} } -#line 13726 "ripper.c" +#line 13736 "ripper.c" break; case 230: /* arg: backref "operator-assignment" lex_ctxt arg_rhs */ -#line 3323 "ripper.y" +#line 3333 "ripper.y" { #if 0 rb_backref_error(p, (yyvsp[-3].val)); @@ -13734,11 +13744,11 @@ #endif {VALUE v1,v2,v3,v4;v1=var_field(p, (yyvsp[-3].val));v2=(yyvsp[-2].val);v3=(yyvsp[0].val);v4=dispatch3(opassign,v1,v2,v3);(yyval.val)=backref_error(p, RNODE((yyvsp[-3].val)), v4);}ripper_error(p); } -#line 13738 "ripper.c" +#line 13748 "ripper.c" break; case 231: /* arg: arg ".." arg */ -#line 3331 "ripper.y" +#line 3341 "ripper.y" { #if 0 value_expr((yyvsp[-2].val)); @@ -13747,11 +13757,11 @@ #endif {VALUE v1,v2,v3;v1=(yyvsp[-2].val);v2=(yyvsp[0].val);v3=dispatch2(dot2,v1,v2);(yyval.val)=v3;} } -#line 13751 "ripper.c" +#line 13761 "ripper.c" break; case 232: /* arg: arg "..." arg */ -#line 3340 "ripper.y" +#line 3350 "ripper.y" { #if 0 value_expr((yyvsp[-2].val)); @@ -13760,11 +13770,11 @@ #endif {VALUE v1,v2,v3;v1=(yyvsp[-2].val);v2=(yyvsp[0].val);v3=dispatch2(dot3,v1,v2);(yyval.val)=v3;} } -#line 13764 "ripper.c" +#line 13774 "ripper.c" break; case 233: /* arg: arg ".." */ -#line 3349 "ripper.y" +#line 3359 "ripper.y" { #if 0 value_expr((yyvsp[-1].val)); @@ -13772,11 +13782,11 @@ #endif {VALUE v1,v2,v3;v1=(yyvsp[-1].val);v2=Qnil;v3=dispatch2(dot2,v1,v2);(yyval.val)=v3;} } -#line 13776 "ripper.c" +#line 13786 "ripper.c" break; case 234: /* arg: arg "..." */ -#line 3357 "ripper.y" +#line 3367 "ripper.y" { #if 0 value_expr((yyvsp[-1].val)); @@ -13784,11 +13794,11 @@ #endif {VALUE v1,v2,v3;v1=(yyvsp[-1].val);v2=Qnil;v3=dispatch2(dot3,v1,v2);(yyval.val)=v3;} } -#line 13788 "ripper.c" +#line 13798 "ripper.c" break; case 235: /* arg: "(.." arg */ -#line 3365 "ripper.y" +#line 3375 "ripper.y" { #if 0 value_expr((yyvsp[0].val)); @@ -13796,11 +13806,11 @@ #endif {VALUE v1,v2,v3;v1=Qnil;v2=(yyvsp[0].val);v3=dispatch2(dot2,v1,v2);(yyval.val)=v3;} } -#line 13800 "ripper.c" +#line 13810 "ripper.c" break; case 236: /* arg: "(..." arg */ -#line 3373 "ripper.y" +#line 3383 "ripper.y" { #if 0 value_expr((yyvsp[0].val)); @@ -13808,212 +13818,212 @@ #endif {VALUE v1,v2,v3;v1=Qnil;v2=(yyvsp[0].val);v3=dispatch2(dot3,v1,v2);(yyval.val)=v3;} } -#line 13812 "ripper.c" +#line 13822 "ripper.c" break; case 237: /* arg: arg '+' arg */ -#line 3381 "ripper.y" +#line 3391 "ripper.y" { (yyval.val) = call_bin_op(p, (yyvsp[-2].val), '+', (yyvsp[0].val), &(yylsp[-1]), &(yyloc)); } -#line 13820 "ripper.c" +#line 13830 "ripper.c" break; case 238: /* arg: arg '-' arg */ -#line 3385 "ripper.y" +#line 3395 "ripper.y" { (yyval.val) = call_bin_op(p, (yyvsp[-2].val), '-', (yyvsp[0].val), &(yylsp[-1]), &(yyloc)); } -#line 13828 "ripper.c" +#line 13838 "ripper.c" break; case 239: /* arg: arg '*' arg */ -#line 3389 "ripper.y" +#line 3399 "ripper.y" { (yyval.val) = call_bin_op(p, (yyvsp[-2].val), '*', (yyvsp[0].val), &(yylsp[-1]), &(yyloc)); } -#line 13836 "ripper.c" +#line 13846 "ripper.c" break; case 240: /* arg: arg '/' arg */ -#line 3393 "ripper.y" +#line 3403 "ripper.y" { (yyval.val) = call_bin_op(p, (yyvsp[-2].val), '/', (yyvsp[0].val), &(yylsp[-1]), &(yyloc)); } -#line 13844 "ripper.c" +#line 13854 "ripper.c" break; case 241: /* arg: arg '%' arg */ -#line 3397 "ripper.y" +#line 3407 "ripper.y" { (yyval.val) = call_bin_op(p, (yyvsp[-2].val), '%', (yyvsp[0].val), &(yylsp[-1]), &(yyloc)); } -#line 13852 "ripper.c" +#line 13862 "ripper.c" break; case 242: /* arg: arg "**" arg */ -#line 3401 "ripper.y" +#line 3411 "ripper.y" { (yyval.val) = call_bin_op(p, (yyvsp[-2].val), idPow, (yyvsp[0].val), &(yylsp[-1]), &(yyloc)); } -#line 13860 "ripper.c" +#line 13870 "ripper.c" break; case 243: /* arg: tUMINUS_NUM simple_numeric "**" arg */ -#line 3405 "ripper.y" +#line 3415 "ripper.y" { (yyval.val) = call_uni_op(p, call_bin_op(p, (yyvsp[-2].val), idPow, (yyvsp[0].val), &(yylsp[-2]), &(yyloc)), idUMinus, &(yylsp[-3]), &(yyloc)); } -#line 13868 "ripper.c" +#line 13878 "ripper.c" break; case 244: /* arg: "unary+" arg */ -#line 3409 "ripper.y" +#line 3419 "ripper.y" { (yyval.val) = call_uni_op(p, (yyvsp[0].val), idUPlus, &(yylsp[-1]), &(yyloc)); } -#line 13876 "ripper.c" +#line 13886 "ripper.c" break; case 245: /* arg: "unary-" arg */ -#line 3413 "ripper.y" +#line 3423 "ripper.y" { (yyval.val) = call_uni_op(p, (yyvsp[0].val), idUMinus, &(yylsp[-1]), &(yyloc)); } -#line 13884 "ripper.c" +#line 13894 "ripper.c" break; case 246: /* arg: arg '|' arg */ -#line 3417 "ripper.y" +#line 3427 "ripper.y" { (yyval.val) = call_bin_op(p, (yyvsp[-2].val), '|', (yyvsp[0].val), &(yylsp[-1]), &(yyloc)); } -#line 13892 "ripper.c" +#line 13902 "ripper.c" break; case 247: /* arg: arg '^' arg */ -#line 3421 "ripper.y" +#line 3431 "ripper.y" { (yyval.val) = call_bin_op(p, (yyvsp[-2].val), '^', (yyvsp[0].val), &(yylsp[-1]), &(yyloc)); } -#line 13900 "ripper.c" +#line 13910 "ripper.c" break; case 248: /* arg: arg '&' arg */ -#line 3425 "ripper.y" +#line 3435 "ripper.y" { (yyval.val) = call_bin_op(p, (yyvsp[-2].val), '&', (yyvsp[0].val), &(yylsp[-1]), &(yyloc)); } -#line 13908 "ripper.c" +#line 13918 "ripper.c" break; case 249: /* arg: arg "<=>" arg */ -#line 3429 "ripper.y" +#line 3439 "ripper.y" { (yyval.val) = call_bin_op(p, (yyvsp[-2].val), idCmp, (yyvsp[0].val), &(yylsp[-1]), &(yyloc)); } -#line 13916 "ripper.c" +#line 13926 "ripper.c" break; case 251: /* arg: arg "==" arg */ -#line 3434 "ripper.y" +#line 3444 "ripper.y" { (yyval.val) = call_bin_op(p, (yyvsp[-2].val), idEq, (yyvsp[0].val), &(yylsp[-1]), &(yyloc)); } -#line 13924 "ripper.c" +#line 13934 "ripper.c" break; case 252: /* arg: arg "===" arg */ -#line 3438 "ripper.y" +#line 3448 "ripper.y" { (yyval.val) = call_bin_op(p, (yyvsp[-2].val), idEqq, (yyvsp[0].val), &(yylsp[-1]), &(yyloc)); } -#line 13932 "ripper.c" +#line 13942 "ripper.c" break; case 253: /* arg: arg "!=" arg */ -#line 3442 "ripper.y" +#line 3452 "ripper.y" { (yyval.val) = call_bin_op(p, (yyvsp[-2].val), idNeq, (yyvsp[0].val), &(yylsp[-1]), &(yyloc)); } -#line 13940 "ripper.c" +#line 13950 "ripper.c" break; case 254: /* arg: arg "=~" arg */ -#line 3446 "ripper.y" +#line 3456 "ripper.y" { (yyval.val) = match_op(p, (yyvsp[-2].val), (yyvsp[0].val), &(yylsp[-1]), &(yyloc)); } -#line 13948 "ripper.c" +#line 13958 "ripper.c" break; case 255: /* arg: arg "!~" arg */ -#line 3450 "ripper.y" +#line 3460 "ripper.y" { (yyval.val) = call_bin_op(p, (yyvsp[-2].val), idNeqTilde, (yyvsp[0].val), &(yylsp[-1]), &(yyloc)); } -#line 13956 "ripper.c" +#line 13966 "ripper.c" break; case 256: /* arg: '!' arg */ -#line 3454 "ripper.y" +#line 3464 "ripper.y" { (yyval.val) = call_uni_op(p, method_cond(p, (yyvsp[0].val), &(yylsp[0])), '!', &(yylsp[-1]), &(yyloc)); } -#line 13964 "ripper.c" +#line 13974 "ripper.c" break; case 257: /* arg: '~' arg */ -#line 3458 "ripper.y" +#line 3468 "ripper.y" { (yyval.val) = call_uni_op(p, (yyvsp[0].val), '~', &(yylsp[-1]), &(yyloc)); } -#line 13972 "ripper.c" +#line 13982 "ripper.c" break; case 258: /* arg: arg "<<" arg */ -#line 3462 "ripper.y" +#line 3472 "ripper.y" { (yyval.val) = call_bin_op(p, (yyvsp[-2].val), idLTLT, (yyvsp[0].val), &(yylsp[-1]), &(yyloc)); } -#line 13980 "ripper.c" +#line 13990 "ripper.c" break; case 259: /* arg: arg ">>" arg */ -#line 3466 "ripper.y" +#line 3476 "ripper.y" { (yyval.val) = call_bin_op(p, (yyvsp[-2].val), idGTGT, (yyvsp[0].val), &(yylsp[-1]), &(yyloc)); } -#line 13988 "ripper.c" +#line 13998 "ripper.c" break; case 260: /* arg: arg "&&" arg */ -#line 3470 "ripper.y" +#line 3480 "ripper.y" { (yyval.val) = logop(p, idANDOP, (yyvsp[-2].val), (yyvsp[0].val), &(yylsp[-1]), &(yyloc)); } -#line 13996 "ripper.c" +#line 14006 "ripper.c" break; case 261: /* arg: arg "||" arg */ -#line 3474 "ripper.y" +#line 3484 "ripper.y" { (yyval.val) = logop(p, idOROP, (yyvsp[-2].val), (yyvsp[0].val), &(yylsp[-1]), &(yyloc)); } -#line 14004 "ripper.c" +#line 14014 "ripper.c" break; case 262: /* arg: "`defined?'" opt_nl begin_defined arg */ -#line 3478 "ripper.y" +#line 3488 "ripper.y" { p->ctxt.in_defined = (yyvsp[-1].ctxt).in_defined; (yyval.val) = new_defined(p, (yyvsp[0].val), &(yyloc)); } -#line 14013 "ripper.c" +#line 14023 "ripper.c" break; case 263: /* arg: arg '?' arg opt_nl ':' arg */ -#line 3483 "ripper.y" +#line 3493 "ripper.y" { #if 0 value_expr((yyvsp[-5].val)); @@ -14022,11 +14032,11 @@ #endif {VALUE v1,v2,v3,v4;v1=(yyvsp[-5].val);v2=(yyvsp[-3].val);v3=(yyvsp[0].val);v4=dispatch3(ifop,v1,v2,v3);(yyval.val)=v4;} } -#line 14026 "ripper.c" +#line 14036 "ripper.c" break; case 264: /* arg: defn_head f_opt_paren_args '=' endless_arg */ -#line 3492 "ripper.y" +#line 3502 "ripper.y" { endless_method_name(p, get_id((yyvsp[-3].node_def_temp)->nd_mid), &(yylsp[-3])); restore_defun(p, (yyvsp[-3].node_def_temp)); @@ -14039,11 +14049,11 @@ {VALUE v1,v2,v3,v4;v1=(yyvsp[-3].node_def_temp)->nd_mid;v2=(yyvsp[-2].val);v3=(yyvsp[0].val);v4=dispatch3(def,v1,v2,v3);(yyval.val)=v4;} local_pop(p); } -#line 14043 "ripper.c" +#line 14053 "ripper.c" break; case 265: /* arg: defs_head f_opt_paren_args '=' endless_arg */ -#line 3505 "ripper.y" +#line 3515 "ripper.y" { endless_method_name(p, get_id((yyvsp[-3].node_def_temp)->nd_mid), &(yylsp[-3])); restore_defun(p, (yyvsp[-3].node_def_temp)); @@ -14056,19 +14066,19 @@ {VALUE v1,v2,v3,v4,v5,v6;v1=(yyvsp[-3].node_def_temp)->nd_recv;v2=(yyvsp[-3].node_def_temp)->dot_or_colon;v3=(yyvsp[-3].node_def_temp)->nd_mid;v4=(yyvsp[-2].val);v5=(yyvsp[0].val);v6=dispatch5(defs,v1,v2,v3,v4,v5);(yyval.val)=v6;} local_pop(p); } -#line 14060 "ripper.c" +#line 14070 "ripper.c" break; case 266: /* arg: primary */ -#line 3518 "ripper.y" +#line 3528 "ripper.y" { (yyval.val) = (yyvsp[0].val); } -#line 14068 "ripper.c" +#line 14078 "ripper.c" break; case 268: /* endless_arg: endless_arg "`rescue' modifier" after_rescue arg */ -#line 3525 "ripper.y" +#line 3535 "ripper.y" { p->ctxt.in_rescue = (yyvsp[-1].ctxt).in_rescue; #if 0 @@ -14076,134 +14086,134 @@ #endif {VALUE v1,v2,v3;v1=(yyvsp[-3].val);v2=(yyvsp[0].val);v3=dispatch2(rescue_mod,v1,v2);(yyval.val)=v3;} } -#line 14080 "ripper.c" +#line 14090 "ripper.c" break; case 269: /* endless_arg: "`not'" opt_nl endless_arg */ -#line 3533 "ripper.y" +#line 3543 "ripper.y" { (yyval.val) = call_uni_op(p, method_cond(p, (yyvsp[0].val), &(yylsp[0])), METHOD_NOT, &(yylsp[-2]), &(yyloc)); } -#line 14088 "ripper.c" +#line 14098 "ripper.c" break; case 270: /* relop: '>' */ -#line 3538 "ripper.y" +#line 3548 "ripper.y" {(yyval.val) = '>';} -#line 14094 "ripper.c" +#line 14104 "ripper.c" break; case 271: /* relop: '<' */ -#line 3539 "ripper.y" +#line 3549 "ripper.y" {(yyval.val) = '<';} -#line 14100 "ripper.c" +#line 14110 "ripper.c" break; case 272: /* relop: ">=" */ -#line 3540 "ripper.y" +#line 3550 "ripper.y" {(yyval.val) = idGE;} -#line 14106 "ripper.c" +#line 14116 "ripper.c" break; case 273: /* relop: "<=" */ -#line 3541 "ripper.y" +#line 3551 "ripper.y" {(yyval.val) = idLE;} -#line 14112 "ripper.c" +#line 14122 "ripper.c" break; case 274: /* rel_expr: arg relop arg */ -#line 3545 "ripper.y" +#line 3555 "ripper.y" { (yyval.val) = call_bin_op(p, (yyvsp[-2].val), (yyvsp[-1].val), (yyvsp[0].val), &(yylsp[-1]), &(yyloc)); } -#line 14120 "ripper.c" +#line 14130 "ripper.c" break; case 275: /* rel_expr: rel_expr relop arg */ -#line 3549 "ripper.y" +#line 3559 "ripper.y" { rb_warning1("comparison '%s' after comparison", WARN_ID((yyvsp[-1].val))); (yyval.val) = call_bin_op(p, (yyvsp[-2].val), (yyvsp[-1].val), (yyvsp[0].val), &(yylsp[-1]), &(yyloc)); } -#line 14129 "ripper.c" +#line 14139 "ripper.c" break; case 276: /* lex_ctxt: none */ -#line 3556 "ripper.y" +#line 3566 "ripper.y" { (yyval.ctxt) = p->ctxt; } -#line 14137 "ripper.c" +#line 14147 "ripper.c" break; case 277: /* begin_defined: lex_ctxt */ -#line 3562 "ripper.y" +#line 3572 "ripper.y" { p->ctxt.in_defined = 1; (yyval.ctxt) = (yyvsp[0].ctxt); } -#line 14146 "ripper.c" +#line 14156 "ripper.c" break; case 278: /* after_rescue: lex_ctxt */ -#line 3569 "ripper.y" +#line 3579 "ripper.y" { p->ctxt.in_rescue = after_rescue; (yyval.ctxt) = (yyvsp[0].ctxt); } -#line 14155 "ripper.c" +#line 14165 "ripper.c" break; case 279: /* arg_value: arg */ -#line 3576 "ripper.y" +#line 3586 "ripper.y" { value_expr((yyvsp[0].val)); (yyval.val) = (yyvsp[0].val); } -#line 14164 "ripper.c" +#line 14174 "ripper.c" break; case 281: /* aref_args: args trailer */ -#line 3584 "ripper.y" +#line 3594 "ripper.y" { (yyval.val) = (yyvsp[-1].val); } -#line 14172 "ripper.c" +#line 14182 "ripper.c" break; case 282: /* aref_args: args ',' assocs trailer */ -#line 3588 "ripper.y" +#line 3598 "ripper.y" { #if 0 (yyval.val) = (yyvsp[-1].val) ? arg_append(p, (yyvsp[-3].val), new_hash(p, (yyvsp[-1].val), &(yylsp[-1])), &(yyloc)) : (yyvsp[-3].val); #endif {VALUE v1,v2,v3,v4,v5;v1=(yyvsp[-1].val);v2=dispatch1(bare_assoc_hash,v1);v3=(yyvsp[-3].val);v4=v2;v5=dispatch2(args_add,v3,v4);(yyval.val)=v5;} } -#line 14183 "ripper.c" +#line 14193 "ripper.c" break; case 283: /* aref_args: assocs trailer */ -#line 3595 "ripper.y" +#line 3605 "ripper.y" { #if 0 (yyval.val) = (yyvsp[-1].val) ? NEW_LIST(new_hash(p, (yyvsp[-1].val), &(yylsp[-1])), &(yyloc)) : 0; #endif {VALUE v1,v2,v3,v4,v5,v6;v1=dispatch0(args_new);v2=(yyvsp[-1].val);v3=dispatch1(bare_assoc_hash,v2);v4=v1;v5=v3;v6=dispatch2(args_add,v4,v5);(yyval.val)=v6;} } -#line 14194 "ripper.c" +#line 14204 "ripper.c" break; case 284: /* arg_rhs: arg */ -#line 3604 "ripper.y" +#line 3614 "ripper.y" { value_expr((yyvsp[0].val)); (yyval.val) = (yyvsp[0].val); } -#line 14203 "ripper.c" +#line 14213 "ripper.c" break; case 285: /* arg_rhs: arg "`rescue' modifier" after_rescue arg */ -#line 3609 "ripper.y" +#line 3619 "ripper.y" { p->ctxt.in_rescue = (yyvsp[-1].ctxt).in_rescue; #if 0 @@ -14212,22 +14222,22 @@ #endif {VALUE v1,v2,v3;v1=(yyvsp[-3].val);v2=(yyvsp[0].val);v3=dispatch2(rescue_mod,v1,v2);(yyval.val)=v3;} } -#line 14216 "ripper.c" +#line 14226 "ripper.c" break; case 286: /* paren_args: '(' opt_call_args rparen */ -#line 3620 "ripper.y" +#line 3630 "ripper.y" { #if 0 (yyval.val) = (yyvsp[-1].val); #endif {VALUE v1,v2;v1=(yyvsp[-1].val);v2=dispatch1(arg_paren,v1);(yyval.val)=v2;} } -#line 14227 "ripper.c" +#line 14237 "ripper.c" break; case 287: /* paren_args: '(' args ',' args_forward rparen */ -#line 3627 "ripper.y" +#line 3637 "ripper.y" { if (!check_forwarding_args(p)) { (yyval.val) = Qnone; @@ -14239,11 +14249,11 @@ {VALUE v1,v2,v3,v4,v5;v1=(yyvsp[-3].val);v2=(yyvsp[-1].val);v3=dispatch2(args_add,v1,v2);v4=v3;v5=dispatch1(arg_paren,v4);(yyval.val)=v5;} } } -#line 14243 "ripper.c" +#line 14253 "ripper.c" break; case 288: /* paren_args: '(' args_forward rparen */ -#line 3639 "ripper.y" +#line 3649 "ripper.y" { if (!check_forwarding_args(p)) { (yyval.val) = Qnone; @@ -14255,41 +14265,41 @@ {VALUE v1,v2;v1=(yyvsp[-1].val);v2=dispatch1(arg_paren,v1);(yyval.val)=v2;} } } -#line 14259 "ripper.c" +#line 14269 "ripper.c" break; case 293: /* opt_call_args: args ',' */ -#line 3659 "ripper.y" +#line 3669 "ripper.y" { (yyval.val) = (yyvsp[-1].val); } -#line 14267 "ripper.c" +#line 14277 "ripper.c" break; case 294: /* opt_call_args: args ',' assocs ',' */ -#line 3663 "ripper.y" +#line 3673 "ripper.y" { #if 0 (yyval.val) = (yyvsp[-1].val) ? arg_append(p, (yyvsp[-3].val), new_hash(p, (yyvsp[-1].val), &(yylsp[-1])), &(yyloc)) : (yyvsp[-3].val); #endif {VALUE v1,v2,v3,v4,v5;v1=(yyvsp[-1].val);v2=dispatch1(bare_assoc_hash,v1);v3=(yyvsp[-3].val);v4=v2;v5=dispatch2(args_add,v3,v4);(yyval.val)=v5;} } -#line 14278 "ripper.c" +#line 14288 "ripper.c" break; case 295: /* opt_call_args: assocs ',' */ -#line 3670 "ripper.y" +#line 3680 "ripper.y" { #if 0 (yyval.val) = (yyvsp[-1].val) ? NEW_LIST(new_hash(p, (yyvsp[-1].val), &(yylsp[-1])), &(yylsp[-1])) : 0; #endif {VALUE v1,v2,v3,v4,v5,v6;v1=dispatch0(args_new);v2=(yyvsp[-1].val);v3=dispatch1(bare_assoc_hash,v2);v4=v1;v5=v3;v6=dispatch2(args_add,v4,v5);(yyval.val)=v6;} } -#line 14289 "ripper.c" +#line 14299 "ripper.c" break; case 296: /* call_args: command */ -#line 3679 "ripper.y" +#line 3689 "ripper.y" { #if 0 value_expr((yyvsp[0].val)); @@ -14297,22 +14307,22 @@ #endif {VALUE v1,v2,v3,v4;v1=dispatch0(args_new);v2=v1;v3=(yyvsp[0].val);v4=dispatch2(args_add,v2,v3);(yyval.val)=v4;} } -#line 14301 "ripper.c" +#line 14311 "ripper.c" break; case 297: /* call_args: args opt_block_arg */ -#line 3687 "ripper.y" +#line 3697 "ripper.y" { #if 0 (yyval.val) = arg_blk_pass((yyvsp[-1].val), (yyvsp[0].val)); #endif {VALUE v1,v2,v3;v1=(yyvsp[-1].val);v2=(yyvsp[0].val);v3=dispatch2(args_add_block,v1,v2);(yyval.val)=v3;} } -#line 14312 "ripper.c" +#line 14322 "ripper.c" break; case 298: /* call_args: assocs opt_block_arg */ -#line 3694 "ripper.y" +#line 3704 "ripper.y" { #if 0 (yyval.val) = (yyvsp[-1].val) ? NEW_LIST(new_hash(p, (yyvsp[-1].val), &(yylsp[-1])), &(yylsp[-1])) : 0; @@ -14320,11 +14330,11 @@ #endif {VALUE v1,v2,v3,v4,v5,v6,v7,v8,v9;v1=dispatch0(args_new);v2=(yyvsp[-1].val);v3=dispatch1(bare_assoc_hash,v2);v4=v1;v5=v3;v6=dispatch2(args_add,v4,v5);v7=v6;v8=(yyvsp[0].val);v9=dispatch2(args_add_block,v7,v8);(yyval.val)=v9;} } -#line 14324 "ripper.c" +#line 14334 "ripper.c" break; case 299: /* call_args: args ',' assocs opt_block_arg */ -#line 3702 "ripper.y" +#line 3712 "ripper.y" { #if 0 (yyval.val) = (yyvsp[-1].val) ? arg_append(p, (yyvsp[-3].val), new_hash(p, (yyvsp[-1].val), &(yylsp[-1])), &(yyloc)) : (yyvsp[-3].val); @@ -14332,17 +14342,17 @@ #endif {VALUE v1,v2,v3,v4,v5,v6,v7,v8;v1=(yyvsp[-1].val);v2=dispatch1(bare_assoc_hash,v1);v3=(yyvsp[-3].val);v4=v2;v5=dispatch2(args_add,v3,v4);v6=v5;v7=(yyvsp[0].val);v8=dispatch2(args_add_block,v6,v7);(yyval.val)=v8;} } -#line 14336 "ripper.c" +#line 14346 "ripper.c" break; case 300: /* call_args: block_arg */ -#line 3710 "ripper.y" +#line 3720 "ripper.y" {{VALUE v1,v2,v3,v4;v1=dispatch0(args_new);v2=v1;v3=(yyvsp[0].val);v4=dispatch2(args_add_block,v2,v3);(yyval.val)=v4;}} -#line 14342 "ripper.c" +#line 14352 "ripper.c" break; case 301: /* $@13: %empty */ -#line 3713 "ripper.y" +#line 3723 "ripper.y" { /* If call_args starts with a open paren '(' or '[', * look-ahead reading of the letters calls CMDARG_PUSH(0), @@ -14360,11 +14370,11 @@ CMDARG_PUSH(1); if (lookahead) CMDARG_PUSH(0); } -#line 14364 "ripper.c" +#line 14374 "ripper.c" break; case 302: /* command_args: $@13 call_args */ -#line 3731 "ripper.y" +#line 3741 "ripper.y" { /* call_args can be followed by tLBRACE_ARG (that does CMDARG_PUSH(0) in the lexer) * but the push must be done after CMDARG_POP() in the parser. @@ -14382,22 +14392,22 @@ if (lookahead) CMDARG_PUSH(0); (yyval.val) = (yyvsp[0].val); } -#line 14386 "ripper.c" +#line 14396 "ripper.c" break; case 303: /* block_arg: "&" arg_value */ -#line 3751 "ripper.y" +#line 3761 "ripper.y" { #if 0 (yyval.val) = NEW_BLOCK_PASS((yyvsp[0].val), &(yyloc)); #endif (yyval.val)=(yyvsp[0].val); } -#line 14397 "ripper.c" +#line 14407 "ripper.c" break; case 304: /* block_arg: "&" */ -#line 3758 "ripper.y" +#line 3768 "ripper.y" { forwarding_arg_check(p, idFWD_BLOCK, 0, "block"); #if 0 @@ -14405,79 +14415,79 @@ #endif (yyval.val)=Qnil; } -#line 14409 "ripper.c" +#line 14419 "ripper.c" break; case 305: /* opt_block_arg: ',' block_arg */ -#line 3768 "ripper.y" +#line 3778 "ripper.y" { (yyval.val) = (yyvsp[0].val); } -#line 14417 "ripper.c" +#line 14427 "ripper.c" break; case 306: /* opt_block_arg: none */ -#line 3772 "ripper.y" +#line 3782 "ripper.y" { (yyval.val) = 0; } -#line 14425 "ripper.c" +#line 14435 "ripper.c" break; case 307: /* args: arg_value */ -#line 3779 "ripper.y" +#line 3789 "ripper.y" { #if 0 (yyval.val) = NEW_LIST((yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2,v3,v4;v1=dispatch0(args_new);v2=v1;v3=(yyvsp[0].val);v4=dispatch2(args_add,v2,v3);(yyval.val)=v4;} } -#line 14436 "ripper.c" +#line 14446 "ripper.c" break; case 308: /* args: arg_splat */ -#line 3786 "ripper.y" +#line 3796 "ripper.y" { #if 0 (yyval.val) = NEW_SPLAT((yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2,v3,v4;v1=dispatch0(args_new);v2=v1;v3=(yyvsp[0].val);v4=dispatch2(args_add_star,v2,v3);(yyval.val)=v4;} } -#line 14447 "ripper.c" +#line 14457 "ripper.c" break; case 309: /* args: args ',' arg_value */ -#line 3793 "ripper.y" +#line 3803 "ripper.y" { #if 0 (yyval.val) = last_arg_append(p, (yyvsp[-2].val), (yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2,v3;v1=(yyvsp[-2].val);v2=(yyvsp[0].val);v3=dispatch2(args_add,v1,v2);(yyval.val)=v3;} } -#line 14458 "ripper.c" +#line 14468 "ripper.c" break; case 310: /* args: args ',' arg_splat */ -#line 3800 "ripper.y" +#line 3810 "ripper.y" { #if 0 (yyval.val) = rest_arg_append(p, (yyvsp[-2].val), (yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2,v3;v1=(yyvsp[-2].val);v2=(yyvsp[0].val);v3=dispatch2(args_add_star,v1,v2);(yyval.val)=v3;} } -#line 14469 "ripper.c" +#line 14479 "ripper.c" break; case 311: /* arg_splat: "*" arg_value */ -#line 3810 "ripper.y" +#line 3820 "ripper.y" { (yyval.val) = (yyvsp[0].val); } -#line 14477 "ripper.c" +#line 14487 "ripper.c" break; case 312: /* arg_splat: "*" */ -#line 3814 "ripper.y" +#line 3824 "ripper.y" { forwarding_arg_check(p, idFWD_REST, idFWD_ALL, "rest"); #if 0 @@ -14485,63 +14495,63 @@ #endif (yyval.val)=Qnil; } -#line 14489 "ripper.c" +#line 14499 "ripper.c" break; case 315: /* mrhs: args ',' arg_value */ -#line 3830 "ripper.y" +#line 3840 "ripper.y" { #if 0 (yyval.val) = last_arg_append(p, (yyvsp[-2].val), (yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2,v3,v4,v5;v1=(yyvsp[-2].val);v2=dispatch1(mrhs_new_from_args,v1);v3=v2;v4=(yyvsp[0].val);v5=dispatch2(mrhs_add,v3,v4);(yyval.val)=v5;} } -#line 14500 "ripper.c" +#line 14510 "ripper.c" break; case 316: /* mrhs: args ',' "*" arg_value */ -#line 3837 "ripper.y" +#line 3847 "ripper.y" { #if 0 (yyval.val) = rest_arg_append(p, (yyvsp[-3].val), (yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2,v3,v4,v5;v1=(yyvsp[-3].val);v2=dispatch1(mrhs_new_from_args,v1);v3=v2;v4=(yyvsp[0].val);v5=dispatch2(mrhs_add_star,v3,v4);(yyval.val)=v5;} } -#line 14511 "ripper.c" +#line 14521 "ripper.c" break; case 317: /* mrhs: "*" arg_value */ -#line 3844 "ripper.y" +#line 3854 "ripper.y" { #if 0 (yyval.val) = NEW_SPLAT((yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2,v3,v4;v1=dispatch0(mrhs_new);v2=v1;v3=(yyvsp[0].val);v4=dispatch2(mrhs_add_star,v2,v3);(yyval.val)=v4;} } -#line 14522 "ripper.c" +#line 14532 "ripper.c" break; case 328: /* primary: "method" */ -#line 3863 "ripper.y" +#line 3873 "ripper.y" { #if 0 (yyval.val) = (NODE *)NEW_FCALL((yyvsp[0].val), 0, &(yyloc)); #endif {VALUE v1,v2,v3,v4,v5,v6;v1=(yyvsp[0].val);v2=dispatch1(fcall,v1);v3=dispatch0(args_new);v4=v2;v5=v3;v6=dispatch2(method_add_arg,v4,v5);(yyval.val)=v6;} } -#line 14533 "ripper.c" +#line 14543 "ripper.c" break; case 329: /* $@14: %empty */ -#line 3870 "ripper.y" +#line 3880 "ripper.y" { CMDARG_PUSH(0); } -#line 14541 "ripper.c" +#line 14551 "ripper.c" break; case 330: /* primary: k_begin $@14 bodystmt k_end */ -#line 3875 "ripper.y" +#line 3885 "ripper.y" { CMDARG_POP(); #if 0 @@ -14551,17 +14561,17 @@ #endif {VALUE v1,v2;v1=(yyvsp[-1].val);v2=dispatch1(begin,v1);(yyval.val)=v2;} } -#line 14555 "ripper.c" +#line 14565 "ripper.c" break; case 331: /* $@15: %empty */ -#line 3884 "ripper.y" +#line 3894 "ripper.y" {SET_LEX_STATE(EXPR_ENDARG);} -#line 14561 "ripper.c" +#line 14571 "ripper.c" break; case 332: /* primary: "( arg" compstmt $@15 ')' */ -#line 3885 "ripper.y" +#line 3895 "ripper.y" { #if 0 if (nd_type_p((yyvsp[-2].val), NODE_SELF)) RNODE_SELF((yyvsp[-2].val))->nd_state = 0; @@ -14569,11 +14579,11 @@ #endif {VALUE v1,v2;v1=(yyvsp[-2].val);v2=dispatch1(paren,v1);(yyval.val)=v2;} } -#line 14573 "ripper.c" +#line 14583 "ripper.c" break; case 333: /* primary: "(" compstmt ')' */ -#line 3893 "ripper.y" +#line 3903 "ripper.y" { #if 0 if (nd_type_p((yyvsp[-1].val), NODE_SELF)) RNODE_SELF((yyvsp[-1].val))->nd_state = 0; @@ -14581,44 +14591,44 @@ #endif {VALUE v1,v2;v1=(yyvsp[-1].val);v2=dispatch1(paren,v1);(yyval.val)=v2;} } -#line 14585 "ripper.c" +#line 14595 "ripper.c" break; case 334: /* primary: primary_value "::" "constant" */ -#line 3901 "ripper.y" +#line 3911 "ripper.y" { #if 0 (yyval.val) = NEW_COLON2((yyvsp[-2].val), (yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2,v3;v1=(yyvsp[-2].val);v2=(yyvsp[0].val);v3=dispatch2(const_path_ref,v1,v2);(yyval.val)=v3;} } -#line 14596 "ripper.c" +#line 14606 "ripper.c" break; case 335: /* primary: ":: at EXPR_BEG" "constant" */ -#line 3908 "ripper.y" +#line 3918 "ripper.y" { #if 0 (yyval.val) = NEW_COLON3((yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2;v1=(yyvsp[0].val);v2=dispatch1(top_const_ref,v1);(yyval.val)=v2;} } -#line 14607 "ripper.c" +#line 14617 "ripper.c" break; case 336: /* primary: "[" aref_args ']' */ -#line 3915 "ripper.y" +#line 3925 "ripper.y" { #if 0 (yyval.val) = make_list((yyvsp[-1].val), &(yyloc)); #endif {VALUE v1,v2;v1=(yyvsp[-1].val);v2=dispatch1(array,v1);(yyval.val)=v2;} } -#line 14618 "ripper.c" +#line 14628 "ripper.c" break; case 337: /* primary: "{" assoc_list '}' */ -#line 3922 "ripper.y" +#line 3932 "ripper.y" { #if 0 (yyval.val) = new_hash(p, (yyvsp[-1].val), &(yyloc)); @@ -14626,91 +14636,91 @@ #endif {VALUE v1,v2;v1=(yyvsp[-1].val);v2=dispatch1(hash,v1);(yyval.val)=v2;} } -#line 14630 "ripper.c" +#line 14640 "ripper.c" break; case 338: /* primary: k_return */ -#line 3930 "ripper.y" +#line 3940 "ripper.y" { #if 0 (yyval.val) = NEW_RETURN(0, &(yyloc)); #endif {VALUE v1;v1=dispatch0(return0);(yyval.val)=v1;} } -#line 14641 "ripper.c" +#line 14651 "ripper.c" break; case 339: /* primary: k_yield '(' call_args rparen */ -#line 3937 "ripper.y" +#line 3947 "ripper.y" { #if 0 (yyval.val) = new_yield(p, (yyvsp[-1].val), &(yyloc)); #endif {VALUE v1,v2,v3,v4;v1=(yyvsp[-1].val);v2=dispatch1(paren,v1);v3=v2;v4=dispatch1(yield,v3);(yyval.val)=v4;} } -#line 14652 "ripper.c" +#line 14662 "ripper.c" break; case 340: /* primary: k_yield '(' rparen */ -#line 3944 "ripper.y" +#line 3954 "ripper.y" { #if 0 (yyval.val) = NEW_YIELD(0, &(yyloc)); #endif {VALUE v1,v2,v3,v4,v5;v1=dispatch0(args_new);v2=v1;v3=dispatch1(paren,v2);v4=v3;v5=dispatch1(yield,v4);(yyval.val)=v5;} } -#line 14663 "ripper.c" +#line 14673 "ripper.c" break; case 341: /* primary: k_yield */ -#line 3951 "ripper.y" +#line 3961 "ripper.y" { #if 0 (yyval.val) = NEW_YIELD(0, &(yyloc)); #endif {VALUE v1;v1=dispatch0(yield0);(yyval.val)=v1;} } -#line 14674 "ripper.c" +#line 14684 "ripper.c" break; case 342: /* primary: "`defined?'" opt_nl '(' begin_defined expr rparen */ -#line 3958 "ripper.y" +#line 3968 "ripper.y" { p->ctxt.in_defined = (yyvsp[-2].ctxt).in_defined; (yyval.val) = new_defined(p, (yyvsp[-1].val), &(yyloc)); } -#line 14683 "ripper.c" +#line 14693 "ripper.c" break; case 343: /* primary: "`not'" '(' expr rparen */ -#line 3963 "ripper.y" +#line 3973 "ripper.y" { (yyval.val) = call_uni_op(p, method_cond(p, (yyvsp[-1].val), &(yylsp[-1])), METHOD_NOT, &(yylsp[-3]), &(yyloc)); } -#line 14691 "ripper.c" +#line 14701 "ripper.c" break; case 344: /* primary: "`not'" '(' rparen */ -#line 3967 "ripper.y" +#line 3977 "ripper.y" { (yyval.val) = call_uni_op(p, method_cond(p, new_nil(&(yylsp[-1])), &(yylsp[-1])), METHOD_NOT, &(yylsp[-2]), &(yyloc)); } -#line 14699 "ripper.c" +#line 14709 "ripper.c" break; case 345: /* primary: fcall brace_block */ -#line 3971 "ripper.y" +#line 3981 "ripper.y" { #if 0 (yyval.val) = method_add_block(p, (NODE *)(yyvsp[-1].val), (yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2,v3,v4,v5,v6,v7,v8,v9;v1=(yyvsp[-1].val);v2=dispatch1(fcall,v1);v3=dispatch0(args_new);v4=v2;v5=v3;v6=dispatch2(method_add_arg,v4,v5);v7=v6;v8=(yyvsp[0].val);v9=dispatch2(method_add_block,v7,v8);(yyval.val)=v9;} } -#line 14710 "ripper.c" +#line 14720 "ripper.c" break; case 347: /* primary: method_call brace_block */ -#line 3979 "ripper.y" +#line 3989 "ripper.y" { #if 0 block_dup_check(p, get_nd_args(p, (yyvsp[-1].val)), (yyvsp[0].val)); @@ -14718,11 +14728,11 @@ #endif {VALUE v1,v2,v3;v1=(yyvsp[-1].val);v2=(yyvsp[0].val);v3=dispatch2(method_add_block,v1,v2);(yyval.val)=v3;} } -#line 14722 "ripper.c" +#line 14732 "ripper.c" break; case 349: /* primary: k_if expr_value then compstmt if_tail k_end */ -#line 3991 "ripper.y" +#line 4001 "ripper.y" { #if 0 (yyval.val) = new_if(p, (yyvsp[-4].val), (yyvsp[-2].val), (yyvsp[-1].val), &(yyloc)); @@ -14730,11 +14740,11 @@ #endif {VALUE v1,v2,v3,v4;v1=(yyvsp[-4].val);v2=(yyvsp[-2].val);v3=(yyvsp[-1].val);v4=dispatch3(if,v1,v2,v3);(yyval.val)=v4;} } -#line 14734 "ripper.c" +#line 14744 "ripper.c" break; case 350: /* primary: k_unless expr_value then compstmt opt_else k_end */ -#line 4002 "ripper.y" +#line 4012 "ripper.y" { #if 0 (yyval.val) = new_unless(p, (yyvsp[-4].val), (yyvsp[-2].val), (yyvsp[-1].val), &(yyloc)); @@ -14742,11 +14752,11 @@ #endif {VALUE v1,v2,v3,v4;v1=(yyvsp[-4].val);v2=(yyvsp[-2].val);v3=(yyvsp[-1].val);v4=dispatch3(unless,v1,v2,v3);(yyval.val)=v4;} } -#line 14746 "ripper.c" +#line 14756 "ripper.c" break; case 351: /* primary: k_while expr_value_do compstmt k_end */ -#line 4012 "ripper.y" +#line 4022 "ripper.y" { restore_block_exit(p, (yyvsp[-3].node_exits)); #if 0 @@ -14755,11 +14765,11 @@ #endif {VALUE v1,v2,v3;v1=(yyvsp[-2].val);v2=(yyvsp[-1].val);v3=dispatch2(while,v1,v2);(yyval.val)=v3;} } -#line 14759 "ripper.c" +#line 14769 "ripper.c" break; case 352: /* primary: k_until expr_value_do compstmt k_end */ -#line 4023 "ripper.y" +#line 4033 "ripper.y" { restore_block_exit(p, (yyvsp[-3].node_exits)); #if 0 @@ -14768,20 +14778,20 @@ #endif {VALUE v1,v2,v3;v1=(yyvsp[-2].val);v2=(yyvsp[-1].val);v3=dispatch2(until,v1,v2);(yyval.val)=v3;} } -#line 14772 "ripper.c" +#line 14782 "ripper.c" break; case 353: /* @16: %empty */ -#line 4032 "ripper.y" +#line 4042 "ripper.y" { (yyval.val) = p->case_labels; p->case_labels = Qnil; } -#line 14781 "ripper.c" +#line 14791 "ripper.c" break; case 354: /* primary: k_case expr_value opt_terms @16 case_body k_end */ -#line 4038 "ripper.y" +#line 4048 "ripper.y" { if (RTEST(p->case_labels)) rb_hash_clear(p->case_labels); p->case_labels = (yyvsp[-2].val); @@ -14791,20 +14801,20 @@ #endif {VALUE v1,v2,v3;v1=(yyvsp[-4].val);v2=(yyvsp[-1].val);v3=dispatch2(case,v1,v2);(yyval.val)=v3;} } -#line 14795 "ripper.c" +#line 14805 "ripper.c" break; case 355: /* @17: %empty */ -#line 4048 "ripper.y" +#line 4058 "ripper.y" { (yyval.val) = p->case_labels; p->case_labels = 0; } -#line 14804 "ripper.c" +#line 14814 "ripper.c" break; case 356: /* primary: k_case opt_terms @17 case_body k_end */ -#line 4054 "ripper.y" +#line 4064 "ripper.y" { if (RTEST(p->case_labels)) rb_hash_clear(p->case_labels); p->case_labels = (yyvsp[-2].val); @@ -14813,22 +14823,22 @@ #endif {VALUE v1,v2,v3;v1=Qnil;v2=(yyvsp[-1].val);v3=dispatch2(case,v1,v2);(yyval.val)=v3;} } -#line 14817 "ripper.c" +#line 14827 "ripper.c" break; case 357: /* primary: k_case expr_value opt_terms p_case_body k_end */ -#line 4065 "ripper.y" +#line 4075 "ripper.y" { #if 0 (yyval.val) = NEW_CASE3((yyvsp[-3].val), (yyvsp[-1].val), &(yyloc)); #endif {VALUE v1,v2,v3;v1=(yyvsp[-3].val);v2=(yyvsp[-1].val);v3=dispatch2(case,v1,v2);(yyval.val)=v3;} } -#line 14828 "ripper.c" +#line 14838 "ripper.c" break; case 358: /* primary: k_for for_var "`in'" expr_value_do compstmt k_end */ -#line 4074 "ripper.y" +#line 4084 "ripper.y" { restore_block_exit(p, (yyvsp[-5].node_exits)); #if 0 @@ -14870,19 +14880,19 @@ #endif {VALUE v1,v2,v3,v4;v1=(yyvsp[-4].val);v2=(yyvsp[-2].val);v3=(yyvsp[-1].val);v4=dispatch3(for,v1,v2,v3);(yyval.val)=v4;} } -#line 14874 "ripper.c" +#line 14884 "ripper.c" break; case 359: /* $@18: %empty */ -#line 4116 "ripper.y" +#line 4126 "ripper.y" { begin_definition("class", &(yylsp[-2]), &(yylsp[-1])); } -#line 14882 "ripper.c" +#line 14892 "ripper.c" break; case 360: /* primary: k_class cpath superclass $@18 bodystmt k_end */ -#line 4121 "ripper.y" +#line 4131 "ripper.y" { #if 0 (yyval.val) = NEW_CLASS((yyvsp[-4].val), (yyvsp[-1].val), (yyvsp[-3].val), &(yyloc)); @@ -14895,19 +14905,19 @@ p->ctxt.in_class = (yyvsp[-5].ctxt).in_class; p->ctxt.shareable_constant_value = (yyvsp[-5].ctxt).shareable_constant_value; } -#line 14899 "ripper.c" +#line 14909 "ripper.c" break; case 361: /* $@19: %empty */ -#line 4134 "ripper.y" +#line 4144 "ripper.y" { begin_definition("", &(yylsp[-2]), &(yylsp[-1])); } -#line 14907 "ripper.c" +#line 14917 "ripper.c" break; case 362: /* primary: k_class "<<" expr_value $@19 term bodystmt k_end */ -#line 4140 "ripper.y" +#line 4150 "ripper.y" { #if 0 (yyval.val) = NEW_SCLASS((yyvsp[-4].val), (yyvsp[-1].val), &(yyloc)); @@ -14921,19 +14931,19 @@ p->ctxt.in_class = (yyvsp[-6].ctxt).in_class; p->ctxt.shareable_constant_value = (yyvsp[-6].ctxt).shareable_constant_value; } -#line 14925 "ripper.c" +#line 14935 "ripper.c" break; case 363: /* $@20: %empty */ -#line 4154 "ripper.y" +#line 4164 "ripper.y" { begin_definition("module", &(yylsp[-1]), &(yylsp[0])); } -#line 14933 "ripper.c" +#line 14943 "ripper.c" break; case 364: /* primary: k_module cpath $@20 bodystmt k_end */ -#line 4159 "ripper.y" +#line 4169 "ripper.y" { #if 0 (yyval.val) = NEW_MODULE((yyvsp[-3].val), (yyvsp[-1].val), &(yyloc)); @@ -14946,21 +14956,21 @@ p->ctxt.in_class = (yyvsp[-4].ctxt).in_class; p->ctxt.shareable_constant_value = (yyvsp[-4].ctxt).shareable_constant_value; } -#line 14950 "ripper.c" +#line 14960 "ripper.c" break; case 365: /* $@21: %empty */ -#line 4173 "ripper.y" +#line 4183 "ripper.y" { #if 0 push_end_expect_token_locations(p, &(yylsp[-1]).beg_pos); #endif } -#line 14960 "ripper.c" +#line 14970 "ripper.c" break; case 366: /* primary: defn_head f_arglist $@21 bodystmt k_end */ -#line 4180 "ripper.y" +#line 4190 "ripper.y" { restore_defun(p, (yyvsp[-4].node_def_temp)); #if 0 @@ -14971,21 +14981,21 @@ {VALUE v1,v2,v3,v4;v1=(yyvsp[-4].node_def_temp)->nd_mid;v2=(yyvsp[-3].val);v3=(yyvsp[-1].val);v4=dispatch3(def,v1,v2,v3);(yyval.val)=v4;} local_pop(p); } -#line 14975 "ripper.c" +#line 14985 "ripper.c" break; case 367: /* $@22: %empty */ -#line 4192 "ripper.y" +#line 4202 "ripper.y" { #if 0 push_end_expect_token_locations(p, &(yylsp[-1]).beg_pos); #endif } -#line 14985 "ripper.c" +#line 14995 "ripper.c" break; case 368: /* primary: defs_head f_arglist $@22 bodystmt k_end */ -#line 4199 "ripper.y" +#line 4209 "ripper.y" { restore_defun(p, (yyvsp[-4].node_def_temp)); #if 0 @@ -14996,38 +15006,38 @@ {VALUE v1,v2,v3,v4,v5,v6;v1=(yyvsp[-4].node_def_temp)->nd_recv;v2=(yyvsp[-4].node_def_temp)->dot_or_colon;v3=(yyvsp[-4].node_def_temp)->nd_mid;v4=(yyvsp[-3].val);v5=(yyvsp[-1].val);v6=dispatch5(defs,v1,v2,v3,v4,v5);(yyval.val)=v6;} local_pop(p); } -#line 15000 "ripper.c" +#line 15010 "ripper.c" break; case 369: /* primary: "`break'" */ -#line 4210 "ripper.y" +#line 4220 "ripper.y" { (yyval.node) = add_block_exit(p, NEW_BREAK(0, &(yyloc))); {VALUE v1,v2,v3;v1=dispatch0(args_new);v2=v1;v3=dispatch1(break,v2);(yyval.val)=v3;} } -#line 15009 "ripper.c" +#line 15019 "ripper.c" break; case 370: /* primary: "`next'" */ -#line 4215 "ripper.y" +#line 4225 "ripper.y" { (yyval.node) = add_block_exit(p, NEW_NEXT(0, &(yyloc))); {VALUE v1,v2,v3;v1=dispatch0(args_new);v2=v1;v3=dispatch1(next,v2);(yyval.val)=v3;} } -#line 15018 "ripper.c" +#line 15028 "ripper.c" break; case 371: /* primary: "`redo'" */ -#line 4220 "ripper.y" +#line 4230 "ripper.y" { (yyval.node) = add_block_exit(p, NEW_REDO(&(yyloc))); {VALUE v1;v1=dispatch0(redo);(yyval.val)=v1;} } -#line 15027 "ripper.c" +#line 15037 "ripper.c" break; case 372: /* primary: "`retry'" */ -#line 4225 "ripper.y" +#line 4235 "ripper.y" { if (!p->ctxt.in_defined) { switch (p->ctxt.in_rescue) { @@ -15042,31 +15052,31 @@ #endif {VALUE v1;v1=dispatch0(retry);(yyval.val)=v1;} } -#line 15046 "ripper.c" +#line 15056 "ripper.c" break; case 373: /* primary_value: primary */ -#line 4242 "ripper.y" +#line 4252 "ripper.y" { value_expr((yyvsp[0].val)); (yyval.val) = (yyvsp[0].val); } -#line 15055 "ripper.c" +#line 15065 "ripper.c" break; case 374: /* k_begin: "`begin'" */ -#line 4249 "ripper.y" +#line 4259 "ripper.y" { token_info_push(p, "begin", &(yyloc)); #if 0 push_end_expect_token_locations(p, &(yylsp[0]).beg_pos); #endif } -#line 15066 "ripper.c" +#line 15076 "ripper.c" break; case 375: /* k_if: "`if'" */ -#line 4258 "ripper.y" +#line 4268 "ripper.y" { WARN_EOL("if"); token_info_push(p, "if", &(yyloc)); @@ -15084,22 +15094,22 @@ push_end_expect_token_locations(p, &(yylsp[0]).beg_pos); #endif } -#line 15088 "ripper.c" +#line 15098 "ripper.c" break; case 376: /* k_unless: "`unless'" */ -#line 4278 "ripper.y" +#line 4288 "ripper.y" { token_info_push(p, "unless", &(yyloc)); #if 0 push_end_expect_token_locations(p, &(yylsp[0]).beg_pos); #endif } -#line 15099 "ripper.c" +#line 15109 "ripper.c" break; case 377: /* k_while: "`while'" allow_exits */ -#line 4287 "ripper.y" +#line 4297 "ripper.y" { (yyval.node_exits) = (yyvsp[0].node_exits); token_info_push(p, "while", &(yyloc)); @@ -15107,11 +15117,11 @@ push_end_expect_token_locations(p, &(yylsp[-1]).beg_pos); #endif } -#line 15111 "ripper.c" +#line 15121 "ripper.c" break; case 378: /* k_until: "`until'" allow_exits */ -#line 4297 "ripper.y" +#line 4307 "ripper.y" { (yyval.node_exits) = (yyvsp[0].node_exits); token_info_push(p, "until", &(yyloc)); @@ -15119,22 +15129,22 @@ push_end_expect_token_locations(p, &(yylsp[-1]).beg_pos); #endif } -#line 15123 "ripper.c" +#line 15133 "ripper.c" break; case 379: /* k_case: "`case'" */ -#line 4307 "ripper.y" +#line 4317 "ripper.y" { token_info_push(p, "case", &(yyloc)); #if 0 push_end_expect_token_locations(p, &(yylsp[0]).beg_pos); #endif } -#line 15134 "ripper.c" +#line 15144 "ripper.c" break; case 380: /* k_for: "`for'" allow_exits */ -#line 4316 "ripper.y" +#line 4326 "ripper.y" { (yyval.node_exits) = (yyvsp[0].node_exits); token_info_push(p, "for", &(yyloc)); @@ -15142,11 +15152,11 @@ push_end_expect_token_locations(p, &(yylsp[-1]).beg_pos); #endif } -#line 15146 "ripper.c" +#line 15156 "ripper.c" break; case 381: /* k_class: "`class'" */ -#line 4326 "ripper.y" +#line 4336 "ripper.y" { token_info_push(p, "class", &(yyloc)); (yyval.ctxt) = p->ctxt; @@ -15155,11 +15165,11 @@ push_end_expect_token_locations(p, &(yylsp[0]).beg_pos); #endif } -#line 15159 "ripper.c" +#line 15169 "ripper.c" break; case 382: /* k_module: "`module'" */ -#line 4337 "ripper.y" +#line 4347 "ripper.y" { token_info_push(p, "module", &(yyloc)); (yyval.ctxt) = p->ctxt; @@ -15168,70 +15178,70 @@ push_end_expect_token_locations(p, &(yylsp[0]).beg_pos); #endif } -#line 15172 "ripper.c" +#line 15182 "ripper.c" break; case 383: /* k_def: "`def'" */ -#line 4348 "ripper.y" +#line 4358 "ripper.y" { token_info_push(p, "def", &(yyloc)); (yyval.node_def_temp) = NEW_DEF_TEMP(&(yyloc)); p->ctxt.in_argdef = 1; } -#line 15182 "ripper.c" +#line 15192 "ripper.c" break; case 384: /* k_do: "`do'" */ -#line 4356 "ripper.y" +#line 4366 "ripper.y" { token_info_push(p, "do", &(yyloc)); #if 0 push_end_expect_token_locations(p, &(yylsp[0]).beg_pos); #endif } -#line 15193 "ripper.c" +#line 15203 "ripper.c" break; case 385: /* k_do_block: "`do' for block" */ -#line 4365 "ripper.y" +#line 4375 "ripper.y" { token_info_push(p, "do", &(yyloc)); #if 0 push_end_expect_token_locations(p, &(yylsp[0]).beg_pos); #endif } -#line 15204 "ripper.c" +#line 15214 "ripper.c" break; case 386: /* k_rescue: "`rescue'" */ -#line 4374 "ripper.y" +#line 4384 "ripper.y" { token_info_warn(p, "rescue", p->token_info, 1, &(yyloc)); (yyval.ctxt) = p->ctxt; p->ctxt.in_rescue = after_rescue; } -#line 15214 "ripper.c" +#line 15224 "ripper.c" break; case 387: /* k_ensure: "`ensure'" */ -#line 4382 "ripper.y" +#line 4392 "ripper.y" { token_info_warn(p, "ensure", p->token_info, 1, &(yyloc)); (yyval.ctxt) = p->ctxt; } -#line 15223 "ripper.c" +#line 15233 "ripper.c" break; case 388: /* k_when: "`when'" */ -#line 4389 "ripper.y" +#line 4399 "ripper.y" { token_info_warn(p, "when", p->token_info, 0, &(yyloc)); } -#line 15231 "ripper.c" +#line 15241 "ripper.c" break; case 389: /* k_else: "`else'" */ -#line 4395 "ripper.y" +#line 4405 "ripper.y" { token_info *ptinfo_beg = p->token_info; int same = ptinfo_beg && strcmp(ptinfo_beg->token, "case") != 0; @@ -15244,57 +15254,57 @@ if (!e.nonspc) *ptinfo_beg = e; } } -#line 15248 "ripper.c" +#line 15258 "ripper.c" break; case 390: /* k_elsif: "`elsif'" */ -#line 4410 "ripper.y" +#line 4420 "ripper.y" { WARN_EOL("elsif"); token_info_warn(p, "elsif", p->token_info, 1, &(yyloc)); } -#line 15257 "ripper.c" +#line 15267 "ripper.c" break; case 391: /* k_end: "`end'" */ -#line 4417 "ripper.y" +#line 4427 "ripper.y" { token_info_pop(p, "end", &(yyloc)); #if 0 pop_end_expect_token_locations(p); #endif } -#line 15268 "ripper.c" +#line 15278 "ripper.c" break; case 392: /* k_end: "dummy end" */ -#line 4424 "ripper.y" +#line 4434 "ripper.y" { compile_error(p, "syntax error, unexpected end-of-input"); } -#line 15276 "ripper.c" +#line 15286 "ripper.c" break; case 393: /* k_return: "`return'" */ -#line 4430 "ripper.y" +#line 4440 "ripper.y" { if (p->ctxt.in_class && !p->ctxt.in_def && !dyna_in_block(p)) yyerror1(&(yylsp[0]), "Invalid return in class/module body"); } -#line 15285 "ripper.c" +#line 15295 "ripper.c" break; case 394: /* k_yield: "`yield'" */ -#line 4437 "ripper.y" +#line 4447 "ripper.y" { if (!p->ctxt.in_defined && !p->ctxt.in_def && !compile_for_eval) yyerror1(&(yylsp[0]), "Invalid yield"); } -#line 15294 "ripper.c" +#line 15304 "ripper.c" break; case 401: /* if_tail: k_elsif expr_value then compstmt if_tail */ -#line 4456 "ripper.y" +#line 4466 "ripper.y" { #if 0 (yyval.val) = new_if(p, (yyvsp[-3].val), (yyvsp[-1].val), (yyvsp[0].val), &(yyloc)); @@ -15302,22 +15312,22 @@ #endif {VALUE v1,v2,v3,v4;v1=(yyvsp[-3].val);v2=(yyvsp[-1].val);v3=(yyvsp[0].val);v4=dispatch3(elsif,v1,v2,v3);(yyval.val)=v4;} } -#line 15306 "ripper.c" +#line 15316 "ripper.c" break; case 403: /* opt_else: k_else compstmt */ -#line 4467 "ripper.y" +#line 4477 "ripper.y" { #if 0 (yyval.val) = (yyvsp[0].val); #endif {VALUE v1,v2;v1=(yyvsp[0].val);v2=dispatch1(else,v1);(yyval.val)=v2;} } -#line 15317 "ripper.c" +#line 15327 "ripper.c" break; case 406: /* f_marg: f_norm_arg */ -#line 4480 "ripper.y" +#line 4490 "ripper.y" { #if 0 (yyval.val) = assignable(p, (yyvsp[0].val), 0, &(yyloc)); @@ -15325,99 +15335,99 @@ #endif (yyval.val)=assignable(p, (yyvsp[0].val)); } -#line 15329 "ripper.c" +#line 15339 "ripper.c" break; case 407: /* f_marg: "(" f_margs rparen */ -#line 4488 "ripper.y" +#line 4498 "ripper.y" { #if 0 (yyval.val) = (NODE *)(yyvsp[-1].val); #endif {VALUE v1,v2;v1=(yyvsp[-1].val);v2=dispatch1(mlhs_paren,v1);(yyval.val)=v2;} } -#line 15340 "ripper.c" +#line 15350 "ripper.c" break; case 408: /* f_marg_list: f_marg */ -#line 4497 "ripper.y" +#line 4507 "ripper.y" { #if 0 (yyval.val) = NEW_LIST((yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2,v3,v4;v1=dispatch0(mlhs_new);v2=v1;v3=(yyvsp[0].val);v4=dispatch2(mlhs_add,v2,v3);(yyval.val)=v4;} } -#line 15351 "ripper.c" +#line 15361 "ripper.c" break; case 409: /* f_marg_list: f_marg_list ',' f_marg */ -#line 4504 "ripper.y" +#line 4514 "ripper.y" { #if 0 (yyval.val) = list_append(p, (yyvsp[-2].val), (yyvsp[0].val)); #endif {VALUE v1,v2,v3;v1=(yyvsp[-2].val);v2=(yyvsp[0].val);v3=dispatch2(mlhs_add,v1,v2);(yyval.val)=v3;} } -#line 15362 "ripper.c" +#line 15372 "ripper.c" break; case 410: /* f_margs: f_marg_list */ -#line 4513 "ripper.y" +#line 4523 "ripper.y" { #if 0 (yyval.val) = NEW_MASGN((yyvsp[0].val), 0, &(yyloc)); #endif (yyval.val)=(yyvsp[0].val); } -#line 15373 "ripper.c" +#line 15383 "ripper.c" break; case 411: /* f_margs: f_marg_list ',' f_rest_marg */ -#line 4520 "ripper.y" +#line 4530 "ripper.y" { #if 0 (yyval.val) = NEW_MASGN((yyvsp[-2].val), (yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2,v3;v1=(yyvsp[-2].val);v2=(yyvsp[0].val);v3=dispatch2(mlhs_add_star,v1,v2);(yyval.val)=v3;} } -#line 15384 "ripper.c" +#line 15394 "ripper.c" break; case 412: /* f_margs: f_marg_list ',' f_rest_marg ',' f_marg_list */ -#line 4527 "ripper.y" +#line 4537 "ripper.y" { #if 0 (yyval.val) = NEW_MASGN((yyvsp[-4].val), NEW_POSTARG((yyvsp[-2].val), (yyvsp[0].val), &(yyloc)), &(yyloc)); #endif {VALUE v1,v2,v3,v4,v5,v6;v1=(yyvsp[-4].val);v2=(yyvsp[-2].val);v3=dispatch2(mlhs_add_star,v1,v2);v4=v3;v5=(yyvsp[0].val);v6=dispatch2(mlhs_add_post,v4,v5);(yyval.val)=v6;} } -#line 15395 "ripper.c" +#line 15405 "ripper.c" break; case 413: /* f_margs: f_rest_marg */ -#line 4534 "ripper.y" +#line 4544 "ripper.y" { #if 0 (yyval.val) = NEW_MASGN(0, (yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2,v3,v4;v1=dispatch0(mlhs_new);v2=v1;v3=(yyvsp[0].val);v4=dispatch2(mlhs_add_star,v2,v3);(yyval.val)=v4;} } -#line 15406 "ripper.c" +#line 15416 "ripper.c" break; case 414: /* f_margs: f_rest_marg ',' f_marg_list */ -#line 4541 "ripper.y" +#line 4551 "ripper.y" { #if 0 (yyval.val) = NEW_MASGN(0, NEW_POSTARG((yyvsp[-2].val), (yyvsp[0].val), &(yyloc)), &(yyloc)); #endif {VALUE v1,v2,v3,v4,v5,v6,v7;v1=dispatch0(mlhs_new);v2=v1;v3=(yyvsp[-2].val);v4=dispatch2(mlhs_add_star,v2,v3);v5=v4;v6=(yyvsp[0].val);v7=dispatch2(mlhs_add_post,v5,v6);(yyval.val)=v7;} } -#line 15417 "ripper.c" +#line 15427 "ripper.c" break; case 415: /* f_rest_marg: "*" f_norm_arg */ -#line 4550 "ripper.y" +#line 4560 "ripper.y" { #if 0 (yyval.val) = assignable(p, (yyvsp[0].val), 0, &(yyloc)); @@ -15425,82 +15435,82 @@ #endif (yyval.val)=assignable(p, (yyvsp[0].val)); } -#line 15429 "ripper.c" +#line 15439 "ripper.c" break; case 416: /* f_rest_marg: "*" */ -#line 4558 "ripper.y" +#line 4568 "ripper.y" { #if 0 (yyval.val) = NODE_SPECIAL_NO_NAME_REST; #endif (yyval.val)=Qnil; } -#line 15440 "ripper.c" +#line 15450 "ripper.c" break; case 418: /* f_any_kwrest: f_no_kwarg */ -#line 4567 "ripper.y" +#line 4577 "ripper.y" {(yyval.val) = ID2VAL(idNil);} -#line 15446 "ripper.c" +#line 15456 "ripper.c" break; case 419: /* $@23: %empty */ -#line 4570 "ripper.y" +#line 4580 "ripper.y" {p->ctxt.in_argdef = 0;} -#line 15452 "ripper.c" +#line 15462 "ripper.c" break; case 421: /* block_args_tail: f_block_kwarg ',' f_kwrest opt_f_block_arg */ -#line 4573 "ripper.y" +#line 4583 "ripper.y" { (yyval.val) = new_args_tail(p, (yyvsp[-3].val), (yyvsp[-1].val), (yyvsp[0].val), &(yylsp[-1])); } -#line 15460 "ripper.c" +#line 15470 "ripper.c" break; case 422: /* block_args_tail: f_block_kwarg opt_f_block_arg */ -#line 4577 "ripper.y" +#line 4587 "ripper.y" { (yyval.val) = new_args_tail(p, (yyvsp[-1].val), Qnone, (yyvsp[0].val), &(yylsp[-1])); } -#line 15468 "ripper.c" +#line 15478 "ripper.c" break; case 423: /* block_args_tail: f_any_kwrest opt_f_block_arg */ -#line 4581 "ripper.y" +#line 4591 "ripper.y" { (yyval.val) = new_args_tail(p, Qnone, (yyvsp[-1].val), (yyvsp[0].val), &(yylsp[-1])); } -#line 15476 "ripper.c" +#line 15486 "ripper.c" break; case 424: /* block_args_tail: f_block_arg */ -#line 4585 "ripper.y" +#line 4595 "ripper.y" { (yyval.val) = new_args_tail(p, Qnone, Qnone, (yyvsp[0].val), &(yylsp[0])); } -#line 15484 "ripper.c" +#line 15494 "ripper.c" break; case 425: /* opt_block_args_tail: ',' block_args_tail */ -#line 4591 "ripper.y" +#line 4601 "ripper.y" { (yyval.val) = (yyvsp[0].val); } -#line 15492 "ripper.c" +#line 15502 "ripper.c" break; case 426: /* opt_block_args_tail: %empty */ -#line 4595 "ripper.y" +#line 4605 "ripper.y" { (yyval.val) = new_args_tail(p, Qnone, Qnone, Qnone, &(yylsp[0])); } -#line 15500 "ripper.c" +#line 15510 "ripper.c" break; case 427: /* excessed_comma: ',' */ -#line 4601 "ripper.y" +#line 4611 "ripper.y" { /* magic number for rest_id in iseq_set_arguments() */ #if 0 @@ -15508,140 +15518,140 @@ #endif {VALUE v1;v1=dispatch0(excessed_comma);(yyval.val)=v1;} } -#line 15512 "ripper.c" +#line 15522 "ripper.c" break; case 428: /* block_param: f_arg ',' f_block_optarg ',' f_rest_arg opt_block_args_tail */ -#line 4611 "ripper.y" +#line 4621 "ripper.y" { (yyval.val) = new_args(p, (yyvsp[-5].val), (yyvsp[-3].val), (yyvsp[-1].val), Qnone, (yyvsp[0].val), &(yyloc)); } -#line 15520 "ripper.c" +#line 15530 "ripper.c" break; case 429: /* block_param: f_arg ',' f_block_optarg ',' f_rest_arg ',' f_arg opt_block_args_tail */ -#line 4615 "ripper.y" +#line 4625 "ripper.y" { (yyval.val) = new_args(p, (yyvsp[-7].val), (yyvsp[-5].val), (yyvsp[-3].val), (yyvsp[-1].val), (yyvsp[0].val), &(yyloc)); } -#line 15528 "ripper.c" +#line 15538 "ripper.c" break; case 430: /* block_param: f_arg ',' f_block_optarg opt_block_args_tail */ -#line 4619 "ripper.y" +#line 4629 "ripper.y" { (yyval.val) = new_args(p, (yyvsp[-3].val), (yyvsp[-1].val), Qnone, Qnone, (yyvsp[0].val), &(yyloc)); } -#line 15536 "ripper.c" +#line 15546 "ripper.c" break; case 431: /* block_param: f_arg ',' f_block_optarg ',' f_arg opt_block_args_tail */ -#line 4623 "ripper.y" +#line 4633 "ripper.y" { (yyval.val) = new_args(p, (yyvsp[-5].val), (yyvsp[-3].val), Qnone, (yyvsp[-1].val), (yyvsp[0].val), &(yyloc)); } -#line 15544 "ripper.c" +#line 15554 "ripper.c" break; case 432: /* block_param: f_arg ',' f_rest_arg opt_block_args_tail */ -#line 4627 "ripper.y" +#line 4637 "ripper.y" { (yyval.val) = new_args(p, (yyvsp[-3].val), Qnone, (yyvsp[-1].val), Qnone, (yyvsp[0].val), &(yyloc)); } -#line 15552 "ripper.c" +#line 15562 "ripper.c" break; case 433: /* block_param: f_arg excessed_comma */ -#line 4631 "ripper.y" +#line 4641 "ripper.y" { (yyval.val) = new_args_tail(p, Qnone, Qnone, Qnone, &(yylsp[0])); (yyval.val) = new_args(p, (yyvsp[-1].val), Qnone, (yyvsp[0].val), Qnone, (yyval.val), &(yyloc)); } -#line 15561 "ripper.c" +#line 15571 "ripper.c" break; case 434: /* block_param: f_arg ',' f_rest_arg ',' f_arg opt_block_args_tail */ -#line 4636 "ripper.y" +#line 4646 "ripper.y" { (yyval.val) = new_args(p, (yyvsp[-5].val), Qnone, (yyvsp[-3].val), (yyvsp[-1].val), (yyvsp[0].val), &(yyloc)); } -#line 15569 "ripper.c" +#line 15579 "ripper.c" break; case 435: /* block_param: f_arg opt_block_args_tail */ -#line 4640 "ripper.y" +#line 4650 "ripper.y" { (yyval.val) = new_args(p, (yyvsp[-1].val), Qnone, Qnone, Qnone, (yyvsp[0].val), &(yyloc)); } -#line 15577 "ripper.c" +#line 15587 "ripper.c" break; case 436: /* block_param: f_block_optarg ',' f_rest_arg opt_block_args_tail */ -#line 4644 "ripper.y" +#line 4654 "ripper.y" { (yyval.val) = new_args(p, Qnone, (yyvsp[-3].val), (yyvsp[-1].val), Qnone, (yyvsp[0].val), &(yyloc)); } -#line 15585 "ripper.c" +#line 15595 "ripper.c" break; case 437: /* block_param: f_block_optarg ',' f_rest_arg ',' f_arg opt_block_args_tail */ -#line 4648 "ripper.y" +#line 4658 "ripper.y" { (yyval.val) = new_args(p, Qnone, (yyvsp[-5].val), (yyvsp[-3].val), (yyvsp[-1].val), (yyvsp[0].val), &(yyloc)); } -#line 15593 "ripper.c" +#line 15603 "ripper.c" break; case 438: /* block_param: f_block_optarg opt_block_args_tail */ -#line 4652 "ripper.y" +#line 4662 "ripper.y" { (yyval.val) = new_args(p, Qnone, (yyvsp[-1].val), Qnone, Qnone, (yyvsp[0].val), &(yyloc)); } -#line 15601 "ripper.c" +#line 15611 "ripper.c" break; case 439: /* block_param: f_block_optarg ',' f_arg opt_block_args_tail */ -#line 4656 "ripper.y" +#line 4666 "ripper.y" { (yyval.val) = new_args(p, Qnone, (yyvsp[-3].val), Qnone, (yyvsp[-1].val), (yyvsp[0].val), &(yyloc)); } -#line 15609 "ripper.c" +#line 15619 "ripper.c" break; case 440: /* block_param: f_rest_arg opt_block_args_tail */ -#line 4660 "ripper.y" +#line 4670 "ripper.y" { (yyval.val) = new_args(p, Qnone, Qnone, (yyvsp[-1].val), Qnone, (yyvsp[0].val), &(yyloc)); } -#line 15617 "ripper.c" +#line 15627 "ripper.c" break; case 441: /* block_param: f_rest_arg ',' f_arg opt_block_args_tail */ -#line 4664 "ripper.y" +#line 4674 "ripper.y" { (yyval.val) = new_args(p, Qnone, Qnone, (yyvsp[-3].val), (yyvsp[-1].val), (yyvsp[0].val), &(yyloc)); } -#line 15625 "ripper.c" +#line 15635 "ripper.c" break; case 442: /* block_param: block_args_tail */ -#line 4668 "ripper.y" +#line 4678 "ripper.y" { (yyval.val) = new_args(p, Qnone, Qnone, Qnone, Qnone, (yyvsp[0].val), &(yyloc)); } -#line 15633 "ripper.c" +#line 15643 "ripper.c" break; case 444: /* opt_block_param: block_param_def */ -#line 4675 "ripper.y" +#line 4685 "ripper.y" { p->command_start = TRUE; } -#line 15641 "ripper.c" +#line 15651 "ripper.c" break; case 445: /* block_param_def: '|' opt_bv_decl '|' */ -#line 4681 "ripper.y" +#line 4691 "ripper.y" { p->cur_arg = 0; p->max_numparam = ORDINAL_PARAM; @@ -15652,11 +15662,11 @@ {VALUE v1,v2,v3,v4,v5,v6,v7,v8;v1=Qnil;v2=Qnil;v3=Qnil;v4=Qnil;v5=Qnil;v6=Qnil;v7=Qnil;v8=dispatch7(params,v1,v2,v3,v4,v5,v6,v7);(yyval.val)=v8;} {VALUE v1,v2,v3;v1=(yyval.val);v2=(yyvsp[-1].val);v3=dispatch2(block_var,v1,v2);(yyval.val)=v3;} } -#line 15656 "ripper.c" +#line 15666 "ripper.c" break; case 446: /* block_param_def: '|' block_param opt_bv_decl '|' */ -#line 4692 "ripper.y" +#line 4702 "ripper.y" { p->cur_arg = 0; p->max_numparam = ORDINAL_PARAM; @@ -15666,95 +15676,95 @@ #endif {VALUE v1,v2,v3;v1=(yyvsp[-2].val);v2=(yyvsp[-1].val);v3=dispatch2(block_var,v1,v2);(yyval.val)=v3;} } -#line 15670 "ripper.c" +#line 15680 "ripper.c" break; case 447: /* opt_bv_decl: opt_nl */ -#line 4705 "ripper.y" +#line 4715 "ripper.y" { (yyval.val) = 0; } -#line 15678 "ripper.c" +#line 15688 "ripper.c" break; case 448: /* opt_bv_decl: opt_nl ';' bv_decls opt_nl */ -#line 4709 "ripper.y" +#line 4719 "ripper.y" { #if 0 (yyval.val) = 0; #endif (yyval.val)=(yyvsp[-1].val); } -#line 15689 "ripper.c" +#line 15699 "ripper.c" break; case 449: /* bv_decls: bvar */ -#line 4718 "ripper.y" +#line 4728 "ripper.y" {(yyval.val)=rb_ary_new3(1, get_value((yyvsp[0].val)));} -#line 15695 "ripper.c" +#line 15705 "ripper.c" break; case 450: /* bv_decls: bv_decls ',' bvar */ -#line 4720 "ripper.y" +#line 4730 "ripper.y" {(yyval.val)=rb_ary_push((yyvsp[-2].val), get_value((yyvsp[0].val)));} -#line 15701 "ripper.c" +#line 15711 "ripper.c" break; case 451: /* bvar: "local variable or method" */ -#line 4724 "ripper.y" +#line 4734 "ripper.y" { new_bv(p, get_id((yyvsp[0].val))); (yyval.val)=get_value((yyvsp[0].val)); } -#line 15710 "ripper.c" +#line 15720 "ripper.c" break; case 452: /* bvar: f_bad_arg */ -#line 4729 "ripper.y" +#line 4739 "ripper.y" { (yyval.val) = 0; } -#line 15718 "ripper.c" +#line 15728 "ripper.c" break; case 453: /* max_numparam: %empty */ -#line 4734 "ripper.y" +#line 4744 "ripper.y" { (yyval.num) = p->max_numparam; p->max_numparam = 0; } -#line 15727 "ripper.c" +#line 15737 "ripper.c" break; case 454: /* numparam: %empty */ -#line 4740 "ripper.y" +#line 4750 "ripper.y" { (yyval.node) = numparam_push(p); } -#line 15735 "ripper.c" +#line 15745 "ripper.c" break; case 455: /* @24: %empty */ -#line 4746 "ripper.y" +#line 4756 "ripper.y" { token_info_push(p, "->", &(yylsp[0])); (yyvsp[0].vars) = dyna_push(p); (yyval.num) = p->lex.lpar_beg; p->lex.lpar_beg = p->lex.paren_nest; } -#line 15746 "ripper.c" +#line 15756 "ripper.c" break; case 456: /* $@25: %empty */ -#line 4754 "ripper.y" +#line 4764 "ripper.y" { CMDARG_PUSH(0); } -#line 15754 "ripper.c" +#line 15764 "ripper.c" break; case 457: /* lambda: "->" @24 max_numparam numparam allow_exits f_larglist $@25 lambda_body */ -#line 4758 "ripper.y" +#line 4768 "ripper.y" { int max_numparam = p->max_numparam; p->lex.lpar_beg = (yyvsp[-6].num); @@ -15775,11 +15785,11 @@ numparam_pop(p, (yyvsp[-4].node)); dyna_pop(p, (yyvsp[-7].vars)); } -#line 15779 "ripper.c" +#line 15789 "ripper.c" break; case 458: /* f_larglist: '(' f_args opt_bv_decl ')' */ -#line 4781 "ripper.y" +#line 4791 "ripper.y" { p->ctxt.in_argdef = 0; #if 0 @@ -15788,11 +15798,11 @@ #endif {VALUE v1,v2;v1=(yyvsp[-2].val);v2=dispatch1(paren,v1);(yyval.val)=v2;} } -#line 15792 "ripper.c" +#line 15802 "ripper.c" break; case 459: /* f_larglist: f_args */ -#line 4790 "ripper.y" +#line 4800 "ripper.y" { p->ctxt.in_argdef = 0; #if 0 @@ -15801,49 +15811,49 @@ #endif (yyval.val) = (yyvsp[0].val); } -#line 15805 "ripper.c" +#line 15815 "ripper.c" break; case 460: /* lambda_body: tLAMBEG compstmt '}' */ -#line 4801 "ripper.y" +#line 4811 "ripper.y" { token_info_pop(p, "}", &(yylsp[0])); (yyval.val) = (yyvsp[-1].val); } -#line 15814 "ripper.c" +#line 15824 "ripper.c" break; case 461: /* $@26: %empty */ -#line 4806 "ripper.y" +#line 4816 "ripper.y" { #if 0 push_end_expect_token_locations(p, &(yylsp[0]).beg_pos); #endif } -#line 15824 "ripper.c" +#line 15834 "ripper.c" break; case 462: /* lambda_body: "`do' for lambda" $@26 bodystmt k_end */ -#line 4812 "ripper.y" +#line 4822 "ripper.y" { (yyval.val) = (yyvsp[-1].val); } -#line 15832 "ripper.c" +#line 15842 "ripper.c" break; case 463: /* do_block: k_do_block do_body k_end */ -#line 4818 "ripper.y" +#line 4828 "ripper.y" { (yyval.val) = (yyvsp[-1].val); #if 0 set_embraced_location((yyval.val), &(yylsp[-2]), &(yylsp[0])); #endif } -#line 15843 "ripper.c" +#line 15853 "ripper.c" break; case 464: /* block_call: command do_block */ -#line 4827 "ripper.y" +#line 4837 "ripper.y" { #if 0 if (nd_type_p((yyvsp[-1].val), NODE_YIELD)) { @@ -15857,44 +15867,44 @@ #endif {VALUE v1,v2,v3;v1=(yyvsp[-1].val);v2=(yyvsp[0].val);v3=dispatch2(method_add_block,v1,v2);(yyval.val)=v3;} } -#line 15861 "ripper.c" +#line 15871 "ripper.c" break; case 465: /* block_call: block_call call_op2 operation2 opt_paren_args */ -#line 4841 "ripper.y" +#line 4851 "ripper.y" { #if 0 (yyval.val) = new_qcall(p, (yyvsp[-2].val), (yyvsp[-3].val), (yyvsp[-1].val), (yyvsp[0].val), &(yylsp[-1]), &(yyloc)); #endif {VALUE v1,v2,v3,v4,v5,v6,v7;v1=(yyvsp[-3].val);v2=(yyvsp[-2].val);v3=(yyvsp[-1].val);v4=dispatch3(call,v1,v2,v3);v5=v4;v6=(yyvsp[0].val);v7=v6==Qundef ? v5 : dispatch2(method_add_arg,v5,v6);(yyval.val)=v7;} } -#line 15872 "ripper.c" +#line 15882 "ripper.c" break; case 466: /* block_call: block_call call_op2 operation2 opt_paren_args brace_block */ -#line 4848 "ripper.y" +#line 4858 "ripper.y" { #if 0 (yyval.val) = new_command_qcall(p, (yyvsp[-3].val), (yyvsp[-4].val), (yyvsp[-2].val), (yyvsp[-1].val), (yyvsp[0].val), &(yylsp[-2]), &(yyloc)); #endif {VALUE v1,v2,v3,v4,v5,v6,v7,v8;v1=(yyvsp[-4].val);v2=(yyvsp[-3].val);v3=(yyvsp[-2].val);v4=(yyvsp[-1].val);v5=dispatch4(command_call,v1,v2,v3,v4);v6=v5;v7=(yyvsp[0].val);v8=v7==Qundef ? v6 : dispatch2(method_add_block,v6,v7);(yyval.val)=v8;} } -#line 15883 "ripper.c" +#line 15893 "ripper.c" break; case 467: /* block_call: block_call call_op2 operation2 command_args do_block */ -#line 4855 "ripper.y" +#line 4865 "ripper.y" { #if 0 (yyval.val) = new_command_qcall(p, (yyvsp[-3].val), (yyvsp[-4].val), (yyvsp[-2].val), (yyvsp[-1].val), (yyvsp[0].val), &(yylsp[-2]), &(yyloc)); #endif {VALUE v1,v2,v3,v4,v5,v6,v7,v8;v1=(yyvsp[-4].val);v2=(yyvsp[-3].val);v3=(yyvsp[-2].val);v4=(yyvsp[-1].val);v5=dispatch4(command_call,v1,v2,v3,v4);v6=v5;v7=(yyvsp[0].val);v8=dispatch2(method_add_block,v6,v7);(yyval.val)=v8;} } -#line 15894 "ripper.c" +#line 15904 "ripper.c" break; case 468: /* method_call: fcall paren_args */ -#line 4864 "ripper.y" +#line 4874 "ripper.y" { #if 0 (yyvsp[-1].val)->nd_args = (yyvsp[0].val); @@ -15903,11 +15913,11 @@ #endif {VALUE v1,v2,v3,v4,v5;v1=(yyvsp[-1].val);v2=dispatch1(fcall,v1);v3=v2;v4=(yyvsp[0].val);v5=dispatch2(method_add_arg,v3,v4);(yyval.val)=v5;} } -#line 15907 "ripper.c" +#line 15917 "ripper.c" break; case 469: /* method_call: primary_value call_op operation2 opt_paren_args */ -#line 4873 "ripper.y" +#line 4883 "ripper.y" { #if 0 (yyval.val) = new_qcall(p, (yyvsp[-2].val), (yyvsp[-3].val), (yyvsp[-1].val), (yyvsp[0].val), &(yylsp[-1]), &(yyloc)); @@ -15915,11 +15925,11 @@ #endif {VALUE v1,v2,v3,v4,v5,v6,v7;v1=(yyvsp[-3].val);v2=(yyvsp[-2].val);v3=(yyvsp[-1].val);v4=dispatch3(call,v1,v2,v3);v5=v4;v6=(yyvsp[0].val);v7=v6==Qundef ? v5 : dispatch2(method_add_arg,v5,v6);(yyval.val)=v7;} } -#line 15919 "ripper.c" +#line 15929 "ripper.c" break; case 470: /* method_call: primary_value "::" operation2 paren_args */ -#line 4881 "ripper.y" +#line 4891 "ripper.y" { #if 0 (yyval.val) = new_qcall(p, ID2VAL(idCOLON2), (yyvsp[-3].val), (yyvsp[-1].val), (yyvsp[0].val), &(yylsp[-1]), &(yyloc)); @@ -15927,22 +15937,22 @@ #endif {VALUE v1,v2,v3,v4,v5,v6,v7;v1=(yyvsp[-3].val);v2=(yyvsp[-2].val);v3=(yyvsp[-1].val);v4=dispatch3(call,v1,v2,v3);v5=v4;v6=(yyvsp[0].val);v7=dispatch2(method_add_arg,v5,v6);(yyval.val)=v7;} } -#line 15931 "ripper.c" +#line 15941 "ripper.c" break; case 471: /* method_call: primary_value "::" operation3 */ -#line 4889 "ripper.y" +#line 4899 "ripper.y" { #if 0 (yyval.val) = new_qcall(p, ID2VAL(idCOLON2), (yyvsp[-2].val), (yyvsp[0].val), Qnull, &(yylsp[0]), &(yyloc)); #endif {VALUE v1,v2,v3,v4;v1=(yyvsp[-2].val);v2=(yyvsp[-1].val);v3=(yyvsp[0].val);v4=dispatch3(call,v1,v2,v3);(yyval.val)=v4;} } -#line 15942 "ripper.c" +#line 15952 "ripper.c" break; case 472: /* method_call: primary_value call_op paren_args */ -#line 4896 "ripper.y" +#line 4906 "ripper.y" { #if 0 (yyval.val) = new_qcall(p, (yyvsp[-1].val), (yyvsp[-2].val), ID2VAL(idCall), (yyvsp[0].val), &(yylsp[-1]), &(yyloc)); @@ -15950,11 +15960,11 @@ #endif {VALUE v1,v2,v3,v4,v5,v6,v7;v1=(yyvsp[-2].val);v2=(yyvsp[-1].val);v3=ID2VAL(idCall);v4=dispatch3(call,v1,v2,v3);v5=v4;v6=(yyvsp[0].val);v7=dispatch2(method_add_arg,v5,v6);(yyval.val)=v7;} } -#line 15954 "ripper.c" +#line 15964 "ripper.c" break; case 473: /* method_call: primary_value "::" paren_args */ -#line 4904 "ripper.y" +#line 4914 "ripper.y" { #if 0 (yyval.val) = new_qcall(p, ID2VAL(idCOLON2), (yyvsp[-2].val), ID2VAL(idCall), (yyvsp[0].val), &(yylsp[-1]), &(yyloc)); @@ -15962,33 +15972,33 @@ #endif {VALUE v1,v2,v3,v4,v5,v6,v7;v1=(yyvsp[-2].val);v2=(yyvsp[-1].val);v3=ID2VAL(idCall);v4=dispatch3(call,v1,v2,v3);v5=v4;v6=(yyvsp[0].val);v7=dispatch2(method_add_arg,v5,v6);(yyval.val)=v7;} } -#line 15966 "ripper.c" +#line 15976 "ripper.c" break; case 474: /* method_call: "`super'" paren_args */ -#line 4912 "ripper.y" +#line 4922 "ripper.y" { #if 0 (yyval.val) = NEW_SUPER((yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2;v1=(yyvsp[0].val);v2=dispatch1(super,v1);(yyval.val)=v2;} } -#line 15977 "ripper.c" +#line 15987 "ripper.c" break; case 475: /* method_call: "`super'" */ -#line 4919 "ripper.y" +#line 4929 "ripper.y" { #if 0 (yyval.val) = NEW_ZSUPER(&(yyloc)); #endif {VALUE v1;v1=dispatch0(zsuper);(yyval.val)=v1;} } -#line 15988 "ripper.c" +#line 15998 "ripper.c" break; case 476: /* method_call: primary_value '[' opt_call_args rbracket */ -#line 4926 "ripper.y" +#line 4936 "ripper.y" { #if 0 (yyval.val) = NEW_CALL((yyvsp[-3].val), tAREF, (yyvsp[-1].val), &(yyloc)); @@ -15996,39 +16006,39 @@ #endif {VALUE v1,v2,v3;v1=(yyvsp[-3].val);v2=(yyvsp[-1].val);v3=dispatch2(aref,v1,v2);(yyval.val)=v3;} } -#line 16000 "ripper.c" +#line 16010 "ripper.c" break; case 477: /* brace_block: '{' brace_body '}' */ -#line 4936 "ripper.y" +#line 4946 "ripper.y" { (yyval.val) = (yyvsp[-1].val); #if 0 set_embraced_location((yyval.val), &(yylsp[-2]), &(yylsp[0])); #endif } -#line 16011 "ripper.c" +#line 16021 "ripper.c" break; case 478: /* brace_block: k_do do_body k_end */ -#line 4943 "ripper.y" +#line 4953 "ripper.y" { (yyval.val) = (yyvsp[-1].val); #if 0 set_embraced_location((yyval.val), &(yylsp[-2]), &(yylsp[0])); #endif } -#line 16022 "ripper.c" +#line 16032 "ripper.c" break; case 479: /* @27: %empty */ -#line 4951 "ripper.y" +#line 4961 "ripper.y" {(yyval.vars) = dyna_push(p);} -#line 16028 "ripper.c" +#line 16038 "ripper.c" break; case 480: /* brace_body: @27 max_numparam numparam allow_exits opt_block_param compstmt */ -#line 4954 "ripper.y" +#line 4964 "ripper.y" { int max_numparam = p->max_numparam; p->max_numparam = (yyvsp[-4].num); @@ -16041,20 +16051,20 @@ numparam_pop(p, (yyvsp[-3].node)); dyna_pop(p, (yyvsp[-5].vars)); } -#line 16045 "ripper.c" +#line 16055 "ripper.c" break; case 481: /* @28: %empty */ -#line 4968 "ripper.y" +#line 4978 "ripper.y" { (yyval.vars) = dyna_push(p); CMDARG_PUSH(0); } -#line 16054 "ripper.c" +#line 16064 "ripper.c" break; case 482: /* do_body: @28 max_numparam numparam allow_exits opt_block_param bodystmt */ -#line 4974 "ripper.y" +#line 4984 "ripper.y" { int max_numparam = p->max_numparam; p->max_numparam = (yyvsp[-4].num); @@ -16068,11 +16078,11 @@ numparam_pop(p, (yyvsp[-3].node)); dyna_pop(p, (yyvsp[-5].vars)); } -#line 16072 "ripper.c" +#line 16082 "ripper.c" break; case 483: /* case_args: arg_value */ -#line 4990 "ripper.y" +#line 5000 "ripper.y" { #if 0 check_literal_when(p, (yyvsp[0].val), &(yylsp[0])); @@ -16080,22 +16090,22 @@ #endif {VALUE v1,v2,v3,v4;v1=dispatch0(args_new);v2=v1;v3=(yyvsp[0].val);v4=dispatch2(args_add,v2,v3);(yyval.val)=v4;} } -#line 16084 "ripper.c" +#line 16094 "ripper.c" break; case 484: /* case_args: "*" arg_value */ -#line 4998 "ripper.y" +#line 5008 "ripper.y" { #if 0 (yyval.val) = NEW_SPLAT((yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2,v3,v4;v1=dispatch0(args_new);v2=v1;v3=(yyvsp[0].val);v4=dispatch2(args_add_star,v2,v3);(yyval.val)=v4;} } -#line 16095 "ripper.c" +#line 16105 "ripper.c" break; case 485: /* case_args: case_args ',' arg_value */ -#line 5005 "ripper.y" +#line 5015 "ripper.y" { #if 0 check_literal_when(p, (yyvsp[0].val), &(yylsp[0])); @@ -16103,22 +16113,22 @@ #endif {VALUE v1,v2,v3;v1=(yyvsp[-2].val);v2=(yyvsp[0].val);v3=dispatch2(args_add,v1,v2);(yyval.val)=v3;} } -#line 16107 "ripper.c" +#line 16117 "ripper.c" break; case 486: /* case_args: case_args ',' "*" arg_value */ -#line 5013 "ripper.y" +#line 5023 "ripper.y" { #if 0 (yyval.val) = rest_arg_append(p, (yyvsp[-3].val), (yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2,v3;v1=(yyvsp[-3].val);v2=(yyvsp[0].val);v3=dispatch2(args_add_star,v1,v2);(yyval.val)=v3;} } -#line 16118 "ripper.c" +#line 16128 "ripper.c" break; case 487: /* case_body: k_when case_args then compstmt cases */ -#line 5024 "ripper.y" +#line 5034 "ripper.y" { #if 0 (yyval.val) = NEW_WHEN((yyvsp[-3].val), (yyvsp[-1].val), (yyvsp[0].val), &(yyloc)); @@ -16126,55 +16136,55 @@ #endif {VALUE v1,v2,v3,v4;v1=(yyvsp[-3].val);v2=(yyvsp[-1].val);v3=(yyvsp[0].val);v4=dispatch3(when,v1,v2,v3);(yyval.val)=v4;} } -#line 16130 "ripper.c" +#line 16140 "ripper.c" break; case 490: /* p_pvtbl: %empty */ -#line 5037 "ripper.y" +#line 5047 "ripper.y" {(yyval.tbl) = p->pvtbl; p->pvtbl = st_init_numtable();} -#line 16136 "ripper.c" +#line 16146 "ripper.c" break; case 491: /* p_pktbl: %empty */ -#line 5038 "ripper.y" +#line 5048 "ripper.y" {(yyval.tbl) = p->pktbl; p->pktbl = 0;} -#line 16142 "ripper.c" +#line 16152 "ripper.c" break; case 492: /* p_in_kwarg: %empty */ -#line 5040 "ripper.y" +#line 5050 "ripper.y" { (yyval.ctxt) = p->ctxt; SET_LEX_STATE(EXPR_BEG|EXPR_LABEL); p->command_start = FALSE; p->ctxt.in_kwarg = 1; } -#line 16153 "ripper.c" +#line 16163 "ripper.c" break; case 493: /* $@29: %empty */ -#line 5051 "ripper.y" +#line 5061 "ripper.y" { pop_pktbl(p, (yyvsp[-2].tbl)); pop_pvtbl(p, (yyvsp[-3].tbl)); p->ctxt.in_kwarg = (yyvsp[-4].ctxt).in_kwarg; } -#line 16163 "ripper.c" +#line 16173 "ripper.c" break; case 494: /* p_case_body: "`in'" p_in_kwarg p_pvtbl p_pktbl p_top_expr then $@29 compstmt p_cases */ -#line 5058 "ripper.y" +#line 5068 "ripper.y" { #if 0 (yyval.val) = NEW_IN((yyvsp[-4].val), (yyvsp[-1].val), (yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2,v3,v4;v1=(yyvsp[-4].val);v2=(yyvsp[-1].val);v3=(yyvsp[0].val);v4=dispatch3(in,v1,v2,v3);(yyval.val)=v4;} } -#line 16174 "ripper.c" +#line 16184 "ripper.c" break; case 498: /* p_top_expr: p_top_expr_body "`if' modifier" expr_value */ -#line 5072 "ripper.y" +#line 5082 "ripper.y" { #if 0 (yyval.val) = new_if(p, (yyvsp[0].val), (yyvsp[-2].val), 0, &(yyloc)); @@ -16182,11 +16192,11 @@ #endif {VALUE v1,v2,v3;v1=(yyvsp[0].val);v2=(yyvsp[-2].val);v3=dispatch2(if_mod,v1,v2);(yyval.val)=v3;} } -#line 16186 "ripper.c" +#line 16196 "ripper.c" break; case 499: /* p_top_expr: p_top_expr_body "`unless' modifier" expr_value */ -#line 5080 "ripper.y" +#line 5090 "ripper.y" { #if 0 (yyval.val) = new_unless(p, (yyvsp[0].val), (yyvsp[-2].val), 0, &(yyloc)); @@ -16194,20 +16204,20 @@ #endif {VALUE v1,v2,v3;v1=(yyvsp[0].val);v2=(yyvsp[-2].val);v3=dispatch2(unless_mod,v1,v2);(yyval.val)=v3;} } -#line 16198 "ripper.c" +#line 16208 "ripper.c" break; case 501: /* p_top_expr_body: p_expr ',' */ -#line 5091 "ripper.y" +#line 5101 "ripper.y" { (yyval.val) = new_array_pattern_tail(p, Qnone, 1, Qnone, Qnone, &(yyloc)); (yyval.val) = new_array_pattern(p, Qnone, get_value((yyvsp[-1].val)), (yyval.val), &(yyloc)); } -#line 16207 "ripper.c" +#line 16217 "ripper.c" break; case 502: /* p_top_expr_body: p_expr ',' p_args */ -#line 5096 "ripper.y" +#line 5106 "ripper.y" { (yyval.val) = new_array_pattern(p, Qnone, get_value((yyvsp[-2].val)), (yyvsp[0].val), &(yyloc)); #if 0 @@ -16215,35 +16225,35 @@ #endif } -#line 16219 "ripper.c" +#line 16229 "ripper.c" break; case 503: /* p_top_expr_body: p_find */ -#line 5104 "ripper.y" +#line 5114 "ripper.y" { (yyval.val) = new_find_pattern(p, Qnone, (yyvsp[0].val), &(yyloc)); } -#line 16227 "ripper.c" +#line 16237 "ripper.c" break; case 504: /* p_top_expr_body: p_args_tail */ -#line 5108 "ripper.y" +#line 5118 "ripper.y" { (yyval.val) = new_array_pattern(p, Qnone, Qnone, (yyvsp[0].val), &(yyloc)); } -#line 16235 "ripper.c" +#line 16245 "ripper.c" break; case 505: /* p_top_expr_body: p_kwargs */ -#line 5112 "ripper.y" +#line 5122 "ripper.y" { (yyval.val) = new_hash_pattern(p, Qnone, (yyvsp[0].val), &(yyloc)); } -#line 16243 "ripper.c" +#line 16253 "ripper.c" break; case 507: /* p_as: p_expr "=>" p_variable */ -#line 5121 "ripper.y" +#line 5131 "ripper.y" { #if 0 NODE *n = NEW_LIST((yyvsp[-2].val), &(yyloc)); @@ -16252,34 +16262,34 @@ #endif {VALUE v1,v2,v3,v4;v1=(yyvsp[-2].val);v2=STATIC_ID2SYM(id_assoc);v3=(yyvsp[0].val);v4=dispatch3(binary,v1,v2,v3);(yyval.val)=v4;} } -#line 16256 "ripper.c" +#line 16266 "ripper.c" break; case 509: /* p_alt: p_alt '|' p_expr_basic */ -#line 5133 "ripper.y" +#line 5143 "ripper.y" { #if 0 (yyval.val) = NEW_OR((yyvsp[-2].val), (yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2,v3,v4;v1=(yyvsp[-2].val);v2=STATIC_ID2SYM(idOr);v3=(yyvsp[0].val);v4=dispatch3(binary,v1,v2,v3);(yyval.val)=v4;} } -#line 16267 "ripper.c" +#line 16277 "ripper.c" break; case 511: /* p_lparen: '(' p_pktbl */ -#line 5142 "ripper.y" +#line 5152 "ripper.y" { (yyval.tbl) = (yyvsp[0].tbl);} -#line 16273 "ripper.c" +#line 16283 "ripper.c" break; case 512: /* p_lbracket: '[' p_pktbl */ -#line 5143 "ripper.y" +#line 5153 "ripper.y" { (yyval.tbl) = (yyvsp[0].tbl);} -#line 16279 "ripper.c" +#line 16289 "ripper.c" break; case 515: /* p_expr_basic: p_const p_lparen p_args rparen */ -#line 5148 "ripper.y" +#line 5158 "ripper.y" { pop_pktbl(p, (yyvsp[-2].tbl)); (yyval.val) = new_array_pattern(p, (yyvsp[-3].val), Qnone, (yyvsp[-1].val), &(yyloc)); @@ -16288,11 +16298,11 @@ #endif } -#line 16292 "ripper.c" +#line 16302 "ripper.c" break; case 516: /* p_expr_basic: p_const p_lparen p_find rparen */ -#line 5157 "ripper.y" +#line 5167 "ripper.y" { pop_pktbl(p, (yyvsp[-2].tbl)); (yyval.val) = new_find_pattern(p, (yyvsp[-3].val), (yyvsp[-1].val), &(yyloc)); @@ -16301,11 +16311,11 @@ #endif } -#line 16305 "ripper.c" +#line 16315 "ripper.c" break; case 517: /* p_expr_basic: p_const p_lparen p_kwargs rparen */ -#line 5166 "ripper.y" +#line 5176 "ripper.y" { pop_pktbl(p, (yyvsp[-2].tbl)); (yyval.val) = new_hash_pattern(p, (yyvsp[-3].val), (yyvsp[-1].val), &(yyloc)); @@ -16314,20 +16324,20 @@ #endif } -#line 16318 "ripper.c" +#line 16328 "ripper.c" break; case 518: /* p_expr_basic: p_const '(' rparen */ -#line 5175 "ripper.y" +#line 5185 "ripper.y" { (yyval.val) = new_array_pattern_tail(p, Qnone, 0, Qnone, Qnone, &(yyloc)); (yyval.val) = new_array_pattern(p, (yyvsp[-2].val), Qnone, (yyval.val), &(yyloc)); } -#line 16327 "ripper.c" +#line 16337 "ripper.c" break; case 519: /* p_expr_basic: p_const p_lbracket p_args rbracket */ -#line 5180 "ripper.y" +#line 5190 "ripper.y" { pop_pktbl(p, (yyvsp[-2].tbl)); (yyval.val) = new_array_pattern(p, (yyvsp[-3].val), Qnone, (yyvsp[-1].val), &(yyloc)); @@ -16336,11 +16346,11 @@ #endif } -#line 16340 "ripper.c" +#line 16350 "ripper.c" break; case 520: /* p_expr_basic: p_const p_lbracket p_find rbracket */ -#line 5189 "ripper.y" +#line 5199 "ripper.y" { pop_pktbl(p, (yyvsp[-2].tbl)); (yyval.val) = new_find_pattern(p, (yyvsp[-3].val), (yyvsp[-1].val), &(yyloc)); @@ -16349,11 +16359,11 @@ #endif } -#line 16353 "ripper.c" +#line 16363 "ripper.c" break; case 521: /* p_expr_basic: p_const p_lbracket p_kwargs rbracket */ -#line 5198 "ripper.y" +#line 5208 "ripper.y" { pop_pktbl(p, (yyvsp[-2].tbl)); (yyval.val) = new_hash_pattern(p, (yyvsp[-3].val), (yyvsp[-1].val), &(yyloc)); @@ -16362,81 +16372,81 @@ #endif } -#line 16366 "ripper.c" +#line 16376 "ripper.c" break; case 522: /* p_expr_basic: p_const '[' rbracket */ -#line 5207 "ripper.y" +#line 5217 "ripper.y" { (yyval.val) = new_array_pattern_tail(p, Qnone, 0, Qnone, Qnone, &(yyloc)); (yyval.val) = new_array_pattern(p, (yyvsp[-2].val), Qnone, (yyval.val), &(yyloc)); } -#line 16375 "ripper.c" +#line 16385 "ripper.c" break; case 523: /* p_expr_basic: "[" p_args rbracket */ -#line 5212 "ripper.y" +#line 5222 "ripper.y" { (yyval.val) = new_array_pattern(p, Qnone, Qnone, (yyvsp[-1].val), &(yyloc)); } -#line 16383 "ripper.c" +#line 16393 "ripper.c" break; case 524: /* p_expr_basic: "[" p_find rbracket */ -#line 5216 "ripper.y" +#line 5226 "ripper.y" { (yyval.val) = new_find_pattern(p, Qnone, (yyvsp[-1].val), &(yyloc)); } -#line 16391 "ripper.c" +#line 16401 "ripper.c" break; case 525: /* p_expr_basic: "[" rbracket */ -#line 5220 "ripper.y" +#line 5230 "ripper.y" { (yyval.val) = new_array_pattern_tail(p, Qnone, 0, Qnone, Qnone, &(yyloc)); (yyval.val) = new_array_pattern(p, Qnone, Qnone, (yyval.val), &(yyloc)); } -#line 16400 "ripper.c" +#line 16410 "ripper.c" break; case 526: /* $@30: %empty */ -#line 5225 "ripper.y" +#line 5235 "ripper.y" { p->ctxt.in_kwarg = 0; } -#line 16408 "ripper.c" +#line 16418 "ripper.c" break; case 527: /* p_expr_basic: "{" p_pktbl lex_ctxt $@30 p_kwargs rbrace */ -#line 5229 "ripper.y" +#line 5239 "ripper.y" { pop_pktbl(p, (yyvsp[-4].tbl)); p->ctxt.in_kwarg = (yyvsp[-3].ctxt).in_kwarg; (yyval.val) = new_hash_pattern(p, Qnone, (yyvsp[-1].val), &(yyloc)); } -#line 16418 "ripper.c" +#line 16428 "ripper.c" break; case 528: /* p_expr_basic: "{" rbrace */ -#line 5235 "ripper.y" +#line 5245 "ripper.y" { (yyval.val) = new_hash_pattern_tail(p, Qnone, 0, &(yyloc)); (yyval.val) = new_hash_pattern(p, Qnone, (yyval.val), &(yyloc)); } -#line 16427 "ripper.c" +#line 16437 "ripper.c" break; case 529: /* p_expr_basic: "(" p_pktbl p_expr rparen */ -#line 5240 "ripper.y" +#line 5250 "ripper.y" { pop_pktbl(p, (yyvsp[-2].tbl)); (yyval.val) = (yyvsp[-1].val); } -#line 16436 "ripper.c" +#line 16446 "ripper.c" break; case 530: /* p_args: p_expr */ -#line 5247 "ripper.y" +#line 5257 "ripper.y" { #if 0 NODE *pre_args = NEW_LIST((yyvsp[0].val), &(yyloc)); @@ -16445,19 +16455,19 @@ (yyval.val) = new_array_pattern_tail(p, rb_ary_new_from_args(1, get_value((yyvsp[0].val))), 0, Qnone, Qnone, &(yyloc)); } -#line 16449 "ripper.c" +#line 16459 "ripper.c" break; case 531: /* p_args: p_args_head */ -#line 5256 "ripper.y" +#line 5266 "ripper.y" { (yyval.val) = new_array_pattern_tail(p, (yyvsp[0].val), 1, Qnone, Qnone, &(yyloc)); } -#line 16457 "ripper.c" +#line 16467 "ripper.c" break; case 532: /* p_args: p_args_head p_arg */ -#line 5260 "ripper.y" +#line 5270 "ripper.y" { #if 0 (yyval.val) = new_array_pattern_tail(p, list_concat((yyvsp[-1].val), (yyvsp[0].val)), 0, Qnone, Qnone, &(yyloc)); @@ -16466,70 +16476,70 @@ (yyval.val) = new_array_pattern_tail(p, pre_args, 0, Qnone, Qnone, &(yyloc)); } -#line 16470 "ripper.c" +#line 16480 "ripper.c" break; case 533: /* p_args: p_args_head p_rest */ -#line 5269 "ripper.y" +#line 5279 "ripper.y" { (yyval.val) = new_array_pattern_tail(p, (yyvsp[-1].val), 1, (yyvsp[0].val), Qnone, &(yyloc)); } -#line 16478 "ripper.c" +#line 16488 "ripper.c" break; case 534: /* p_args: p_args_head p_rest ',' p_args_post */ -#line 5273 "ripper.y" +#line 5283 "ripper.y" { (yyval.val) = new_array_pattern_tail(p, (yyvsp[-3].val), 1, (yyvsp[-2].val), (yyvsp[0].val), &(yyloc)); } -#line 16486 "ripper.c" +#line 16496 "ripper.c" break; case 536: /* p_args_head: p_arg ',' */ -#line 5280 "ripper.y" +#line 5290 "ripper.y" { (yyval.val) = (yyvsp[-1].val); } -#line 16494 "ripper.c" +#line 16504 "ripper.c" break; case 537: /* p_args_head: p_args_head p_arg ',' */ -#line 5284 "ripper.y" +#line 5294 "ripper.y" { #if 0 (yyval.val) = list_concat((yyvsp[-2].val), (yyvsp[-1].val)); #endif (yyval.val)=rb_ary_concat((yyvsp[-2].val), get_value((yyvsp[-1].val))); } -#line 16505 "ripper.c" +#line 16515 "ripper.c" break; case 538: /* p_args_tail: p_rest */ -#line 5293 "ripper.y" +#line 5303 "ripper.y" { (yyval.val) = new_array_pattern_tail(p, Qnone, 1, (yyvsp[0].val), Qnone, &(yyloc)); } -#line 16513 "ripper.c" +#line 16523 "ripper.c" break; case 539: /* p_args_tail: p_rest ',' p_args_post */ -#line 5297 "ripper.y" +#line 5307 "ripper.y" { (yyval.val) = new_array_pattern_tail(p, Qnone, 1, (yyvsp[-2].val), (yyvsp[0].val), &(yyloc)); } -#line 16521 "ripper.c" +#line 16531 "ripper.c" break; case 540: /* p_find: p_rest ',' p_args_post ',' p_rest */ -#line 5303 "ripper.y" +#line 5313 "ripper.y" { (yyval.val) = new_find_pattern_tail(p, (yyvsp[-4].val), (yyvsp[-2].val), (yyvsp[0].val), &(yyloc)); } -#line 16529 "ripper.c" +#line 16539 "ripper.c" break; case 541: /* p_rest: "*" "local variable or method" */ -#line 5310 "ripper.y" +#line 5320 "ripper.y" { #if 0 error_duplicate_pattern_variable(p, (yyvsp[0].val), &(yylsp[0])); @@ -16537,93 +16547,93 @@ #endif (yyval.val)=assignable(p, var_field(p, (yyvsp[0].val))); } -#line 16541 "ripper.c" +#line 16551 "ripper.c" break; case 542: /* p_rest: "*" */ -#line 5318 "ripper.y" +#line 5328 "ripper.y" { #if 0 (yyval.val) = 0; #endif (yyval.val)=var_field(p, Qnil); } -#line 16552 "ripper.c" +#line 16562 "ripper.c" break; case 544: /* p_args_post: p_args_post ',' p_arg */ -#line 5328 "ripper.y" +#line 5338 "ripper.y" { #if 0 (yyval.val) = list_concat((yyvsp[-2].val), (yyvsp[0].val)); #endif (yyval.val)=rb_ary_concat((yyvsp[-2].val), get_value((yyvsp[0].val))); } -#line 16563 "ripper.c" +#line 16573 "ripper.c" break; case 545: /* p_arg: p_expr */ -#line 5337 "ripper.y" +#line 5347 "ripper.y" { #if 0 (yyval.val) = NEW_LIST((yyvsp[0].val), &(yyloc)); #endif (yyval.val)=rb_ary_new_from_args(1, get_value((yyvsp[0].val))); } -#line 16574 "ripper.c" +#line 16584 "ripper.c" break; case 546: /* p_kwargs: p_kwarg ',' p_any_kwrest */ -#line 5346 "ripper.y" +#line 5356 "ripper.y" { (yyval.val) = new_hash_pattern_tail(p, new_unique_key_hash(p, (yyvsp[-2].val), &(yyloc)), (yyvsp[0].val), &(yyloc)); } -#line 16582 "ripper.c" +#line 16592 "ripper.c" break; case 547: /* p_kwargs: p_kwarg */ -#line 5350 "ripper.y" +#line 5360 "ripper.y" { (yyval.val) = new_hash_pattern_tail(p, new_unique_key_hash(p, (yyvsp[0].val), &(yyloc)), 0, &(yyloc)); } -#line 16590 "ripper.c" +#line 16600 "ripper.c" break; case 548: /* p_kwargs: p_kwarg ',' */ -#line 5354 "ripper.y" +#line 5364 "ripper.y" { (yyval.val) = new_hash_pattern_tail(p, new_unique_key_hash(p, (yyvsp[-1].val), &(yyloc)), 0, &(yyloc)); } -#line 16598 "ripper.c" +#line 16608 "ripper.c" break; case 549: /* p_kwargs: p_any_kwrest */ -#line 5358 "ripper.y" +#line 5368 "ripper.y" { (yyval.val) = new_hash_pattern_tail(p, new_hash(p, Qnone, &(yyloc)), (yyvsp[0].val), &(yyloc)); } -#line 16606 "ripper.c" +#line 16616 "ripper.c" break; case 550: /* p_kwarg: p_kw */ -#line 5364 "ripper.y" +#line 5374 "ripper.y" {(yyval.val)=rb_ary_new_from_args(1, (yyvsp[0].val));} -#line 16612 "ripper.c" +#line 16622 "ripper.c" break; case 551: /* p_kwarg: p_kwarg ',' p_kw */ -#line 5366 "ripper.y" +#line 5376 "ripper.y" { #if 0 (yyval.val) = list_concat((yyvsp[-2].val), (yyvsp[0].val)); #endif (yyval.val)=rb_ary_push((yyvsp[-2].val), (yyvsp[0].val)); } -#line 16623 "ripper.c" +#line 16633 "ripper.c" break; case 552: /* p_kw: p_kw_label p_expr */ -#line 5375 "ripper.y" +#line 5385 "ripper.y" { error_duplicate_pattern_key(p, get_id((yyvsp[-1].val)), &(yylsp[-1])); #if 0 @@ -16631,11 +16641,11 @@ #endif (yyval.val)=rb_ary_new_from_args(2, get_value((yyvsp[-1].val)), get_value((yyvsp[0].val))); } -#line 16635 "ripper.c" +#line 16645 "ripper.c" break; case 553: /* p_kw: p_kw_label */ -#line 5383 "ripper.y" +#line 5393 "ripper.y" { error_duplicate_pattern_key(p, get_id((yyvsp[0].val)), &(yylsp[0])); if ((yyvsp[0].val) && !is_local_id(get_id((yyvsp[0].val)))) { @@ -16647,11 +16657,11 @@ #endif (yyval.val)=rb_ary_new_from_args(2, get_value(assignable(p, (yyvsp[0].val))), Qnil); } -#line 16651 "ripper.c" +#line 16661 "ripper.c" break; case 555: /* p_kw_label: "string literal" string_contents tLABEL_END */ -#line 5398 "ripper.y" +#line 5408 "ripper.y" { YYLTYPE loc = code_loc_gen(&(yylsp[-2]), &(yylsp[0])); #if 0 @@ -16672,41 +16682,41 @@ (yyval.val) = 0; } } -#line 16676 "ripper.c" +#line 16686 "ripper.c" break; case 556: /* p_kwrest: kwrest_mark "local variable or method" */ -#line 5421 "ripper.y" +#line 5431 "ripper.y" { (yyval.val) = (yyvsp[0].val); } -#line 16684 "ripper.c" +#line 16694 "ripper.c" break; case 557: /* p_kwrest: kwrest_mark */ -#line 5425 "ripper.y" +#line 5435 "ripper.y" { (yyval.val) = 0; } -#line 16692 "ripper.c" +#line 16702 "ripper.c" break; case 558: /* p_kwnorest: kwrest_mark "`nil'" */ -#line 5431 "ripper.y" +#line 5441 "ripper.y" { (yyval.val) = 0; } -#line 16700 "ripper.c" +#line 16710 "ripper.c" break; case 560: /* p_any_kwrest: p_kwnorest */ -#line 5437 "ripper.y" +#line 5447 "ripper.y" {(yyval.val) = ID2VAL(idNil);} -#line 16706 "ripper.c" +#line 16716 "ripper.c" break; case 562: /* p_value: p_primitive ".." p_primitive */ -#line 5442 "ripper.y" +#line 5452 "ripper.y" { #if 0 value_expr((yyvsp[-2].val)); @@ -16715,11 +16725,11 @@ #endif {VALUE v1,v2,v3;v1=(yyvsp[-2].val);v2=(yyvsp[0].val);v3=dispatch2(dot2,v1,v2);(yyval.val)=v3;} } -#line 16719 "ripper.c" +#line 16729 "ripper.c" break; case 563: /* p_value: p_primitive "..." p_primitive */ -#line 5451 "ripper.y" +#line 5461 "ripper.y" { #if 0 value_expr((yyvsp[-2].val)); @@ -16728,11 +16738,11 @@ #endif {VALUE v1,v2,v3;v1=(yyvsp[-2].val);v2=(yyvsp[0].val);v3=dispatch2(dot3,v1,v2);(yyval.val)=v3;} } -#line 16732 "ripper.c" +#line 16742 "ripper.c" break; case 564: /* p_value: p_primitive ".." */ -#line 5460 "ripper.y" +#line 5470 "ripper.y" { #if 0 value_expr((yyvsp[-1].val)); @@ -16740,11 +16750,11 @@ #endif {VALUE v1,v2,v3;v1=(yyvsp[-1].val);v2=Qnil;v3=dispatch2(dot2,v1,v2);(yyval.val)=v3;} } -#line 16744 "ripper.c" +#line 16754 "ripper.c" break; case 565: /* p_value: p_primitive "..." */ -#line 5468 "ripper.y" +#line 5478 "ripper.y" { #if 0 value_expr((yyvsp[-1].val)); @@ -16752,11 +16762,11 @@ #endif {VALUE v1,v2,v3;v1=(yyvsp[-1].val);v2=Qnil;v3=dispatch2(dot3,v1,v2);(yyval.val)=v3;} } -#line 16756 "ripper.c" +#line 16766 "ripper.c" break; case 569: /* p_value: "(.." p_primitive */ -#line 5479 "ripper.y" +#line 5489 "ripper.y" { #if 0 value_expr((yyvsp[0].val)); @@ -16764,11 +16774,11 @@ #endif {VALUE v1,v2,v3;v1=Qnil;v2=(yyvsp[0].val);v3=dispatch2(dot2,v1,v2);(yyval.val)=v3;} } -#line 16768 "ripper.c" +#line 16778 "ripper.c" break; case 570: /* p_value: "(..." p_primitive */ -#line 5487 "ripper.y" +#line 5497 "ripper.y" { #if 0 value_expr((yyvsp[0].val)); @@ -16776,22 +16786,22 @@ #endif {VALUE v1,v2,v3;v1=Qnil;v2=(yyvsp[0].val);v3=dispatch2(dot3,v1,v2);(yyval.val)=v3;} } -#line 16780 "ripper.c" +#line 16790 "ripper.c" break; case 579: /* p_primitive: keyword_variable */ -#line 5505 "ripper.y" +#line 5515 "ripper.y" { #if 0 if (!((yyval.val) = gettable(p, (yyvsp[0].val), &(yyloc)))) (yyval.val) = NEW_ERROR(&(yyloc)); #endif {VALUE v1,v2;v1=(yyvsp[0].val);v2=dispatch1(var_ref,v1);(yyval.val)=v2;} } -#line 16791 "ripper.c" +#line 16801 "ripper.c" break; case 581: /* p_variable: "local variable or method" */ -#line 5515 "ripper.y" +#line 5525 "ripper.y" { #if 0 error_duplicate_pattern_variable(p, (yyvsp[0].val), &(yylsp[0])); @@ -16799,11 +16809,11 @@ #endif (yyval.val)=assignable(p, var_field(p, (yyvsp[0].val))); } -#line 16803 "ripper.c" +#line 16813 "ripper.c" break; case 582: /* p_var_ref: '^' "local variable or method" */ -#line 5525 "ripper.y" +#line 5535 "ripper.y" { #if 0 NODE *n = gettable(p, (yyvsp[0].val), &(yyloc)); @@ -16814,66 +16824,66 @@ #endif {VALUE v1,v2;v1=(yyvsp[0].val);v2=dispatch1(var_ref,v1);(yyval.val)=v2;} } -#line 16818 "ripper.c" +#line 16828 "ripper.c" break; case 583: /* p_var_ref: '^' nonlocal_var */ -#line 5536 "ripper.y" +#line 5546 "ripper.y" { #if 0 if (!((yyval.val) = gettable(p, (yyvsp[0].val), &(yyloc)))) (yyval.val) = NEW_BEGIN(0, &(yyloc)); #endif {VALUE v1,v2;v1=(yyvsp[0].val);v2=dispatch1(var_ref,v1);(yyval.val)=v2;} } -#line 16829 "ripper.c" +#line 16839 "ripper.c" break; case 584: /* p_expr_ref: '^' "(" expr_value rparen */ -#line 5545 "ripper.y" +#line 5555 "ripper.y" { #if 0 (yyval.val) = NEW_BLOCK((yyvsp[-1].val), &(yyloc)); #endif {VALUE v1,v2;v1=(yyvsp[-1].val);v2=dispatch1(begin,v1);(yyval.val)=v2;} } -#line 16840 "ripper.c" +#line 16850 "ripper.c" break; case 585: /* p_const: ":: at EXPR_BEG" cname */ -#line 5554 "ripper.y" +#line 5564 "ripper.y" { #if 0 (yyval.val) = NEW_COLON3((yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2;v1=(yyvsp[0].val);v2=dispatch1(top_const_ref,v1);(yyval.val)=v2;} } -#line 16851 "ripper.c" +#line 16861 "ripper.c" break; case 586: /* p_const: p_const "::" cname */ -#line 5561 "ripper.y" +#line 5571 "ripper.y" { #if 0 (yyval.val) = NEW_COLON2((yyvsp[-2].val), (yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2,v3;v1=(yyvsp[-2].val);v2=(yyvsp[0].val);v3=dispatch2(const_path_ref,v1,v2);(yyval.val)=v3;} } -#line 16862 "ripper.c" +#line 16872 "ripper.c" break; case 587: /* p_const: "constant" */ -#line 5568 "ripper.y" +#line 5578 "ripper.y" { #if 0 (yyval.val) = gettable(p, (yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2;v1=(yyvsp[0].val);v2=dispatch1(var_ref,v1);(yyval.val)=v2;} } -#line 16873 "ripper.c" +#line 16883 "ripper.c" break; case 588: /* opt_rescue: k_rescue exc_list exc_var then compstmt opt_rescue */ -#line 5579 "ripper.y" +#line 5589 "ripper.y" { #if 0 NODE *body = (yyvsp[-1].val); @@ -16895,41 +16905,41 @@ #endif {VALUE v1,v2,v3,v4,v5;v1=(yyvsp[-4].val);v2=(yyvsp[-3].val);v3=(yyvsp[-1].val);v4=(yyvsp[0].val);v5=dispatch4(rescue,v1,v2,v3,v4);(yyval.val)=v5;} } -#line 16899 "ripper.c" +#line 16909 "ripper.c" break; case 590: /* exc_list: arg_value */ -#line 5604 "ripper.y" +#line 5614 "ripper.y" { #if 0 (yyval.val) = NEW_LIST((yyvsp[0].val), &(yyloc)); #endif (yyval.val)=rb_ary_new3(1, get_value((yyvsp[0].val))); } -#line 16910 "ripper.c" +#line 16920 "ripper.c" break; case 591: /* exc_list: mrhs */ -#line 5611 "ripper.y" +#line 5621 "ripper.y" { #if 0 if (!((yyval.val) = splat_array((yyvsp[0].val)))) (yyval.val) = (yyvsp[0].val); #endif (yyval.val)=(yyvsp[0].val); } -#line 16921 "ripper.c" +#line 16931 "ripper.c" break; case 593: /* exc_var: "=>" lhs */ -#line 5621 "ripper.y" +#line 5631 "ripper.y" { (yyval.val) = (yyvsp[0].val); } -#line 16929 "ripper.c" +#line 16939 "ripper.c" break; case 595: /* opt_ensure: k_ensure compstmt */ -#line 5628 "ripper.y" +#line 5638 "ripper.y" { p->ctxt.in_rescue = (yyvsp[-1].ctxt).in_rescue; #if 0 @@ -16937,11 +16947,11 @@ #endif {VALUE v1,v2;v1=(yyvsp[0].val);v2=dispatch1(ensure,v1);(yyval.val)=v2;} } -#line 16941 "ripper.c" +#line 16951 "ripper.c" break; case 599: /* strings: string */ -#line 5643 "ripper.y" +#line 5653 "ripper.y" { #if 0 NODE *node = (yyvsp[0].val); @@ -16956,22 +16966,22 @@ #endif (yyval.val)=(yyvsp[0].val); } -#line 16960 "ripper.c" +#line 16970 "ripper.c" break; case 602: /* string: string string1 */ -#line 5662 "ripper.y" +#line 5672 "ripper.y" { #if 0 (yyval.val) = literal_concat(p, (yyvsp[-1].val), (yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2,v3;v1=(yyvsp[-1].val);v2=(yyvsp[0].val);v3=dispatch2(string_concat,v1,v2);(yyval.val)=v3;} } -#line 16971 "ripper.c" +#line 16981 "ripper.c" break; case 603: /* string1: "string literal" string_contents "terminator" */ -#line 5671 "ripper.y" +#line 5681 "ripper.y" { #if 0 (yyval.val) = heredoc_dedent(p, (yyvsp[-1].val)); @@ -16979,185 +16989,185 @@ #endif {VALUE v1,v2;v1=heredoc_dedent(p, (yyvsp[-1].val));v2=dispatch1(string_literal,v1);(yyval.val)=v2;} } -#line 16983 "ripper.c" +#line 16993 "ripper.c" break; case 604: /* xstring: "backtick literal" xstring_contents "terminator" */ -#line 5681 "ripper.y" +#line 5691 "ripper.y" { #if 0 (yyval.val) = new_xstring(p, heredoc_dedent(p, (yyvsp[-1].val)), &(yyloc)); #endif {VALUE v1,v2;v1=heredoc_dedent(p, (yyvsp[-1].val));v2=dispatch1(xstring_literal,v1);(yyval.val)=v2;} } -#line 16994 "ripper.c" +#line 17004 "ripper.c" break; case 605: /* regexp: "regexp literal" regexp_contents tREGEXP_END */ -#line 5690 "ripper.y" +#line 5700 "ripper.y" { (yyval.val) = new_regexp(p, (yyvsp[-1].val), (yyvsp[0].val), &(yyloc)); } -#line 17002 "ripper.c" +#line 17012 "ripper.c" break; case 606: /* words_sep: ' ' */ -#line 5695 "ripper.y" +#line 5705 "ripper.y" {} -#line 17008 "ripper.c" +#line 17018 "ripper.c" break; case 608: /* words: "word list" words_sep word_list "terminator" */ -#line 5700 "ripper.y" +#line 5710 "ripper.y" { #if 0 (yyval.val) = make_list((yyvsp[-1].val), &(yyloc)); #endif {VALUE v1,v2;v1=(yyvsp[-1].val);v2=dispatch1(array,v1);(yyval.val)=v2;} } -#line 17019 "ripper.c" +#line 17029 "ripper.c" break; case 609: /* word_list: %empty */ -#line 5709 "ripper.y" +#line 5719 "ripper.y" { #if 0 (yyval.val) = 0; #endif {VALUE v1;v1=dispatch0(words_new);(yyval.val)=v1;} } -#line 17030 "ripper.c" +#line 17040 "ripper.c" break; case 610: /* word_list: word_list word words_sep */ -#line 5716 "ripper.y" +#line 5726 "ripper.y" { #if 0 (yyval.val) = list_append(p, (yyvsp[-2].val), evstr2dstr(p, (yyvsp[-1].val))); #endif {VALUE v1,v2,v3;v1=(yyvsp[-2].val);v2=(yyvsp[-1].val);v3=dispatch2(words_add,v1,v2);(yyval.val)=v3;} } -#line 17041 "ripper.c" +#line 17051 "ripper.c" break; case 611: /* word: string_content */ -#line 5725 "ripper.y" +#line 5735 "ripper.y" {{VALUE v1,v2,v3,v4;v1=dispatch0(word_new);v2=v1;v3=(yyvsp[0].val);v4=dispatch2(word_add,v2,v3);(yyval.val)=v4;}} -#line 17047 "ripper.c" +#line 17057 "ripper.c" break; case 612: /* word: word string_content */ -#line 5727 "ripper.y" +#line 5737 "ripper.y" { #if 0 (yyval.val) = literal_concat(p, (yyvsp[-1].val), (yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2,v3;v1=(yyvsp[-1].val);v2=(yyvsp[0].val);v3=dispatch2(word_add,v1,v2);(yyval.val)=v3;} } -#line 17058 "ripper.c" +#line 17068 "ripper.c" break; case 613: /* symbols: "symbol list" words_sep symbol_list "terminator" */ -#line 5736 "ripper.y" +#line 5746 "ripper.y" { #if 0 (yyval.val) = make_list((yyvsp[-1].val), &(yyloc)); #endif {VALUE v1,v2;v1=(yyvsp[-1].val);v2=dispatch1(array,v1);(yyval.val)=v2;} } -#line 17069 "ripper.c" +#line 17079 "ripper.c" break; case 614: /* symbol_list: %empty */ -#line 5745 "ripper.y" +#line 5755 "ripper.y" { #if 0 (yyval.val) = 0; #endif {VALUE v1;v1=dispatch0(symbols_new);(yyval.val)=v1;} } -#line 17080 "ripper.c" +#line 17090 "ripper.c" break; case 615: /* symbol_list: symbol_list word words_sep */ -#line 5752 "ripper.y" +#line 5762 "ripper.y" { #if 0 (yyval.val) = symbol_append(p, (yyvsp[-2].val), evstr2dstr(p, (yyvsp[-1].val))); #endif {VALUE v1,v2,v3;v1=(yyvsp[-2].val);v2=(yyvsp[-1].val);v3=dispatch2(symbols_add,v1,v2);(yyval.val)=v3;} } -#line 17091 "ripper.c" +#line 17101 "ripper.c" break; case 616: /* qwords: "verbatim word list" words_sep qword_list "terminator" */ -#line 5761 "ripper.y" +#line 5771 "ripper.y" { #if 0 (yyval.val) = make_list((yyvsp[-1].val), &(yyloc)); #endif {VALUE v1,v2;v1=(yyvsp[-1].val);v2=dispatch1(array,v1);(yyval.val)=v2;} } -#line 17102 "ripper.c" +#line 17112 "ripper.c" break; case 617: /* qsymbols: "verbatim symbol list" words_sep qsym_list "terminator" */ -#line 5770 "ripper.y" +#line 5780 "ripper.y" { #if 0 (yyval.val) = make_list((yyvsp[-1].val), &(yyloc)); #endif {VALUE v1,v2;v1=(yyvsp[-1].val);v2=dispatch1(array,v1);(yyval.val)=v2;} } -#line 17113 "ripper.c" +#line 17123 "ripper.c" break; case 618: /* qword_list: %empty */ -#line 5779 "ripper.y" +#line 5789 "ripper.y" { #if 0 (yyval.val) = 0; #endif {VALUE v1;v1=dispatch0(qwords_new);(yyval.val)=v1;} } -#line 17124 "ripper.c" +#line 17134 "ripper.c" break; case 619: /* qword_list: qword_list "literal content" words_sep */ -#line 5786 "ripper.y" +#line 5796 "ripper.y" { #if 0 (yyval.val) = list_append(p, (yyvsp[-2].val), (yyvsp[-1].val)); #endif {VALUE v1,v2,v3;v1=(yyvsp[-2].val);v2=(yyvsp[-1].val);v3=dispatch2(qwords_add,v1,v2);(yyval.val)=v3;} } -#line 17135 "ripper.c" +#line 17145 "ripper.c" break; case 620: /* qsym_list: %empty */ -#line 5795 "ripper.y" +#line 5805 "ripper.y" { #if 0 (yyval.val) = 0; #endif {VALUE v1;v1=dispatch0(qsymbols_new);(yyval.val)=v1;} } -#line 17146 "ripper.c" +#line 17156 "ripper.c" break; case 621: /* qsym_list: qsym_list "literal content" words_sep */ -#line 5802 "ripper.y" +#line 5812 "ripper.y" { #if 0 (yyval.val) = symbol_append(p, (yyvsp[-2].val), (yyvsp[-1].val)); #endif {VALUE v1,v2,v3;v1=(yyvsp[-2].val);v2=(yyvsp[-1].val);v3=dispatch2(qsymbols_add,v1,v2);(yyval.val)=v3;} } -#line 17157 "ripper.c" +#line 17167 "ripper.c" break; case 622: /* string_contents: %empty */ -#line 5811 "ripper.y" +#line 5821 "ripper.y" { #if 0 (yyval.val) = 0; @@ -17168,11 +17178,11 @@ (yyval.val) = ripper_new_yylval(p, 0, (yyval.val), 0); } -#line 17172 "ripper.c" +#line 17182 "ripper.c" break; case 623: /* string_contents: string_contents string_content */ -#line 5822 "ripper.y" +#line 5832 "ripper.y" { #if 0 (yyval.val) = literal_concat(p, (yyvsp[-1].val), (yyvsp[0].val), &(yyloc)); @@ -17188,33 +17198,33 @@ } } -#line 17192 "ripper.c" +#line 17202 "ripper.c" break; case 624: /* xstring_contents: %empty */ -#line 5840 "ripper.y" +#line 5850 "ripper.y" { #if 0 (yyval.val) = 0; #endif {VALUE v1;v1=dispatch0(xstring_new);(yyval.val)=v1;} } -#line 17203 "ripper.c" +#line 17213 "ripper.c" break; case 625: /* xstring_contents: xstring_contents string_content */ -#line 5847 "ripper.y" +#line 5857 "ripper.y" { #if 0 (yyval.val) = literal_concat(p, (yyvsp[-1].val), (yyvsp[0].val), &(yyloc)); #endif {VALUE v1,v2,v3;v1=(yyvsp[-1].val);v2=(yyvsp[0].val);v3=dispatch2(xstring_add,v1,v2);(yyval.val)=v3;} } -#line 17214 "ripper.c" +#line 17224 "ripper.c" break; case 626: /* regexp_contents: %empty */ -#line 5856 "ripper.y" +#line 5866 "ripper.y" { #if 0 (yyval.val) = 0; @@ -17225,11 +17235,11 @@ (yyval.val) = ripper_new_yylval(p, 0, (yyval.val), 0); } -#line 17229 "ripper.c" +#line 17239 "ripper.c" break; case 627: /* regexp_contents: regexp_contents string_content */ -#line 5867 "ripper.y" +#line 5877 "ripper.y" { #if 0 NODE *head = (yyvsp[-1].val), *tail = (yyvsp[0].val); @@ -17268,28 +17278,28 @@ } } -#line 17272 "ripper.c" +#line 17282 "ripper.c" break; case 628: /* string_content: "literal content" */ -#line 5908 "ripper.y" +#line 5918 "ripper.y" {(yyval.val)=ripper_new_yylval(p, 0, get_value((yyvsp[0].val)), (yyvsp[0].val));} -#line 17278 "ripper.c" +#line 17288 "ripper.c" break; case 629: /* @31: %empty */ -#line 5910 "ripper.y" +#line 5920 "ripper.y" { /* need to backup p->lex.strterm so that a string literal `%&foo,#$&,bar&` can be parsed */ (yyval.strterm) = p->lex.strterm; p->lex.strterm = 0; SET_LEX_STATE(EXPR_BEG); } -#line 17289 "ripper.c" +#line 17299 "ripper.c" break; case 630: /* string_content: tSTRING_DVAR @31 string_dvar */ -#line 5917 "ripper.y" +#line 5927 "ripper.y" { p->lex.strterm = (yyvsp[-1].strterm); #if 0 @@ -17298,11 +17308,11 @@ #endif {VALUE v1,v2;v1=(yyvsp[0].val);v2=dispatch1(string_dvar,v1);(yyval.val)=v2;} } -#line 17302 "ripper.c" +#line 17312 "ripper.c" break; case 631: /* @32: %empty */ -#line 5926 "ripper.y" +#line 5936 "ripper.y" { CMDARG_PUSH(0); COND_PUSH(0); @@ -17312,29 +17322,29 @@ (yyval.num) = p->lex.state; SET_LEX_STATE(EXPR_BEG); } -#line 17316 "ripper.c" +#line 17326 "ripper.c" break; case 632: /* @33: %empty */ -#line 5935 "ripper.y" +#line 5945 "ripper.y" { (yyval.num) = p->lex.brace_nest; p->lex.brace_nest = 0; } -#line 17325 "ripper.c" +#line 17335 "ripper.c" break; case 633: /* @34: %empty */ -#line 5939 "ripper.y" +#line 5949 "ripper.y" { (yyval.num) = p->heredoc_indent; p->heredoc_indent = 0; } -#line 17334 "ripper.c" +#line 17344 "ripper.c" break; case 634: /* string_content: tSTRING_DBEG @32 @33 @34 compstmt string_dend */ -#line 5944 "ripper.y" +#line 5954 "ripper.y" { COND_POP(); CMDARG_POP(); @@ -17349,22 +17359,22 @@ #endif {VALUE v1,v2;v1=(yyvsp[-1].val);v2=dispatch1(string_embexpr,v1);(yyval.val)=v2;} } -#line 17353 "ripper.c" +#line 17363 "ripper.c" break; case 637: /* string_dvar: nonlocal_var */ -#line 5965 "ripper.y" +#line 5975 "ripper.y" { #if 0 if (!((yyval.val) = gettable(p, (yyvsp[0].val), &(yyloc)))) (yyval.val) = NEW_ERROR(&(yyloc)); #endif {VALUE v1,v2;v1=(yyvsp[0].val);v2=dispatch1(var_ref,v1);(yyval.val)=v2;} } -#line 17364 "ripper.c" +#line 17374 "ripper.c" break; case 641: /* ssym: "symbol literal" sym */ -#line 5979 "ripper.y" +#line 5989 "ripper.y" { SET_LEX_STATE(EXPR_END); #if 0 @@ -17372,11 +17382,11 @@ #endif {VALUE v1,v2,v3,v4;v1=(yyvsp[0].val);v2=dispatch1(symbol,v1);v3=v2;v4=dispatch1(symbol_literal,v3);(yyval.val)=v4;} } -#line 17376 "ripper.c" +#line 17386 "ripper.c" break; case 644: /* dsym: "symbol literal" string_contents "terminator" */ -#line 5993 "ripper.y" +#line 6003 "ripper.y" { SET_LEX_STATE(EXPR_END); #if 0 @@ -17384,11 +17394,11 @@ #endif {VALUE v1,v2;v1=(yyvsp[-1].val);v2=dispatch1(dyna_symbol,v1);(yyval.val)=v2;} } -#line 17388 "ripper.c" +#line 17398 "ripper.c" break; case 646: /* numeric: tUMINUS_NUM simple_numeric */ -#line 6004 "ripper.y" +#line 6014 "ripper.y" { #if 0 (yyval.val) = (yyvsp[0].val); @@ -17396,53 +17406,53 @@ #endif {VALUE v1,v2,v3;v1=ID2VAL(idUMinus);v2=(yyvsp[0].val);v3=dispatch2(unary,v1,v2);(yyval.val)=v3;} } -#line 17400 "ripper.c" +#line 17410 "ripper.c" break; case 657: /* keyword_variable: "`nil'" */ -#line 6029 "ripper.y" +#line 6039 "ripper.y" {(yyval.val) = KWD2EID(nil, (yyvsp[0].val));} -#line 17406 "ripper.c" +#line 17416 "ripper.c" break; case 658: /* keyword_variable: "`self'" */ -#line 6030 "ripper.y" +#line 6040 "ripper.y" {(yyval.val) = KWD2EID(self, (yyvsp[0].val));} -#line 17412 "ripper.c" +#line 17422 "ripper.c" break; case 659: /* keyword_variable: "`true'" */ -#line 6031 "ripper.y" +#line 6041 "ripper.y" {(yyval.val) = KWD2EID(true, (yyvsp[0].val));} -#line 17418 "ripper.c" +#line 17428 "ripper.c" break; case 660: /* keyword_variable: "`false'" */ -#line 6032 "ripper.y" +#line 6042 "ripper.y" {(yyval.val) = KWD2EID(false, (yyvsp[0].val));} -#line 17424 "ripper.c" +#line 17434 "ripper.c" break; case 661: /* keyword_variable: "`__FILE__'" */ -#line 6033 "ripper.y" +#line 6043 "ripper.y" {(yyval.val) = KWD2EID(_FILE__, (yyvsp[0].val));} -#line 17430 "ripper.c" +#line 17440 "ripper.c" break; case 662: /* keyword_variable: "`__LINE__'" */ -#line 6034 "ripper.y" +#line 6044 "ripper.y" {(yyval.val) = KWD2EID(_LINE__, (yyvsp[0].val));} -#line 17436 "ripper.c" +#line 17446 "ripper.c" break; case 663: /* keyword_variable: "`__ENCODING__'" */ -#line 6035 "ripper.y" +#line 6045 "ripper.y" {(yyval.val) = KWD2EID(_ENCODING__, (yyvsp[0].val));} -#line 17442 "ripper.c" +#line 17452 "ripper.c" break; case 664: /* var_ref: user_variable */ -#line 6039 "ripper.y" +#line 6049 "ripper.y" { #if 0 if (!((yyval.val) = gettable(p, (yyvsp[0].val), &(yyloc)))) (yyval.val) = NEW_BEGIN(0, &(yyloc)); @@ -17455,82 +17465,82 @@ } } -#line 17459 "ripper.c" +#line 17469 "ripper.c" break; case 665: /* var_ref: keyword_variable */ -#line 6052 "ripper.y" +#line 6062 "ripper.y" { #if 0 if (!((yyval.val) = gettable(p, (yyvsp[0].val), &(yyloc)))) (yyval.val) = NEW_ERROR(&(yyloc)); #endif {VALUE v1,v2;v1=(yyvsp[0].val);v2=dispatch1(var_ref,v1);(yyval.val)=v2;} } -#line 17470 "ripper.c" +#line 17480 "ripper.c" break; case 666: /* var_lhs: user_variable */ -#line 6061 "ripper.y" +#line 6071 "ripper.y" { #if 0 (yyval.val) = assignable(p, (yyvsp[0].val), 0, &(yyloc)); #endif (yyval.val)=assignable(p, var_field(p, (yyvsp[0].val))); } -#line 17481 "ripper.c" +#line 17491 "ripper.c" break; case 667: /* var_lhs: keyword_variable */ -#line 6068 "ripper.y" +#line 6078 "ripper.y" { #if 0 (yyval.val) = assignable(p, (yyvsp[0].val), 0, &(yyloc)); #endif (yyval.val)=assignable(p, var_field(p, (yyvsp[0].val))); } -#line 17492 "ripper.c" +#line 17502 "ripper.c" break; case 670: /* $@35: %empty */ -#line 6081 "ripper.y" +#line 6091 "ripper.y" { SET_LEX_STATE(EXPR_BEG); p->command_start = TRUE; } -#line 17501 "ripper.c" +#line 17511 "ripper.c" break; case 671: /* superclass: '<' $@35 expr_value term */ -#line 6086 "ripper.y" +#line 6096 "ripper.y" { (yyval.val) = (yyvsp[-1].val); } -#line 17509 "ripper.c" +#line 17519 "ripper.c" break; case 672: /* superclass: %empty */ -#line 6090 "ripper.y" +#line 6100 "ripper.y" { #if 0 (yyval.val) = 0; #endif (yyval.val)=Qnil; } -#line 17520 "ripper.c" +#line 17530 "ripper.c" break; case 674: /* f_opt_paren_args: none */ -#line 6100 "ripper.y" +#line 6110 "ripper.y" { p->ctxt.in_argdef = 0; (yyval.val) = new_args_tail(p, Qnone, Qnone, Qnone, &(yylsp[-1])); (yyval.val) = new_args(p, Qnone, Qnone, Qnone, Qnone, (yyval.val), &(yylsp[-1])); } -#line 17530 "ripper.c" +#line 17540 "ripper.c" break; case 675: /* f_paren_args: '(' f_args rparen */ -#line 6108 "ripper.y" +#line 6118 "ripper.y" { #if 0 (yyval.val) = (yyvsp[-1].val); @@ -17540,22 +17550,22 @@ p->command_start = TRUE; p->ctxt.in_argdef = 0; } -#line 17544 "ripper.c" +#line 17554 "ripper.c" break; case 677: /* @36: %empty */ -#line 6120 "ripper.y" +#line 6130 "ripper.y" { (yyval.ctxt) = p->ctxt; p->ctxt.in_kwarg = 1; p->ctxt.in_argdef = 1; SET_LEX_STATE(p->lex.state|EXPR_LABEL); /* force for args */ } -#line 17555 "ripper.c" +#line 17565 "ripper.c" break; case 678: /* f_arglist: @36 f_args term */ -#line 6127 "ripper.y" +#line 6137 "ripper.y" { p->ctxt.in_kwarg = (yyvsp[-2].ctxt).in_kwarg; p->ctxt.in_argdef = 0; @@ -17563,43 +17573,43 @@ SET_LEX_STATE(EXPR_BEG); p->command_start = TRUE; } -#line 17567 "ripper.c" +#line 17577 "ripper.c" break; case 679: /* args_tail: f_kwarg ',' f_kwrest opt_f_block_arg */ -#line 6137 "ripper.y" +#line 6147 "ripper.y" { (yyval.val) = new_args_tail(p, (yyvsp[-3].val), (yyvsp[-1].val), (yyvsp[0].val), &(yylsp[-1])); } -#line 17575 "ripper.c" +#line 17585 "ripper.c" break; case 680: /* args_tail: f_kwarg opt_f_block_arg */ -#line 6141 "ripper.y" +#line 6151 "ripper.y" { (yyval.val) = new_args_tail(p, (yyvsp[-1].val), Qnone, (yyvsp[0].val), &(yylsp[-1])); } -#line 17583 "ripper.c" +#line 17593 "ripper.c" break; case 681: /* args_tail: f_any_kwrest opt_f_block_arg */ -#line 6145 "ripper.y" +#line 6155 "ripper.y" { (yyval.val) = new_args_tail(p, Qnone, (yyvsp[-1].val), (yyvsp[0].val), &(yylsp[-1])); } -#line 17591 "ripper.c" +#line 17601 "ripper.c" break; case 682: /* args_tail: f_block_arg */ -#line 6149 "ripper.y" +#line 6159 "ripper.y" { (yyval.val) = new_args_tail(p, Qnone, Qnone, (yyvsp[0].val), &(yylsp[0])); } -#line 17599 "ripper.c" +#line 17609 "ripper.c" break; case 683: /* args_tail: args_forward */ -#line 6153 "ripper.y" +#line 6163 "ripper.y" { add_forwarding_args(p); (yyval.val) = new_args_tail(p, Qnone, (yyvsp[0].val), arg_FWD_BLOCK, &(yylsp[0])); @@ -17607,148 +17617,148 @@ (yyval.val)->nd_ainfo.forwarding = 1; #endif } -#line 17611 "ripper.c" +#line 17621 "ripper.c" break; case 684: /* opt_args_tail: ',' args_tail */ -#line 6163 "ripper.y" +#line 6173 "ripper.y" { (yyval.val) = (yyvsp[0].val); } -#line 17619 "ripper.c" +#line 17629 "ripper.c" break; case 685: /* opt_args_tail: %empty */ -#line 6167 "ripper.y" +#line 6177 "ripper.y" { (yyval.val) = new_args_tail(p, Qnone, Qnone, Qnone, &(yylsp[0])); } -#line 17627 "ripper.c" +#line 17637 "ripper.c" break; case 686: /* f_args: f_arg ',' f_optarg ',' f_rest_arg opt_args_tail */ -#line 6173 "ripper.y" +#line 6183 "ripper.y" { (yyval.val) = new_args(p, (yyvsp[-5].val), (yyvsp[-3].val), (yyvsp[-1].val), Qnone, (yyvsp[0].val), &(yyloc)); } -#line 17635 "ripper.c" +#line 17645 "ripper.c" break; case 687: /* f_args: f_arg ',' f_optarg ',' f_rest_arg ',' f_arg opt_args_tail */ -#line 6177 "ripper.y" +#line 6187 "ripper.y" { (yyval.val) = new_args(p, (yyvsp[-7].val), (yyvsp[-5].val), (yyvsp[-3].val), (yyvsp[-1].val), (yyvsp[0].val), &(yyloc)); } -#line 17643 "ripper.c" +#line 17653 "ripper.c" break; case 688: /* f_args: f_arg ',' f_optarg opt_args_tail */ -#line 6181 "ripper.y" +#line 6191 "ripper.y" { (yyval.val) = new_args(p, (yyvsp[-3].val), (yyvsp[-1].val), Qnone, Qnone, (yyvsp[0].val), &(yyloc)); } -#line 17651 "ripper.c" +#line 17661 "ripper.c" break; case 689: /* f_args: f_arg ',' f_optarg ',' f_arg opt_args_tail */ -#line 6185 "ripper.y" +#line 6195 "ripper.y" { (yyval.val) = new_args(p, (yyvsp[-5].val), (yyvsp[-3].val), Qnone, (yyvsp[-1].val), (yyvsp[0].val), &(yyloc)); } -#line 17659 "ripper.c" +#line 17669 "ripper.c" break; case 690: /* f_args: f_arg ',' f_rest_arg opt_args_tail */ -#line 6189 "ripper.y" +#line 6199 "ripper.y" { (yyval.val) = new_args(p, (yyvsp[-3].val), Qnone, (yyvsp[-1].val), Qnone, (yyvsp[0].val), &(yyloc)); } -#line 17667 "ripper.c" +#line 17677 "ripper.c" break; case 691: /* f_args: f_arg ',' f_rest_arg ',' f_arg opt_args_tail */ -#line 6193 "ripper.y" +#line 6203 "ripper.y" { (yyval.val) = new_args(p, (yyvsp[-5].val), Qnone, (yyvsp[-3].val), (yyvsp[-1].val), (yyvsp[0].val), &(yyloc)); } -#line 17675 "ripper.c" +#line 17685 "ripper.c" break; case 692: /* f_args: f_arg opt_args_tail */ -#line 6197 "ripper.y" +#line 6207 "ripper.y" { (yyval.val) = new_args(p, (yyvsp[-1].val), Qnone, Qnone, Qnone, (yyvsp[0].val), &(yyloc)); } -#line 17683 "ripper.c" +#line 17693 "ripper.c" break; case 693: /* f_args: f_optarg ',' f_rest_arg opt_args_tail */ -#line 6201 "ripper.y" +#line 6211 "ripper.y" { (yyval.val) = new_args(p, Qnone, (yyvsp[-3].val), (yyvsp[-1].val), Qnone, (yyvsp[0].val), &(yyloc)); } -#line 17691 "ripper.c" +#line 17701 "ripper.c" break; case 694: /* f_args: f_optarg ',' f_rest_arg ',' f_arg opt_args_tail */ -#line 6205 "ripper.y" +#line 6215 "ripper.y" { (yyval.val) = new_args(p, Qnone, (yyvsp[-5].val), (yyvsp[-3].val), (yyvsp[-1].val), (yyvsp[0].val), &(yyloc)); } -#line 17699 "ripper.c" +#line 17709 "ripper.c" break; case 695: /* f_args: f_optarg opt_args_tail */ -#line 6209 "ripper.y" +#line 6219 "ripper.y" { (yyval.val) = new_args(p, Qnone, (yyvsp[-1].val), Qnone, Qnone, (yyvsp[0].val), &(yyloc)); } -#line 17707 "ripper.c" +#line 17717 "ripper.c" break; case 696: /* f_args: f_optarg ',' f_arg opt_args_tail */ -#line 6213 "ripper.y" +#line 6223 "ripper.y" { (yyval.val) = new_args(p, Qnone, (yyvsp[-3].val), Qnone, (yyvsp[-1].val), (yyvsp[0].val), &(yyloc)); } -#line 17715 "ripper.c" +#line 17725 "ripper.c" break; case 697: /* f_args: f_rest_arg opt_args_tail */ -#line 6217 "ripper.y" +#line 6227 "ripper.y" { (yyval.val) = new_args(p, Qnone, Qnone, (yyvsp[-1].val), Qnone, (yyvsp[0].val), &(yyloc)); } -#line 17723 "ripper.c" +#line 17733 "ripper.c" break; case 698: /* f_args: f_rest_arg ',' f_arg opt_args_tail */ -#line 6221 "ripper.y" +#line 6231 "ripper.y" { (yyval.val) = new_args(p, Qnone, Qnone, (yyvsp[-3].val), (yyvsp[-1].val), (yyvsp[0].val), &(yyloc)); } -#line 17731 "ripper.c" +#line 17741 "ripper.c" break; case 699: /* f_args: args_tail */ -#line 6225 "ripper.y" +#line 6235 "ripper.y" { (yyval.val) = new_args(p, Qnone, Qnone, Qnone, Qnone, (yyvsp[0].val), &(yyloc)); } -#line 17739 "ripper.c" +#line 17749 "ripper.c" break; case 700: /* f_args: %empty */ -#line 6229 "ripper.y" +#line 6239 "ripper.y" { (yyval.val) = new_args_tail(p, Qnone, Qnone, Qnone, &(yylsp[0])); (yyval.val) = new_args(p, Qnone, Qnone, Qnone, Qnone, (yyval.val), &(yylsp[0])); } -#line 17748 "ripper.c" +#line 17758 "ripper.c" break; case 701: /* args_forward: "(..." */ -#line 6236 "ripper.y" +#line 6246 "ripper.y" { #if 0 #ifdef FORWARD_ARGS_WITH_RUBY2_KEYWORDS @@ -17759,11 +17769,11 @@ #endif {VALUE v1;v1=dispatch0(args_forward);(yyval.val)=v1;} } -#line 17763 "ripper.c" +#line 17773 "ripper.c" break; case 702: /* f_bad_arg: "constant" */ -#line 6249 "ripper.y" +#line 6259 "ripper.y" { static const char mesg[] = "formal argument cannot be a constant"; #if 0 @@ -17772,11 +17782,11 @@ #endif {VALUE v1,v2,v3;v1=ERR_MESG();v2=(yyvsp[0].val);v3=dispatch2(param_error,v1,v2);(yyval.val)=v3;}ripper_error(p); } -#line 17776 "ripper.c" +#line 17786 "ripper.c" break; case 703: /* f_bad_arg: "instance variable" */ -#line 6258 "ripper.y" +#line 6268 "ripper.y" { static const char mesg[] = "formal argument cannot be an instance variable"; #if 0 @@ -17785,11 +17795,11 @@ #endif {VALUE v1,v2,v3;v1=ERR_MESG();v2=(yyvsp[0].val);v3=dispatch2(param_error,v1,v2);(yyval.val)=v3;}ripper_error(p); } -#line 17789 "ripper.c" +#line 17799 "ripper.c" break; case 704: /* f_bad_arg: "global variable" */ -#line 6267 "ripper.y" +#line 6277 "ripper.y" { static const char mesg[] = "formal argument cannot be a global variable"; #if 0 @@ -17798,11 +17808,11 @@ #endif {VALUE v1,v2,v3;v1=ERR_MESG();v2=(yyvsp[0].val);v3=dispatch2(param_error,v1,v2);(yyval.val)=v3;}ripper_error(p); } -#line 17802 "ripper.c" +#line 17812 "ripper.c" break; case 705: /* f_bad_arg: "class variable" */ -#line 6276 "ripper.y" +#line 6286 "ripper.y" { static const char mesg[] = "formal argument cannot be a class variable"; #if 0 @@ -17811,32 +17821,32 @@ #endif {VALUE v1,v2,v3;v1=ERR_MESG();v2=(yyvsp[0].val);v3=dispatch2(param_error,v1,v2);(yyval.val)=v3;}ripper_error(p); } -#line 17815 "ripper.c" +#line 17825 "ripper.c" break; case 707: /* f_norm_arg: "local variable or method" */ -#line 6288 "ripper.y" +#line 6298 "ripper.y" { formal_argument(p, (yyvsp[0].val)); p->max_numparam = ORDINAL_PARAM; (yyval.val) = (yyvsp[0].val); } -#line 17825 "ripper.c" +#line 17835 "ripper.c" break; case 708: /* f_arg_asgn: f_norm_arg */ -#line 6296 "ripper.y" +#line 6306 "ripper.y" { ID id = get_id((yyvsp[0].val)); arg_var(p, id); p->cur_arg = id; (yyval.val) = (yyvsp[0].val); } -#line 17836 "ripper.c" +#line 17846 "ripper.c" break; case 709: /* f_arg_item: f_arg_asgn */ -#line 6305 "ripper.y" +#line 6315 "ripper.y" { p->cur_arg = 0; #if 0 @@ -17844,11 +17854,11 @@ #endif (yyval.val)=get_value((yyvsp[0].val)); } -#line 17848 "ripper.c" +#line 17858 "ripper.c" break; case 710: /* f_arg_item: "(" f_margs rparen */ -#line 6313 "ripper.y" +#line 6323 "ripper.y" { #if 0 ID tid = internal_id(p); @@ -17867,17 +17877,17 @@ #endif {VALUE v1,v2;v1=(yyvsp[-1].val);v2=dispatch1(mlhs_paren,v1);(yyval.val)=v2;} } -#line 17871 "ripper.c" +#line 17881 "ripper.c" break; case 711: /* f_arg: f_arg_item */ -#line 6334 "ripper.y" +#line 6344 "ripper.y" {(yyval.val)=rb_ary_new3(1, get_value((yyvsp[0].val)));} -#line 17877 "ripper.c" +#line 17887 "ripper.c" break; case 712: /* f_arg: f_arg ',' f_arg_item */ -#line 6336 "ripper.y" +#line 6346 "ripper.y" { #if 0 (yyval.val) = (yyvsp[-2].val); @@ -17887,11 +17897,11 @@ #endif (yyval.val)=rb_ary_push((yyvsp[-2].val), get_value((yyvsp[0].val))); } -#line 17891 "ripper.c" +#line 17901 "ripper.c" break; case 713: /* f_label: "label" */ -#line 6349 "ripper.y" +#line 6359 "ripper.y" { arg_var(p, formal_argument(p, (yyvsp[0].val))); p->cur_arg = get_id((yyvsp[0].val)); @@ -17899,11 +17909,11 @@ p->ctxt.in_argdef = 0; (yyval.val) = (yyvsp[0].val); } -#line 17903 "ripper.c" +#line 17913 "ripper.c" break; case 714: /* f_kw: f_label arg_value */ -#line 6359 "ripper.y" +#line 6369 "ripper.y" { p->cur_arg = 0; p->ctxt.in_argdef = 1; @@ -17912,11 +17922,11 @@ #endif (yyval.val)=rb_assoc_new(get_value(assignable(p, (yyvsp[-1].val))), get_value((yyvsp[0].val))); } -#line 17916 "ripper.c" +#line 17926 "ripper.c" break; case 715: /* f_kw: f_label */ -#line 6368 "ripper.y" +#line 6378 "ripper.y" { p->cur_arg = 0; p->ctxt.in_argdef = 1; @@ -17925,11 +17935,11 @@ #endif (yyval.val)=rb_assoc_new(get_value(assignable(p, (yyvsp[0].val))), 0); } -#line 17929 "ripper.c" +#line 17939 "ripper.c" break; case 716: /* f_block_kw: f_label primary_value */ -#line 6379 "ripper.y" +#line 6389 "ripper.y" { p->ctxt.in_argdef = 1; #if 0 @@ -17937,11 +17947,11 @@ #endif (yyval.val)=rb_assoc_new(get_value(assignable(p, (yyvsp[-1].val))), get_value((yyvsp[0].val))); } -#line 17941 "ripper.c" +#line 17951 "ripper.c" break; case 717: /* f_block_kw: f_label */ -#line 6387 "ripper.y" +#line 6397 "ripper.y" { p->ctxt.in_argdef = 1; #if 0 @@ -17949,65 +17959,65 @@ #endif (yyval.val)=rb_assoc_new(get_value(assignable(p, (yyvsp[0].val))), 0); } -#line 17953 "ripper.c" +#line 17963 "ripper.c" break; case 718: /* f_block_kwarg: f_block_kw */ -#line 6397 "ripper.y" +#line 6407 "ripper.y" { #if 0 (yyval.val) = (yyvsp[0].val); #endif (yyval.val)=rb_ary_new3(1, get_value((yyvsp[0].val))); } -#line 17964 "ripper.c" +#line 17974 "ripper.c" break; case 719: /* f_block_kwarg: f_block_kwarg ',' f_block_kw */ -#line 6404 "ripper.y" +#line 6414 "ripper.y" { #if 0 (yyval.val) = kwd_append((yyvsp[-2].val), (yyvsp[0].val)); #endif (yyval.val)=rb_ary_push((yyvsp[-2].val), get_value((yyvsp[0].val))); } -#line 17975 "ripper.c" +#line 17985 "ripper.c" break; case 720: /* f_kwarg: f_kw */ -#line 6414 "ripper.y" +#line 6424 "ripper.y" { #if 0 (yyval.val) = (yyvsp[0].val); #endif (yyval.val)=rb_ary_new3(1, get_value((yyvsp[0].val))); } -#line 17986 "ripper.c" +#line 17996 "ripper.c" break; case 721: /* f_kwarg: f_kwarg ',' f_kw */ -#line 6421 "ripper.y" +#line 6431 "ripper.y" { #if 0 (yyval.val) = kwd_append((yyvsp[-2].val), (yyvsp[0].val)); #endif (yyval.val)=rb_ary_push((yyvsp[-2].val), get_value((yyvsp[0].val))); } -#line 17997 "ripper.c" +#line 18007 "ripper.c" break; case 724: /* f_no_kwarg: p_kwnorest */ -#line 6434 "ripper.y" +#line 6444 "ripper.y" { #if 0 #endif {VALUE v1,v2;v1=Qnil;v2=dispatch1(nokw_param,v1);(yyval.val)=v2;} } -#line 18007 "ripper.c" +#line 18017 "ripper.c" break; case 725: /* f_kwrest: kwrest_mark "local variable or method" */ -#line 6442 "ripper.y" +#line 6452 "ripper.y" { arg_var(p, shadowing_lvar(p, get_id((yyvsp[0].val)))); #if 0 @@ -18015,11 +18025,11 @@ #endif {VALUE v1,v2;v1=(yyvsp[0].val);v2=dispatch1(kwrest_param,v1);(yyval.val)=v2;} } -#line 18019 "ripper.c" +#line 18029 "ripper.c" break; case 726: /* f_kwrest: kwrest_mark */ -#line 6450 "ripper.y" +#line 6460 "ripper.y" { arg_var(p, idFWD_KWREST); #if 0 @@ -18027,11 +18037,11 @@ #endif {VALUE v1,v2;v1=Qnil;v2=dispatch1(kwrest_param,v1);(yyval.val)=v2;} } -#line 18031 "ripper.c" +#line 18041 "ripper.c" break; case 727: /* f_opt: f_arg_asgn f_eq arg_value */ -#line 6460 "ripper.y" +#line 6470 "ripper.y" { p->cur_arg = 0; p->ctxt.in_argdef = 1; @@ -18040,11 +18050,11 @@ #endif (yyval.val)=rb_assoc_new(get_value(assignable(p, (yyvsp[-2].val))), get_value((yyvsp[0].val))); } -#line 18044 "ripper.c" +#line 18054 "ripper.c" break; case 728: /* f_block_opt: f_arg_asgn f_eq primary_value */ -#line 6471 "ripper.y" +#line 6481 "ripper.y" { p->cur_arg = 0; p->ctxt.in_argdef = 1; @@ -18053,55 +18063,55 @@ #endif (yyval.val)=rb_assoc_new(get_value(assignable(p, (yyvsp[-2].val))), get_value((yyvsp[0].val))); } -#line 18057 "ripper.c" +#line 18067 "ripper.c" break; case 729: /* f_block_optarg: f_block_opt */ -#line 6482 "ripper.y" +#line 6492 "ripper.y" { #if 0 (yyval.val) = (yyvsp[0].val); #endif (yyval.val)=rb_ary_new3(1, get_value((yyvsp[0].val))); } -#line 18068 "ripper.c" +#line 18078 "ripper.c" break; case 730: /* f_block_optarg: f_block_optarg ',' f_block_opt */ -#line 6489 "ripper.y" +#line 6499 "ripper.y" { #if 0 (yyval.val) = opt_arg_append((yyvsp[-2].val), (yyvsp[0].val)); #endif (yyval.val)=rb_ary_push((yyvsp[-2].val), get_value((yyvsp[0].val))); } -#line 18079 "ripper.c" +#line 18089 "ripper.c" break; case 731: /* f_optarg: f_opt */ -#line 6498 "ripper.y" +#line 6508 "ripper.y" { #if 0 (yyval.val) = (yyvsp[0].val); #endif (yyval.val)=rb_ary_new3(1, get_value((yyvsp[0].val))); } -#line 18090 "ripper.c" +#line 18100 "ripper.c" break; case 732: /* f_optarg: f_optarg ',' f_opt */ -#line 6505 "ripper.y" +#line 6515 "ripper.y" { #if 0 (yyval.val) = opt_arg_append((yyvsp[-2].val), (yyvsp[0].val)); #endif (yyval.val)=rb_ary_push((yyvsp[-2].val), get_value((yyvsp[0].val))); } -#line 18101 "ripper.c" +#line 18111 "ripper.c" break; case 735: /* f_rest_arg: restarg_mark "local variable or method" */ -#line 6518 "ripper.y" +#line 6528 "ripper.y" { arg_var(p, shadowing_lvar(p, get_id((yyvsp[0].val)))); #if 0 @@ -18109,11 +18119,11 @@ #endif {VALUE v1,v2;v1=(yyvsp[0].val);v2=dispatch1(rest_param,v1);(yyval.val)=v2;} } -#line 18113 "ripper.c" +#line 18123 "ripper.c" break; case 736: /* f_rest_arg: restarg_mark */ -#line 6526 "ripper.y" +#line 6536 "ripper.y" { arg_var(p, idFWD_REST); #if 0 @@ -18121,11 +18131,11 @@ #endif {VALUE v1,v2;v1=Qnil;v2=dispatch1(rest_param,v1);(yyval.val)=v2;} } -#line 18125 "ripper.c" +#line 18135 "ripper.c" break; case 739: /* f_block_arg: blkarg_mark "local variable or method" */ -#line 6540 "ripper.y" +#line 6550 "ripper.y" { arg_var(p, shadowing_lvar(p, get_id((yyvsp[0].val)))); #if 0 @@ -18133,11 +18143,11 @@ #endif {VALUE v1,v2;v1=(yyvsp[0].val);v2=dispatch1(blockarg,v1);(yyval.val)=v2;} } -#line 18137 "ripper.c" +#line 18147 "ripper.c" break; case 740: /* f_block_arg: blkarg_mark */ -#line 6548 "ripper.y" +#line 6558 "ripper.y" { arg_var(p, idFWD_BLOCK); #if 0 @@ -18145,42 +18155,42 @@ #endif {VALUE v1,v2;v1=Qnil;v2=dispatch1(blockarg,v1);(yyval.val)=v2;} } -#line 18149 "ripper.c" +#line 18159 "ripper.c" break; case 741: /* opt_f_block_arg: ',' f_block_arg */ -#line 6558 "ripper.y" +#line 6568 "ripper.y" { (yyval.val) = (yyvsp[0].val); } -#line 18157 "ripper.c" +#line 18167 "ripper.c" break; case 742: /* opt_f_block_arg: none */ -#line 6562 "ripper.y" +#line 6572 "ripper.y" { (yyval.val) = Qnull; } -#line 18165 "ripper.c" +#line 18175 "ripper.c" break; case 743: /* singleton: var_ref */ -#line 6568 "ripper.y" +#line 6578 "ripper.y" { value_expr((yyvsp[0].val)); (yyval.val) = (yyvsp[0].val); } -#line 18174 "ripper.c" +#line 18184 "ripper.c" break; case 744: /* $@37: %empty */ -#line 6572 "ripper.y" +#line 6582 "ripper.y" {SET_LEX_STATE(EXPR_BEG);} -#line 18180 "ripper.c" +#line 18190 "ripper.c" break; case 745: /* singleton: '(' $@37 expr rparen */ -#line 6573 "ripper.y" +#line 6583 "ripper.y" { #if 0 NODE *expr = last_expr_node((yyvsp[-1].val)); @@ -18204,28 +18214,28 @@ #endif {VALUE v1,v2;v1=(yyvsp[-1].val);v2=dispatch1(paren,v1);(yyval.val)=v2;} } -#line 18208 "ripper.c" +#line 18218 "ripper.c" break; case 747: /* assoc_list: assocs trailer */ -#line 6600 "ripper.y" +#line 6610 "ripper.y" { #if 0 (yyval.val) = (yyvsp[-1].val); #endif {VALUE v1,v2;v1=(yyvsp[-1].val);v2=dispatch1(assoclist_from_args,v1);(yyval.val)=v2;} } -#line 18219 "ripper.c" +#line 18229 "ripper.c" break; case 748: /* assocs: assoc */ -#line 6609 "ripper.y" +#line 6619 "ripper.y" {(yyval.val)=rb_ary_new3(1, get_value((yyvsp[0].val)));} -#line 18225 "ripper.c" +#line 18235 "ripper.c" break; case 749: /* assocs: assocs ',' assoc */ -#line 6611 "ripper.y" +#line 6621 "ripper.y" { #if 0 NODE *assocs = (yyvsp[-2].val); @@ -18246,11 +18256,11 @@ #endif (yyval.val)=rb_ary_push((yyvsp[-2].val), get_value((yyvsp[0].val))); } -#line 18250 "ripper.c" +#line 18260 "ripper.c" break; case 750: /* assoc: arg_value "=>" arg_value */ -#line 6634 "ripper.y" +#line 6644 "ripper.y" { #if 0 if (nd_type_p((yyvsp[-2].val), NODE_STR)) { @@ -18261,22 +18271,22 @@ #endif {VALUE v1,v2,v3;v1=(yyvsp[-2].val);v2=(yyvsp[0].val);v3=dispatch2(assoc_new,v1,v2);(yyval.val)=v3;} } -#line 18265 "ripper.c" +#line 18275 "ripper.c" break; case 751: /* assoc: "label" arg_value */ -#line 6645 "ripper.y" +#line 6655 "ripper.y" { #if 0 (yyval.val) = list_append(p, NEW_LIST(NEW_LIT(ID2SYM((yyvsp[-1].val)), &(yylsp[-1])), &(yyloc)), (yyvsp[0].val)); #endif {VALUE v1,v2,v3;v1=(yyvsp[-1].val);v2=(yyvsp[0].val);v3=dispatch2(assoc_new,v1,v2);(yyval.val)=v3;} } -#line 18276 "ripper.c" +#line 18286 "ripper.c" break; case 752: /* assoc: "label" */ -#line 6652 "ripper.y" +#line 6662 "ripper.y" { #if 0 NODE *val = gettable(p, (yyvsp[0].val), &(yyloc)); @@ -18285,11 +18295,11 @@ #endif {VALUE v1,v2,v3;v1=(yyvsp[0].val);v2=Qnil;v3=dispatch2(assoc_new,v1,v2);(yyval.val)=v3;} } -#line 18289 "ripper.c" +#line 18299 "ripper.c" break; case 753: /* assoc: "string literal" string_contents tLABEL_END arg_value */ -#line 6661 "ripper.y" +#line 6671 "ripper.y" { #if 0 YYLTYPE loc = code_loc_gen(&(yylsp[-3]), &(yylsp[-1])); @@ -18297,11 +18307,11 @@ #endif {VALUE v1,v2,v3,v4,v5;v1=(yyvsp[-2].val);v2=dispatch1(dyna_symbol,v1);v3=v2;v4=(yyvsp[0].val);v5=dispatch2(assoc_new,v3,v4);(yyval.val)=v5;} } -#line 18301 "ripper.c" +#line 18311 "ripper.c" break; case 754: /* assoc: "**arg" arg_value */ -#line 6669 "ripper.y" +#line 6679 "ripper.y" { #if 0 if (nd_type_p((yyvsp[0].val), NODE_HASH) && @@ -18318,11 +18328,11 @@ #endif {VALUE v1,v2;v1=(yyvsp[0].val);v2=dispatch1(assoc_splat,v1);(yyval.val)=v2;} } -#line 18322 "ripper.c" +#line 18332 "ripper.c" break; case 755: /* assoc: "**arg" */ -#line 6686 "ripper.y" +#line 6696 "ripper.y" { forwarding_arg_check(p, idFWD_KWREST, idFWD_ALL, "keyword rest"); #if 0 @@ -18331,40 +18341,40 @@ #endif {VALUE v1,v2;v1=Qnil;v2=dispatch1(assoc_splat,v1);(yyval.val)=v2;} } -#line 18335 "ripper.c" +#line 18345 "ripper.c" break; case 779: /* term: ';' */ -#line 6743 "ripper.y" +#line 6753 "ripper.y" {yyerrok;token_flush(p);} -#line 18341 "ripper.c" +#line 18351 "ripper.c" break; case 780: /* term: '\n' */ -#line 6745 "ripper.y" +#line 6755 "ripper.y" { (yyloc).end_pos = (yyloc).beg_pos; token_flush(p); } -#line 18350 "ripper.c" +#line 18360 "ripper.c" break; case 782: /* terms: terms ';' */ -#line 6752 "ripper.y" +#line 6762 "ripper.y" {yyerrok;} -#line 18356 "ripper.c" +#line 18366 "ripper.c" break; case 783: /* none: %empty */ -#line 6756 "ripper.y" +#line 6766 "ripper.y" { (yyval.val) = Qnull; } -#line 18364 "ripper.c" +#line 18374 "ripper.c" break; -#line 18368 "ripper.c" +#line 18378 "ripper.c" default: break; } @@ -18593,7 +18603,7 @@ return yyresult; } -#line 6760 "ripper.y" +#line 6770 "ripper.y" # undef p # undef yylex @@ -19607,7 +19617,7 @@ p->tokidx += n; if (p->tokidx >= p->toksiz) { - do {p->toksiz *= 2;} while (p->toksiz < p->tokidx); + do {p->toksiz *= 2;} while (p->toksiz <= p->tokidx); REALLOC_N(p->tokenbuf, char, p->toksiz); } return &p->tokenbuf[p->tokidx-n]; @@ -22160,7 +22170,7 @@ if (!NIL_P(peek_end_expect_token_locations(p))) { VALUE end_loc; int lineno, column; - int beg_pos = (int)(p->lex.ptok - p->lex.pbeg); + int beg_pos = parser_column(p->lex.ptok - p->lex.pbeg); end_loc = peek_end_expect_token_locations(p); lineno = NUM2INT(rb_ary_entry(end_loc, 0)); @@ -22737,6 +22747,7 @@ else { yyerror0("no . floating literal anymore; put 0 before dot"); } + set_yylval_id(idNULL); SET_LEX_STATE(EXPR_END); p->lex.ptok = p->lex.pcur; goto retry; @@ -25017,9 +25028,9 @@ rb_parser_set_location_from_strterm_heredoc(struct parser_params *p, rb_strterm_heredoc_t *here, YYLTYPE *yylloc) { int sourceline = here->sourceline; - int beg_pos = (int)here->offset - here->quote - - (rb_strlen_lit("<<-") - !(here->func & STR_FUNC_INDENT)); - int end_pos = (int)here->offset + here->length + here->quote; + int beg_pos = parser_column(here->offset - here->quote + - (rb_strlen_lit("<<-") - !(here->func & STR_FUNC_INDENT))); + int end_pos = parser_column(here->offset + here->length + here->quote); return rb_parser_set_pos(yylloc, sourceline, beg_pos, end_pos); } @@ -25039,8 +25050,8 @@ rb_parser_set_location_of_heredoc_end(struct parser_params *p, YYLTYPE *yylloc) { int sourceline = p->ruby_sourceline; - int beg_pos = (int)(p->lex.ptok - p->lex.pbeg); - int end_pos = (int)(p->lex.pend - p->lex.pbeg); + int beg_pos = parser_column(p->lex.ptok - p->lex.pbeg); + int end_pos = parser_column(p->lex.pend - p->lex.pbeg); return rb_parser_set_pos(yylloc, sourceline, beg_pos, end_pos); } @@ -25056,8 +25067,8 @@ rb_parser_set_location_of_none(struct parser_params *p, YYLTYPE *yylloc) { int sourceline = p->ruby_sourceline; - int beg_pos = (int)(p->lex.ptok - p->lex.pbeg); - int end_pos = (int)(p->lex.ptok - p->lex.pbeg); + int beg_pos = parser_column(p->lex.ptok - p->lex.pbeg); + int end_pos = parser_column(p->lex.ptok - p->lex.pbeg); return rb_parser_set_pos(yylloc, sourceline, beg_pos, end_pos); } @@ -25065,8 +25076,8 @@ rb_parser_set_location(struct parser_params *p, YYLTYPE *yylloc) { int sourceline = p->ruby_sourceline; - int beg_pos = (int)(p->lex.ptok - p->lex.pbeg); - int end_pos = (int)(p->lex.pcur - p->lex.pbeg); + int beg_pos = parser_column(p->lex.ptok - p->lex.pbeg); + int end_pos = parser_column(p->lex.pcur - p->lex.pbeg); return rb_parser_set_pos(yylloc, sourceline, beg_pos, end_pos); } #endif /* !RIPPER */ diff -Nru ruby3.3-3.3.13/ext/ripper/ripper.y ruby3.3-3.3.14/ext/ripper/ripper.y --- ruby3.3-3.3.13/ext/ripper/ripper.y 2026-10-23 03:17:43.000000000 +0000 +++ ruby3.3-3.3.14/ext/ripper/ripper.y 2026-11-18 21:52:33.000000000 +0000 @@ -337,10 +337,20 @@ rb_parser_set_location(p, &(Current)) #define RUBY_INIT_YYLLOC() \ { \ - {p->ruby_sourceline, (int)(p->lex.ptok - p->lex.pbeg)}, \ - {p->ruby_sourceline, (int)(p->lex.pcur - p->lex.pbeg)}, \ + {p->ruby_sourceline, parser_column(p->lex.ptok - p->lex.pbeg)}, \ + {p->ruby_sourceline, parser_column(p->lex.pcur - p->lex.pbeg)}, \ } +/* Saturate instead of wrapping to a column before the line. */ +static inline int +parser_column(long pos) +{ +#if SIZEOF_INT < SIZEOF_LONG + if (pos > INT_MAX) return INT_MAX; +#endif + return (int)pos; +} + #define IS_lex_state_for(x, ls) ((x) & (ls)) #define IS_lex_state_all_for(x, ls) (((x) & (ls)) == (ls)) #define IS_lex_state(ls) IS_lex_state_for(p->lex.state, (ls)) @@ -7770,7 +7780,7 @@ p->tokidx += n; if (p->tokidx >= p->toksiz) { - do {p->toksiz *= 2;} while (p->toksiz < p->tokidx); + do {p->toksiz *= 2;} while (p->toksiz <= p->tokidx); REALLOC_N(p->tokenbuf, char, p->toksiz); } return &p->tokenbuf[p->tokidx-n]; @@ -10323,7 +10333,7 @@ if (!NIL_P(peek_end_expect_token_locations(p))) { VALUE end_loc; int lineno, column; - int beg_pos = (int)(p->lex.ptok - p->lex.pbeg); + int beg_pos = parser_column(p->lex.ptok - p->lex.pbeg); end_loc = peek_end_expect_token_locations(p); lineno = NUM2INT(rb_ary_entry(end_loc, 0)); @@ -10900,6 +10910,7 @@ else { yyerror0("no . floating literal anymore; put 0 before dot"); } + set_yylval_id(idNULL); SET_LEX_STATE(EXPR_END); p->lex.ptok = p->lex.pcur; goto retry; @@ -13180,9 +13191,9 @@ rb_parser_set_location_from_strterm_heredoc(struct parser_params *p, rb_strterm_heredoc_t *here, YYLTYPE *yylloc) { int sourceline = here->sourceline; - int beg_pos = (int)here->offset - here->quote - - (rb_strlen_lit("<<-") - !(here->func & STR_FUNC_INDENT)); - int end_pos = (int)here->offset + here->length + here->quote; + int beg_pos = parser_column(here->offset - here->quote + - (rb_strlen_lit("<<-") - !(here->func & STR_FUNC_INDENT))); + int end_pos = parser_column(here->offset + here->length + here->quote); return rb_parser_set_pos(yylloc, sourceline, beg_pos, end_pos); } @@ -13202,8 +13213,8 @@ rb_parser_set_location_of_heredoc_end(struct parser_params *p, YYLTYPE *yylloc) { int sourceline = p->ruby_sourceline; - int beg_pos = (int)(p->lex.ptok - p->lex.pbeg); - int end_pos = (int)(p->lex.pend - p->lex.pbeg); + int beg_pos = parser_column(p->lex.ptok - p->lex.pbeg); + int end_pos = parser_column(p->lex.pend - p->lex.pbeg); return rb_parser_set_pos(yylloc, sourceline, beg_pos, end_pos); } @@ -13219,8 +13230,8 @@ rb_parser_set_location_of_none(struct parser_params *p, YYLTYPE *yylloc) { int sourceline = p->ruby_sourceline; - int beg_pos = (int)(p->lex.ptok - p->lex.pbeg); - int end_pos = (int)(p->lex.ptok - p->lex.pbeg); + int beg_pos = parser_column(p->lex.ptok - p->lex.pbeg); + int end_pos = parser_column(p->lex.ptok - p->lex.pbeg); return rb_parser_set_pos(yylloc, sourceline, beg_pos, end_pos); } @@ -13228,8 +13239,8 @@ rb_parser_set_location(struct parser_params *p, YYLTYPE *yylloc) { int sourceline = p->ruby_sourceline; - int beg_pos = (int)(p->lex.ptok - p->lex.pbeg); - int end_pos = (int)(p->lex.pcur - p->lex.pbeg); + int beg_pos = parser_column(p->lex.ptok - p->lex.pbeg); + int end_pos = parser_column(p->lex.pcur - p->lex.pbeg); return rb_parser_set_pos(yylloc, sourceline, beg_pos, end_pos); } #endif /* !RIPPER */ diff -Nru ruby3.3-3.3.13/ext/socket/ancdata.c ruby3.3-3.3.14/ext/socket/ancdata.c --- ruby3.3-3.3.13/ext/socket/ancdata.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/ext/socket/ancdata.c 2026-11-18 21:52:31.000000000 +0000 @@ -711,6 +711,9 @@ static int anc_inspect_socket_creds(int level, int type, VALUE data, VALUE ret) { + long len; + const char *ptr; + if (level != SOL_SOCKET && type != SCM_CREDS) return 0; @@ -725,48 +728,59 @@ * This heuristics works well except when sc_ngroups == CMGROUP_MAX. */ + RSTRING_GETMEM(data, ptr, len); #if defined(HAVE_TYPE_STRUCT_CMSGCRED) /* FreeBSD */ - if (RSTRING_LEN(data) == sizeof(struct cmsgcred)) { + if (len == sizeof(struct cmsgcred)) { struct cmsgcred cred; - memcpy(&cred, RSTRING_PTR(data), sizeof(struct cmsgcred)); + int ngroups; + memcpy(&cred, ptr, sizeof(struct cmsgcred)); rb_str_catf(ret, " pid=%u", cred.cmcred_pid); rb_str_catf(ret, " uid=%u", cred.cmcred_uid); rb_str_catf(ret, " euid=%u", cred.cmcred_euid); rb_str_catf(ret, " gid=%u", cred.cmcred_gid); - if (cred.cmcred_ngroups) { + rb_str_catf(ret, " groups[%d]=[", cred.cmcred_ngroups); + ngroups = cred.cmcred_ngroups; + if (ngroups > 0) { int i; - const char *sep = " groups="; - for (i = 0; i < cred.cmcred_ngroups; i++) { - rb_str_catf(ret, "%s%u", sep, cred.cmcred_groups[i]); - sep = ","; + rb_str_catf(ret, "%u", cred.cmcred_groups[0]); + if (ngroups > CMGROUP_MAX) ngroups = CMGROUP_MAX; + for (i = 1; i < ngroups; i++) { + rb_str_catf(ret, ",%u", cred.cmcred_groups[i]); } } - rb_str_cat2(ret, " (cmsgcred)"); + rb_str_cat2(ret, "] (cmsgcred)"); return 1; } #endif #if defined(HAVE_TYPE_STRUCT_SOCKCRED) /* FreeBSD, NetBSD */ - if ((size_t)RSTRING_LEN(data) >= SOCKCREDSIZE(0)) { - struct sockcred cred0, *cred; - memcpy(&cred0, RSTRING_PTR(data), SOCKCREDSIZE(0)); - if ((size_t)RSTRING_LEN(data) == SOCKCREDSIZE(cred0.sc_ngroups)) { - cred = (struct sockcred *)ALLOCA_N(char, SOCKCREDSIZE(cred0.sc_ngroups)); - memcpy(cred, RSTRING_PTR(data), SOCKCREDSIZE(cred0.sc_ngroups)); - rb_str_catf(ret, " uid=%u", cred->sc_uid); - rb_str_catf(ret, " euid=%u", cred->sc_euid); - rb_str_catf(ret, " gid=%u", cred->sc_gid); - rb_str_catf(ret, " egid=%u", cred->sc_egid); - if (cred0.sc_ngroups) { - int i; - const char *sep = " groups="; - for (i = 0; i < cred0.sc_ngroups; i++) { - rb_str_catf(ret, "%s%u", sep, cred->sc_groups[i]); - sep = ","; - } + if ((size_t)len >= SOCKCREDSIZE(0)) { + struct sockcred cred; + int ngroups; + memcpy(&cred, ptr, SOCKCREDSIZE(0)); + rb_str_catf(ret, " uid=%u", cred.sc_uid); + rb_str_catf(ret, " euid=%u", cred.sc_euid); + rb_str_catf(ret, " gid=%u", cred.sc_gid); + rb_str_catf(ret, " egid=%u", cred.sc_egid); + rb_str_catf(ret, " groups[%d]=[", cred.sc_ngroups); + ngroups = cred.sc_ngroups; + if (ngroups <= 0) { + ngroups = 0; + } + else { + size_t max = ((size_t)len - SOCKCREDSIZE(0)) / sizeof(gid_t); + if ((size_t)ngroups > max) ngroups = (int)max; + } + if (ngroups > 0) { + int i; + const void *gp = ptr + offsetof(struct sockcred, sc_groups); + const gid_t *groups = MEMCPY(ALLOCA_N(gid_t, ngroups), gp, gid_t, ngroups); + rb_str_catf(ret, "%u", groups[0]); + for (i = 1; i < ngroups; i++) { + rb_str_catf(ret, ",%u", groups[i]); } - rb_str_cat2(ret, " (sockcred)"); - return 1; } + rb_str_cat2(ret, "] (sockcred)"); + return 1; } #endif return 0; @@ -1000,6 +1014,7 @@ rb_str_catf(ret, " %"PRIsVALUE, rb_sym2str(vtype)); else rb_str_catf(ret, " cmsg_type:%d", type); + RB_GC_GUARD(vtype); } else { rb_str_catf(ret, " cmsg_level:%d", level); diff -Nru ruby3.3-3.3.13/ext/socket/socket.c ruby3.3-3.3.14/ext/socket/socket.c --- ruby3.3-3.3.13/ext/socket/socket.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/ext/socket/socket.c 2026-11-18 21:52:31.000000000 +0000 @@ -873,7 +873,8 @@ rb_str_modify_expand(name, len); len += len; } - rb_str_resize(name, strlen(RSTRING_PTR(name))); + char *s = RSTRING_PTR(name), *p = memchr(s, 0, len); + if (p) rb_str_resize(name, (long)(p - s)); return name; } #else diff -Nru ruby3.3-3.3.13/include/ruby/atomic.h ruby3.3-3.3.14/include/ruby/atomic.h --- ruby3.3-3.3.13/include/ruby/atomic.h 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/include/ruby/atomic.h 2026-11-18 21:52:31.000000000 +0000 @@ -424,7 +424,7 @@ #elif defined(HAVE_GCC_SYNC_BUILTINS) __sync_add_and_fetch(ptr, val); -#elif defined(_WIN32) && defined(_M_AMD64) +#elif defined(_WIN64) /* Ditto for `InterlockeExchangedAdd`. */ InterlockedExchangeAdd64(ptr, val); @@ -476,7 +476,7 @@ #elif defined(HAVE_GCC_ATOMIC_BUILTINS) || defined(HAVE_GCC_SYNC_BUILTINS) rbimpl_atomic_size_add(ptr, 1); -#elif defined(_WIN32) && defined(_M_AMD64) +#elif defined(_WIN64) InterlockedIncrement64(ptr); #elif defined(__sun) && defined(HAVE_ATOMIC_H) && (defined(_LP64) || defined(_I32LPx)) @@ -558,7 +558,7 @@ #elif defined(HAVE_GCC_SYNC_BUILTINS) __sync_sub_and_fetch(ptr, val); -#elif defined(_WIN32) && defined(_M_AMD64) +#elif defined(_WIN64) const ssize_t neg = -1; InterlockedExchangeAdd64(ptr, neg * val); @@ -610,7 +610,7 @@ #elif defined(HAVE_GCC_ATOMIC_BUILTINS) || defined(HAVE_GCC_SYNC_BUILTINS) rbimpl_atomic_size_sub(ptr, 1); -#elif defined(_WIN32) && defined(_M_AMD64) +#elif defined(_WIN64) InterlockedDecrement64(ptr); #elif defined(__sun) && defined(HAVE_ATOMIC_H) && (defined(_LP64) || defined(_I32LPx)) @@ -708,7 +708,7 @@ #elif defined(HAVE_GCC_SYNC_BUILTINS) return __sync_lock_test_and_set(ptr, val); -#elif defined(_WIN32) && defined(_M_AMD64) +#elif defined(_WIN64) return InterlockedExchange64(ptr, val); #elif defined(__sun) && defined(HAVE_ATOMIC_H) && (defined(_LP64) || defined(_I32LPx)) @@ -858,7 +858,7 @@ #elif defined(HAVE_GCC_SYNC_BUILTINS) return __sync_val_compare_and_swap(ptr, oldval, newval); -#elif defined(_WIN32) && defined(_M_AMD64) +#elif defined(_WIN64) return InterlockedCompareExchange64(ptr, newval, oldval); #elif defined(__sun) && defined(HAVE_ATOMIC_H) && (defined(_LP64) || defined(_I32LPx)) diff -Nru ruby3.3-3.3.13/include/ruby/internal/memory.h ruby3.3-3.3.14/include/ruby/internal/memory.h --- ruby3.3-3.3.13/include/ruby/internal/memory.h 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/include/ruby/internal/memory.h 2026-11-18 21:52:31.000000000 +0000 @@ -40,7 +40,12 @@ #if defined(_MSC_VER) && defined(_WIN64) # include +# if defined(_M_AMD64) # pragma intrinsic(_umul128) +# endif +# if defined(_M_ARM64) +# pragma intrinsic(__umulh) +# endif #endif #include "ruby/internal/attr/alloc_size.h" @@ -577,12 +582,16 @@ ret.left = dz > SIZE_MAX; ret.right = RBIMPL_CAST((size_t)dz); -#elif defined(_MSC_VER) && defined(_WIN64) +#elif defined(_MSC_VER) && defined(_M_AMD64) unsigned __int64 dp = 0; unsigned __int64 dz = _umul128(x, y, &dp); ret.left = RBIMPL_CAST((bool)dp); ret.right = RBIMPL_CAST((size_t)dz); +#elif defined(_MSC_VER) && defined(_M_ARM64) + ret.left = __umulh(x, y) != 0; + ret.right = x * y; + #else /* https://wiki.sei.cmu.edu/confluence/display/c/INT30-C.+Ensure+that+unsigned+integer+operations+do+not+wrap */ ret.left = (y != 0) && (x > SIZE_MAX / y); diff -Nru ruby3.3-3.3.13/include/ruby/random.h ruby3.3-3.3.14/include/ruby/random.h --- ruby3.3-3.3.13/include/ruby/random.h 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/include/ruby/random.h 2026-11-18 21:52:31.000000000 +0000 @@ -332,7 +332,9 @@ static inline const rb_random_interface_t * rb_rand_if(VALUE obj) { + RBIMPL_ASSERT_OR_ASSUME(RB_TYPE_P(obj, T_DATA)); RBIMPL_ASSERT_OR_ASSUME(RTYPEDDATA_P(obj)); + RUBY_ASSERT(rb_typeddata_is_kind_of(obj, &rb_random_data_type)); const struct rb_data_type_struct *t = RTYPEDDATA_TYPE(obj); const void *ret = t->data; return RBIMPL_CAST((const rb_random_interface_t *)ret); diff -Nru ruby3.3-3.3.13/internal/string.h ruby3.3-3.3.14/internal/string.h --- ruby3.3-3.3.13/internal/string.h 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/internal/string.h 2026-11-18 21:52:31.000000000 +0000 @@ -71,6 +71,7 @@ VALUE rb_obj_as_string_result(VALUE str, VALUE obj); VALUE rb_str_opt_plus(VALUE x, VALUE y); VALUE rb_str_concat_literals(size_t num, const VALUE *strary); +VALUE rb_str_format_ary(int argc, const VALUE *argv, VALUE fmt, VALUE ary); VALUE rb_str_eql(VALUE str1, VALUE str2); VALUE rb_id_quote_unprintable(ID); VALUE rb_sym_proc_call(ID mid, int argc, const VALUE *argv, int kw_splat, VALUE passed_proc); diff -Nru ruby3.3-3.3.13/io.c ruby3.3-3.3.14/io.c --- ruby3.3-3.3.13/io.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/io.c 2026-11-18 21:52:31.000000000 +0000 @@ -931,7 +931,7 @@ rb_io_t *fptr = rb_io_get_fptr(self); - fptr->timeout = timeout; + RB_OBJ_WRITE(self, &fptr->timeout, timeout); return self; } @@ -3249,6 +3249,11 @@ fptr->cbuf.len += (int)(dp - ds); putbackable = rb_econv_putbackable(fptr->readconv); + /* The converter can hold readagain bytes it received in an earlier + * fill (a character split across reads). Only bytes still in rbuf + * can be put back there; the rest stay in the converter. */ + if (putbackable > fptr->rbuf.off) + putbackable = fptr->rbuf.off; if (putbackable) { rb_econv_putback(fptr->readconv, (unsigned char *)fptr->rbuf.ptr + fptr->rbuf.off - putbackable, putbackable); fptr->rbuf.off -= putbackable; @@ -3887,6 +3892,7 @@ static const char * search_delim(const char *p, long len, int delim, rb_encoding *enc) { + if (delim < 0) return NULL; if (rb_enc_mbminlen(enc) == 1) { p = memchr(p, delim, len); if (p) return p + 1; @@ -6159,7 +6165,9 @@ rb_scan_args(argc, argv, "11", &len, &str); ilen = NUM2LONG(len); - + if (ilen < 0) { + rb_raise(rb_eArgError, "negative string size (or size too big)"); + } shrinkable = io_setstrbuf(&str, ilen); if (ilen == 0) return str; @@ -6260,13 +6268,18 @@ rb_io_pread(int argc, VALUE *argv, VALUE io) { VALUE len, offset, str; + long ilen; rb_io_t *fptr; ssize_t n; struct prdwr_internal_arg arg = {.io = io}; int shrinkable; rb_scan_args(argc, argv, "21", &len, &offset, &str); - arg.count = NUM2SIZET(len); + ilen = NUM2LONG(len); + if (ilen < 0) { + rb_raise(rb_eArgError, "negative string size (or size too big)"); + } + arg.count = (size_t)ilen; arg.offset = NUM2OFFT(offset); shrinkable = io_setstrbuf(&str, (long)arg.count); @@ -13141,6 +13154,21 @@ return 0; } +struct copy_stream_fallback_read_arg { + struct copy_stream_struct *stp; + VALUE buf; + long len; + rb_off_t offset; +}; + +static VALUE +copy_stream_fallback_read(VALUE arg) +{ + struct copy_stream_fallback_read_arg *p = (void *)arg; + return (VALUE)maygvl_copy_stream_read(1, p->stp, RSTRING_PTR(p->buf), + p->len, p->offset); +} + static VALUE copy_stream_fallback_body(VALUE arg) { @@ -13179,9 +13207,11 @@ break; } else { - ssize_t ss; rb_str_resize(buf, buflen); - ss = maygvl_copy_stream_read(1, stp, RSTRING_PTR(buf), l, off); + struct copy_stream_fallback_read_arg read_arg = {stp, buf, l, off}; + ssize_t ss = + (ssize_t)rb_str_locktmp_ensure(buf, copy_stream_fallback_read, + (VALUE)&read_arg); rb_str_resize(buf, ss > 0 ? ss : 0); if (ss < 0) return Qnil; @@ -13463,7 +13493,7 @@ static VALUE rb_io_external_encoding(VALUE io) { - rb_io_t *fptr = RFILE(rb_io_taint_check(io))->fptr; + rb_io_t *fptr = rb_io_get_fptr(rb_io_taint_check(io)); if (fptr->encs.enc2) { return rb_enc_from_encoding(fptr->encs.enc2); @@ -13491,7 +13521,7 @@ static VALUE rb_io_internal_encoding(VALUE io) { - rb_io_t *fptr = RFILE(rb_io_taint_check(io))->fptr; + rb_io_t *fptr = rb_io_get_fptr(rb_io_taint_check(io)); if (!fptr->encs.enc2) return Qnil; return rb_enc_from_encoding(io_read_encoding(fptr)); diff -Nru ruby3.3-3.3.13/iseq.c ruby3.3-3.3.14/iseq.c --- ruby3.3-3.3.13/iseq.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/iseq.c 2026-11-18 21:52:31.000000000 +0000 @@ -223,11 +223,16 @@ while (bits) { offset = ntz_intptr(bits); - VALUE op = code[page_offset + offset]; - rb_gc_mark_and_move(&code[page_offset + offset]); - VALUE newop = code[page_offset + offset]; - if (original_iseq && newop != op) { - original_iseq[page_offset + offset] = newop; + if (original_iseq) { + VALUE op = original_iseq[page_offset + offset]; + rb_gc_mark_and_move(&code[page_offset + offset]); + VALUE newop = code[page_offset + offset]; + if (op != newop) { + original_iseq[page_offset + offset] = newop; + } + } + else { + rb_gc_mark_and_move(&code[page_offset + offset]); } bits &= bits - 1; // Reset Lowest Set Bit (BLSR) } @@ -2997,6 +3002,7 @@ static VALUE iseq_data_to_ary(const rb_iseq_t *iseq) { + VALUE iseq_value = (VALUE)iseq; unsigned int i; long l; const struct rb_iseq_constant_body *const iseq_body = ISEQ_BODY(iseq); @@ -3327,6 +3333,9 @@ rb_ary_push(val, params); rb_ary_push(val, exception); rb_ary_push(val, body); + + RB_GC_GUARD(iseq_value); + return val; } diff -Nru ruby3.3-3.3.13/iseq.h ruby3.3-3.3.14/iseq.h --- ruby3.3-3.3.13/iseq.h 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/iseq.h 2026-11-18 21:52:31.000000000 +0000 @@ -71,13 +71,6 @@ } } -static inline VALUE * -ISEQ_ORIGINAL_ISEQ_ALLOC(const rb_iseq_t *iseq, long size) -{ - return ISEQ_BODY(iseq)->variable.original_iseq = - ALLOC_N(VALUE, size); -} - #define ISEQ_TRACE_EVENTS (RUBY_EVENT_LINE | \ RUBY_EVENT_CLASS | \ RUBY_EVENT_END | \ diff -Nru ruby3.3-3.3.13/lib/bundler/mirror.rb ruby3.3-3.3.14/lib/bundler/mirror.rb --- ruby3.3-3.3.13/lib/bundler/mirror.rb 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/lib/bundler/mirror.rb 2026-11-18 21:52:31.000000000 +0000 @@ -160,18 +160,18 @@ def wait_for_writtable_socket(socket, address, timeout) if IO.select(nil, [socket], nil, timeout) - probe_writtable_socket(socket, address) + probe_writtable_socket(socket) else # TCP Handshake timed out, or there is something dropping packets false end end - def probe_writtable_socket(socket, address) - socket.connect_nonblock(address) - rescue Errno::EISCONN - true - rescue StandardError # Connection failed - false + def probe_writtable_socket(socket) + # Check the pending error on the socket rather than calling + # +connect_nonblock+ a second time. On BSD-based systems such as macOS a + # second connect returns +EISCONN+ even when the asynchronous connect + # failed, which would make a down mirror look reachable. + socket.getsockopt(Socket::SOL_SOCKET, Socket::SO_ERROR).int == 0 end end end diff -Nru ruby3.3-3.3.13/marshal.c ruby3.3-3.3.14/marshal.c --- ruby3.3-3.3.13/marshal.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/marshal.c 2026-11-18 21:52:31.000000000 +0000 @@ -310,6 +310,21 @@ w_nbyte(s, n, arg); } +/* Like w_bytes, but for a Ruby String. Flushing the dump buffer in w_long + * can run arbitrary Ruby code through the destination IO's write method, + * which can modify the string, so re-validate it before using the pointer. */ +static void +w_str_bytes(VALUE str, struct dump_arg *arg) +{ + long len = RSTRING_LEN(str); + const char *ptr = RSTRING_PTR(str); + w_long(len, arg); + if (RSTRING_PTR(str) != ptr || RSTRING_LEN(str) != len) { + rb_raise(rb_eRuntimeError, "string modified during dump"); + } + w_nbyte(ptr, len, arg); +} + #define w_cstr(s, arg) w_bytes((s), strlen(s), (arg)) static void @@ -937,7 +952,7 @@ } if (hasiv) w_byte(TYPE_IVAR, arg); w_class(TYPE_USERDEF, obj, arg, FALSE); - w_bytes(RSTRING_PTR(v), RSTRING_LEN(v), arg); + w_str_bytes(v, arg); if (hasiv) { st_data_t userdefs = (st_data_t)obj; if (!arg->userdefs) { @@ -1040,7 +1055,7 @@ case T_STRING: w_uclass(obj, rb_cString, arg); w_byte(TYPE_STRING, arg); - w_bytes(RSTRING_PTR(obj), RSTRING_LEN(obj), arg); + w_str_bytes(obj, arg); break; case T_REGEXP: @@ -1267,6 +1282,7 @@ struct load_arg { VALUE src; char *buf; + long bufsize; long buflen; long readable; long offset; @@ -1298,6 +1314,8 @@ struct load_arg *p = ptr; if (!p->symbols) return; + rb_gc_mark(p->src); + rb_gc_mark(p->proc); rb_mark_tbl(p->symbols); rb_mark_tbl(p->data); rb_mark_tbl(p->partial_objects); @@ -1352,15 +1370,23 @@ r_byte1_buffered(struct load_arg *arg) { if (arg->buflen == 0) { - long readable = arg->readable < BUFSIZ ? arg->readable : BUFSIZ; + long readable = arg->readable < arg->bufsize ? arg->readable : arg->bufsize; + long read_len; VALUE str, n = LONG2NUM(readable); str = load_funcall(arg, arg->src, s_read, 1, &n); if (NIL_P(str)) too_short(); StringValue(str); - memcpy(arg->buf, RSTRING_PTR(str), RSTRING_LEN(str)); + read_len = RSTRING_LEN(str); + if (UNLIKELY(read_len < readable)) too_short(); + if (UNLIKELY(read_len > arg->bufsize)) { + arg->buf = ruby_sized_realloc_n(arg->buf, read_len, 1, arg->bufsize); + arg->bufsize = read_len; + } + memcpy(arg->buf, RSTRING_PTR(str), read_len); arg->offset = 0; - arg->buflen = RSTRING_LEN(str); + arg->buflen = read_len; + RB_GC_GUARD(str); } arg->buflen--; return arg->buf[arg->offset++]; @@ -1447,6 +1473,18 @@ return x; } +static long +r_keep_readable(struct load_arg *arg, long len, size_t size) +{ + if (UNLIKELY(len < 0)) { + rb_raise(rb_eArgError, "negative length"); + } + if (UNLIKELY((unsigned long)len > SIZE_MAX / size || arg->readable >= LONG_MAX - len)) { + rb_raise(rb_eArgError, "marshaled data too big"); + } + return len; +} + static VALUE r_bytes1(long len, struct load_arg *arg) { @@ -1476,7 +1514,7 @@ long tmp_len, read_len, need_len = len - buflen; VALUE tmp, n; - readable = readable < BUFSIZ ? readable : BUFSIZ; + readable = readable < arg->bufsize ? readable : arg->bufsize; read_len = need_len > readable ? need_len : readable; n = LONG2NUM(read_len); tmp = load_funcall(arg, arg->src, s_read, 1, &n); @@ -1492,6 +1530,10 @@ if (tmp_len > need_len) { buflen = tmp_len - need_len; + if (UNLIKELY(buflen > arg->bufsize)) { + arg->buf = ruby_sized_realloc_n(arg->buf, buflen, 1, arg->bufsize); + arg->bufsize = buflen; + } memcpy(arg->buf, RSTRING_PTR(tmp)+need_len, buflen); arg->buflen = buflen; } @@ -1955,6 +1997,11 @@ if (TYPE(v) != TYPE(tmp)) goto format_error; } + if (RB_TYPE_P(v, T_STRUCT) && + RSTRUCT_LEN(v) != RARRAY_LEN(rb_struct_s_members(c))) { + rb_raise(rb_eTypeError, "struct %"PRIsVALUE" not compatible (struct size differs)", + rb_class_name(c)); + } RBASIC_SET_CLASS(v, c); } break; @@ -2018,7 +2065,7 @@ int sign; sign = r_byte(arg); - len = r_long(arg); + len = r_keep_readable(arg, r_long(arg), 2); if (SIZEOF_VALUE >= 8 && len <= 4) { // Representable within uintptr, likely FIXNUM @@ -2093,7 +2140,7 @@ case TYPE_ARRAY: { - long len = r_long(arg); + long len = r_keep_readable(arg, r_long(arg), 1); v = rb_ary_new2(len); v = r_entry(v, arg); @@ -2111,7 +2158,7 @@ case TYPE_HASH_DEF: type_hash: { - long len = r_long(arg); + long len = r_keep_readable(arg, r_long(arg), 2); v = hash_new_with_size(len); v = r_entry(v, arg); @@ -2137,7 +2184,7 @@ VALUE slot; st_index_t idx = r_prepare(arg); VALUE klass = path2class(r_unique(arg)); - long len = r_long(arg); + long len = r_keep_readable(arg, r_long(arg), 2); v = rb_obj_alloc(klass); if (!RB_TYPE_P(v, T_STRUCT)) { @@ -2358,6 +2405,7 @@ xfree(arg->buf); arg->buf = 0; } + arg->bufsize = 0; arg->buflen = 0; arg->offset = 0; arg->readable = 0; @@ -2403,10 +2451,14 @@ arg->readable = 0; arg->freeze = freeze; - if (NIL_P(v)) + if (NIL_P(v)) { + arg->bufsize = BUFSIZ; arg->buf = xmalloc(BUFSIZ); - else + } + else { + arg->bufsize = 0; arg->buf = 0; + } major = r_byte(arg); minor = r_byte(arg); diff -Nru ruby3.3-3.3.13/memory_view.c ruby3.3-3.3.14/memory_view.c --- ruby3.3-3.3.13/memory_view.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/memory_view.c 2026-11-18 21:52:31.000000000 +0000 @@ -446,6 +446,12 @@ ssize_t i = 0, offset = 0; const char *p = format; while (*p) { + // ignore spaces + if (ISSPACE(*p)) { + while (ISSPACE(*p)) ++p; + continue; + } + const int type_char = *p; bool native_size_p; diff -Nru ruby3.3-3.3.13/pack.c ruby3.3-3.3.14/pack.c --- ruby3.3-3.3.13/pack.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/pack.c 2026-11-18 21:52:31.000000000 +0000 @@ -118,6 +118,7 @@ #define MAX_INTEGER_PACK_SIZE 8 static const char toofew[] = "too few arguments"; +static const char intoitself[] = "cannot pack buffer object into itself"; static void encodes(VALUE,const char*,long,int,int); static void qpencode(VALUE,VALUE,long); @@ -230,6 +231,8 @@ #define MORE_ITEM (idx < RARRAY_LEN(ary)) #define THISFROM (MORE_ITEM ? RARRAY_AREF(ary, idx) : TOO_FEW) #define NEXTFROM (MORE_ITEM ? RARRAY_AREF(ary, idx++) : TOO_FEW) +#define NOT_BUFFER(val) (((val) == res) ? rb_raise(rb_eArgError, intoitself) : (void)0) +#define STR_FROM(val) NOT_BUFFER(StringValue(val)) while (p < pend) { int explicit_endian = 0; @@ -318,7 +321,7 @@ plen = 0; } else { - StringValue(from); + STR_FROM(from); ptr = RSTRING_PTR(from); plen = RSTRING_LEN(from); } @@ -662,7 +665,7 @@ case 'u': /* uuencoded string */ case 'm': /* base64 encoded string */ from = NEXTFROM; - StringValue(from); + STR_FROM(from); ptr = RSTRING_PTR(from); plen = RSTRING_LEN(from); @@ -692,6 +695,7 @@ case 'M': /* quoted-printable encoded string */ from = rb_obj_as_string(NEXTFROM); + NOT_BUFFER(from); if (len <= 1) len = 72; qpencode(res, from, len); @@ -700,7 +704,7 @@ case 'P': /* pointer to packed byte string */ from = THISFROM; if (!NIL_P(from)) { - StringValue(from); + STR_FROM(from); if (RSTRING_LEN(from) < len) { rb_raise(rb_eArgError, "too short buffer for P(%ld for %ld)", RSTRING_LEN(from), len); @@ -710,13 +714,11 @@ /* FALL THROUGH */ case 'p': /* pointer to string */ while (len-- > 0) { - char *t; + char *t = 0; from = NEXTFROM; - if (NIL_P(from)) { - t = 0; - } - else { - t = StringValuePtr(from); + if (!NIL_P(from)) { + STR_FROM(from); + t = RSTRING_PTR(from); } if (!associates) { associates = rb_ary_new(); diff -Nru ruby3.3-3.3.13/parse.c ruby3.3-3.3.14/parse.c --- ruby3.3-3.3.13/parse.c 2026-10-23 03:17:43.000000000 +0000 +++ ruby3.3-3.3.14/parse.c 2026-11-18 21:52:33.000000000 +0000 @@ -392,10 +392,20 @@ rb_parser_set_location(p, &(Current)) #define RUBY_INIT_YYLLOC() \ { \ - {p->ruby_sourceline, (int)(p->lex.ptok - p->lex.pbeg)}, \ - {p->ruby_sourceline, (int)(p->lex.pcur - p->lex.pbeg)}, \ + {p->ruby_sourceline, parser_column(p->lex.ptok - p->lex.pbeg)}, \ + {p->ruby_sourceline, parser_column(p->lex.pcur - p->lex.pbeg)}, \ } +/* Saturate instead of wrapping to a column before the line. */ +static inline int +parser_column(long pos) +{ +#if SIZEOF_INT < SIZEOF_LONG + if (pos > INT_MAX) return INT_MAX; +#endif + return (int)pos; +} + #define IS_lex_state_for(x, ls) ((x) & (ls)) #define IS_lex_state_all_for(x, ls) (((x) & (ls)) == (ls)) #define IS_lex_state(ls) IS_lex_state_for(p->lex.state, (ls)) @@ -1963,7 +1973,7 @@ } #endif -#line 1967 "parse.c" +#line 1977 "parse.c" # ifndef YY_CAST # ifdef __cplusplus @@ -2830,85 +2840,85 @@ /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ static const yytype_int16 yyrline[] = { - 0, 2193, 2193, 2193, 2221, 2227, 2234, 2241, 2250, 2255, - 2261, 2263, 2279, 2284, 2275, 2297, 2294, 2309, 2315, 2322, - 2329, 2338, 2343, 2342, 2352, 2354, 2360, 2360, 2367, 2374, - 2384, 2393, 2400, 2408, 2416, 2429, 2442, 2453, 2468, 2469, - 2477, 2484, 2497, 2504, 2505, 2514, 2521, 2528, 2536, 2543, - 2550, 2558, 2565, 2578, 2591, 2601, 2602, 2610, 2616, 2621, - 2631, 2634, 2635, 2639, 2643, 2647, 2652, 2651, 2667, 2666, - 2681, 2684, 2696, 2709, 2708, 2728, 2733, 2741, 2741, 2741, - 2747, 2748, 2751, 2752, 2761, 2770, 2779, 2788, 2799, 2806, - 2813, 2820, 2827, 2835, 2843, 2851, 2858, 2867, 2878, 2879, - 2888, 2889, 2898, 2905, 2912, 2919, 2926, 2933, 2940, 2947, - 2954, 2961, 2970, 2971, 2980, 2987, 2996, 3003, 3012, 3019, - 3026, 3033, 3041, 3048, 3056, 3063, 3070, 3080, 3087, 3094, - 3101, 3108, 3115, 3122, 3129, 3136, 3146, 3154, 3157, 3164, - 3171, 3180, 3181, 3182, 3183, 3188, 3191, 3198, 3201, 3208, - 3208, 3218, 3219, 3220, 3221, 3222, 3223, 3224, 3225, 3226, - 3227, 3228, 3229, 3230, 3231, 3232, 3233, 3234, 3235, 3236, + 0, 2203, 2203, 2203, 2231, 2237, 2244, 2251, 2260, 2265, + 2271, 2273, 2289, 2294, 2285, 2307, 2304, 2319, 2325, 2332, + 2339, 2348, 2353, 2352, 2362, 2364, 2370, 2370, 2377, 2384, + 2394, 2403, 2410, 2418, 2426, 2439, 2452, 2463, 2478, 2479, + 2487, 2494, 2507, 2514, 2515, 2524, 2531, 2538, 2546, 2553, + 2560, 2568, 2575, 2588, 2601, 2611, 2612, 2620, 2626, 2631, + 2641, 2644, 2645, 2649, 2653, 2657, 2662, 2661, 2677, 2676, + 2691, 2694, 2706, 2719, 2718, 2738, 2743, 2751, 2751, 2751, + 2757, 2758, 2761, 2762, 2771, 2780, 2789, 2798, 2809, 2816, + 2823, 2830, 2837, 2845, 2853, 2861, 2868, 2877, 2888, 2889, + 2898, 2899, 2908, 2915, 2922, 2929, 2936, 2943, 2950, 2957, + 2964, 2971, 2980, 2981, 2990, 2997, 3006, 3013, 3022, 3029, + 3036, 3043, 3051, 3058, 3066, 3073, 3080, 3090, 3097, 3104, + 3111, 3118, 3125, 3132, 3139, 3146, 3156, 3164, 3167, 3174, + 3181, 3190, 3191, 3192, 3193, 3198, 3201, 3208, 3211, 3218, + 3218, 3228, 3229, 3230, 3231, 3232, 3233, 3234, 3235, 3236, 3237, 3238, 3239, 3240, 3241, 3242, 3243, 3244, 3245, 3246, - 3247, 3250, 3250, 3250, 3251, 3251, 3252, 3252, 3252, 3253, - 3253, 3253, 3253, 3254, 3254, 3254, 3254, 3255, 3255, 3255, - 3256, 3256, 3256, 3256, 3257, 3257, 3257, 3257, 3258, 3258, - 3258, 3258, 3259, 3259, 3259, 3259, 3260, 3260, 3260, 3260, - 3261, 3261, 3264, 3271, 3278, 3285, 3292, 3299, 3306, 3314, - 3322, 3330, 3339, 3348, 3356, 3364, 3372, 3380, 3384, 3388, - 3392, 3396, 3400, 3404, 3408, 3412, 3416, 3420, 3424, 3428, - 3432, 3433, 3437, 3441, 3445, 3449, 3453, 3457, 3461, 3465, - 3469, 3473, 3477, 3482, 3491, 3504, 3517, 3523, 3524, 3532, - 3538, 3539, 3540, 3541, 3544, 3548, 3555, 3561, 3568, 3575, - 3582, 3583, 3587, 3594, 3603, 3608, 3619, 3626, 3638, 3652, - 3653, 3656, 3657, 3658, 3662, 3669, 3678, 3686, 3693, 3701, - 3709, 3713, 3713, 3750, 3757, 3767, 3771, 3778, 3785, 3792, - 3799, 3809, 3813, 3824, 3825, 3829, 3836, 3843, 3852, 3853, - 3854, 3855, 3856, 3857, 3858, 3859, 3860, 3861, 3862, 3870, - 3869, 3884, 3884, 3892, 3900, 3907, 3914, 3921, 3929, 3936, - 3943, 3950, 3957, 3962, 3966, 3970, 3977, 3978, 3986, 3987, - 3998, 4009, 4020, 4032, 4031, 4048, 4047, 4062, 4071, 4116, - 4115, 4134, 4133, 4154, 4153, 4173, 4171, 4192, 4190, 4209, - 4214, 4219, 4224, 4241, 4248, 4257, 4277, 4286, 4296, 4306, - 4315, 4325, 4336, 4347, 4355, 4364, 4373, 4381, 4388, 4394, - 4409, 4416, 4423, 4429, 4436, 4443, 4444, 4445, 4448, 4449, - 4452, 4453, 4465, 4466, 4475, 4476, 4479, 4487, 4496, 4503, - 4512, 4519, 4526, 4533, 4540, 4549, 4557, 4566, 4567, 4570, - 4570, 4572, 4576, 4580, 4584, 4590, 4595, 4600, 4610, 4614, - 4618, 4622, 4626, 4630, 4635, 4639, 4643, 4647, 4651, 4655, - 4659, 4663, 4667, 4673, 4674, 4680, 4691, 4704, 4708, 4717, - 4719, 4723, 4728, 4734, 4740, 4746, 4754, 4745, 4780, 4789, - 4800, 4806, 4805, 4817, 4826, 4840, 4847, 4854, 4863, 4872, - 4880, 4888, 4895, 4903, 4911, 4918, 4925, 4935, 4942, 4951, - 4951, 4968, 4968, 4989, 4997, 5004, 5012, 5021, 5033, 5034, - 5037, 5038, 5040, 5051, 5048, 5066, 5067, 5070, 5071, 5079, - 5089, 5090, 5095, 5103, 5107, 5111, 5117, 5120, 5129, 5132, - 5139, 5142, 5143, 5145, 5146, 5147, 5156, 5165, 5174, 5179, - 5188, 5197, 5206, 5211, 5215, 5219, 5225, 5224, 5234, 5239, - 5246, 5255, 5259, 5268, 5272, 5276, 5279, 5283, 5292, 5296, - 5302, 5309, 5317, 5326, 5327, 5336, 5345, 5349, 5353, 5357, - 5363, 5365, 5374, 5382, 5396, 5397, 5420, 5424, 5430, 5436, - 5437, 5440, 5441, 5450, 5459, 5467, 5475, 5476, 5477, 5478, - 5486, 5496, 5497, 5498, 5499, 5500, 5501, 5502, 5503, 5504, - 5511, 5514, 5524, 5535, 5544, 5553, 5560, 5567, 5576, 5600, - 5603, 5610, 5617, 5620, 5624, 5627, 5635, 5638, 5639, 5642, - 5659, 5660, 5661, 5670, 5680, 5689, 5695, 5696, 5699, 5709, - 5715, 5724, 5726, 5735, 5745, 5751, 5760, 5769, 5779, 5785, - 5795, 5801, 5811, 5821, 5840, 5846, 5856, 5866, 5907, 5910, - 5909, 5926, 5935, 5939, 5925, 5960, 5961, 5964, 5971, 5974, - 5975, 5978, 5988, 5989, 5992, 6002, 6003, 6013, 6014, 6015, - 6016, 6019, 6020, 6021, 6024, 6025, 6026, 6029, 6030, 6031, - 6032, 6033, 6034, 6035, 6038, 6051, 6060, 6067, 6076, 6077, - 6081, 6080, 6090, 6098, 6099, 6107, 6119, 6120, 6120, 6136, - 6140, 6144, 6148, 6152, 6162, 6167, 6172, 6176, 6180, 6184, - 6188, 6192, 6196, 6200, 6204, 6208, 6212, 6216, 6220, 6224, - 6229, 6235, 6248, 6257, 6266, 6275, 6286, 6287, 6295, 6304, - 6312, 6333, 6335, 6348, 6358, 6367, 6378, 6386, 6396, 6403, - 6413, 6420, 6429, 6430, 6433, 6441, 6449, 6459, 6470, 6481, - 6488, 6497, 6504, 6513, 6514, 6517, 6525, 6535, 6536, 6539, - 6547, 6557, 6561, 6567, 6572, 6572, 6598, 6599, 6608, 6610, - 6633, 6644, 6651, 6660, 6668, 6685, 6696, 6697, 6698, 6701, - 6702, 6705, 6706, 6707, 6710, 6711, 6714, 6715, 6718, 6719, - 6722, 6723, 6726, 6727, 6730, 6733, 6736, 6739, 6740, 6743, - 6744, 6751, 6752, 6756 + 3247, 3248, 3249, 3250, 3251, 3252, 3253, 3254, 3255, 3256, + 3257, 3260, 3260, 3260, 3261, 3261, 3262, 3262, 3262, 3263, + 3263, 3263, 3263, 3264, 3264, 3264, 3264, 3265, 3265, 3265, + 3266, 3266, 3266, 3266, 3267, 3267, 3267, 3267, 3268, 3268, + 3268, 3268, 3269, 3269, 3269, 3269, 3270, 3270, 3270, 3270, + 3271, 3271, 3274, 3281, 3288, 3295, 3302, 3309, 3316, 3324, + 3332, 3340, 3349, 3358, 3366, 3374, 3382, 3390, 3394, 3398, + 3402, 3406, 3410, 3414, 3418, 3422, 3426, 3430, 3434, 3438, + 3442, 3443, 3447, 3451, 3455, 3459, 3463, 3467, 3471, 3475, + 3479, 3483, 3487, 3492, 3501, 3514, 3527, 3533, 3534, 3542, + 3548, 3549, 3550, 3551, 3554, 3558, 3565, 3571, 3578, 3585, + 3592, 3593, 3597, 3604, 3613, 3618, 3629, 3636, 3648, 3662, + 3663, 3666, 3667, 3668, 3672, 3679, 3688, 3696, 3703, 3711, + 3719, 3723, 3723, 3760, 3767, 3777, 3781, 3788, 3795, 3802, + 3809, 3819, 3823, 3834, 3835, 3839, 3846, 3853, 3862, 3863, + 3864, 3865, 3866, 3867, 3868, 3869, 3870, 3871, 3872, 3880, + 3879, 3894, 3894, 3902, 3910, 3917, 3924, 3931, 3939, 3946, + 3953, 3960, 3967, 3972, 3976, 3980, 3987, 3988, 3996, 3997, + 4008, 4019, 4030, 4042, 4041, 4058, 4057, 4072, 4081, 4126, + 4125, 4144, 4143, 4164, 4163, 4183, 4181, 4202, 4200, 4219, + 4224, 4229, 4234, 4251, 4258, 4267, 4287, 4296, 4306, 4316, + 4325, 4335, 4346, 4357, 4365, 4374, 4383, 4391, 4398, 4404, + 4419, 4426, 4433, 4439, 4446, 4453, 4454, 4455, 4458, 4459, + 4462, 4463, 4475, 4476, 4485, 4486, 4489, 4497, 4506, 4513, + 4522, 4529, 4536, 4543, 4550, 4559, 4567, 4576, 4577, 4580, + 4580, 4582, 4586, 4590, 4594, 4600, 4605, 4610, 4620, 4624, + 4628, 4632, 4636, 4640, 4645, 4649, 4653, 4657, 4661, 4665, + 4669, 4673, 4677, 4683, 4684, 4690, 4701, 4714, 4718, 4727, + 4729, 4733, 4738, 4744, 4750, 4756, 4764, 4755, 4790, 4799, + 4810, 4816, 4815, 4827, 4836, 4850, 4857, 4864, 4873, 4882, + 4890, 4898, 4905, 4913, 4921, 4928, 4935, 4945, 4952, 4961, + 4961, 4978, 4978, 4999, 5007, 5014, 5022, 5031, 5043, 5044, + 5047, 5048, 5050, 5061, 5058, 5076, 5077, 5080, 5081, 5089, + 5099, 5100, 5105, 5113, 5117, 5121, 5127, 5130, 5139, 5142, + 5149, 5152, 5153, 5155, 5156, 5157, 5166, 5175, 5184, 5189, + 5198, 5207, 5216, 5221, 5225, 5229, 5235, 5234, 5244, 5249, + 5256, 5265, 5269, 5278, 5282, 5286, 5289, 5293, 5302, 5306, + 5312, 5319, 5327, 5336, 5337, 5346, 5355, 5359, 5363, 5367, + 5373, 5375, 5384, 5392, 5406, 5407, 5430, 5434, 5440, 5446, + 5447, 5450, 5451, 5460, 5469, 5477, 5485, 5486, 5487, 5488, + 5496, 5506, 5507, 5508, 5509, 5510, 5511, 5512, 5513, 5514, + 5521, 5524, 5534, 5545, 5554, 5563, 5570, 5577, 5586, 5610, + 5613, 5620, 5627, 5630, 5634, 5637, 5645, 5648, 5649, 5652, + 5669, 5670, 5671, 5680, 5690, 5699, 5705, 5706, 5709, 5719, + 5725, 5734, 5736, 5745, 5755, 5761, 5770, 5779, 5789, 5795, + 5805, 5811, 5821, 5831, 5850, 5856, 5866, 5876, 5917, 5920, + 5919, 5936, 5945, 5949, 5935, 5970, 5971, 5974, 5981, 5984, + 5985, 5988, 5998, 5999, 6002, 6012, 6013, 6023, 6024, 6025, + 6026, 6029, 6030, 6031, 6034, 6035, 6036, 6039, 6040, 6041, + 6042, 6043, 6044, 6045, 6048, 6061, 6070, 6077, 6086, 6087, + 6091, 6090, 6100, 6108, 6109, 6117, 6129, 6130, 6130, 6146, + 6150, 6154, 6158, 6162, 6172, 6177, 6182, 6186, 6190, 6194, + 6198, 6202, 6206, 6210, 6214, 6218, 6222, 6226, 6230, 6234, + 6239, 6245, 6258, 6267, 6276, 6285, 6296, 6297, 6305, 6314, + 6322, 6343, 6345, 6358, 6368, 6377, 6388, 6396, 6406, 6413, + 6423, 6430, 6439, 6440, 6443, 6451, 6459, 6469, 6480, 6491, + 6498, 6507, 6514, 6523, 6524, 6527, 6535, 6545, 6546, 6549, + 6557, 6567, 6571, 6577, 6582, 6582, 6608, 6609, 6618, 6620, + 6643, 6654, 6661, 6670, 6678, 6695, 6706, 6707, 6708, 6711, + 6712, 6715, 6716, 6717, 6720, 6721, 6724, 6725, 6728, 6729, + 6732, 6733, 6736, 6737, 6740, 6743, 6746, 6749, 6750, 6753, + 6754, 6761, 6762, 6766 }; #endif @@ -6961,7 +6971,7 @@ switch (yykind) { case YYSYMBOL_tIDENTIFIER: /* "local variable or method" */ -#line 1926 "parse.y" +#line 1936 "parse.y" { #ifndef RIPPER rb_parser_printf(p, "%"PRIsVALUE, rb_id2str(((*yyvaluep).id))); @@ -6969,11 +6979,11 @@ rb_parser_printf(p, "%"PRIsVALUE, RNODE_RIPPER(((*yyvaluep).id))->nd_rval); #endif } -#line 6973 "parse.c" +#line 6983 "parse.c" break; case YYSYMBOL_tFID: /* "method" */ -#line 1926 "parse.y" +#line 1936 "parse.y" { #ifndef RIPPER rb_parser_printf(p, "%"PRIsVALUE, rb_id2str(((*yyvaluep).id))); @@ -6981,11 +6991,11 @@ rb_parser_printf(p, "%"PRIsVALUE, RNODE_RIPPER(((*yyvaluep).id))->nd_rval); #endif } -#line 6985 "parse.c" +#line 6995 "parse.c" break; case YYSYMBOL_tGVAR: /* "global variable" */ -#line 1926 "parse.y" +#line 1936 "parse.y" { #ifndef RIPPER rb_parser_printf(p, "%"PRIsVALUE, rb_id2str(((*yyvaluep).id))); @@ -6993,11 +7003,11 @@ rb_parser_printf(p, "%"PRIsVALUE, RNODE_RIPPER(((*yyvaluep).id))->nd_rval); #endif } -#line 6997 "parse.c" +#line 7007 "parse.c" break; case YYSYMBOL_tIVAR: /* "instance variable" */ -#line 1926 "parse.y" +#line 1936 "parse.y" { #ifndef RIPPER rb_parser_printf(p, "%"PRIsVALUE, rb_id2str(((*yyvaluep).id))); @@ -7005,11 +7015,11 @@ rb_parser_printf(p, "%"PRIsVALUE, RNODE_RIPPER(((*yyvaluep).id))->nd_rval); #endif } -#line 7009 "parse.c" +#line 7019 "parse.c" break; case YYSYMBOL_tCONSTANT: /* "constant" */ -#line 1926 "parse.y" +#line 1936 "parse.y" { #ifndef RIPPER rb_parser_printf(p, "%"PRIsVALUE, rb_id2str(((*yyvaluep).id))); @@ -7017,11 +7027,11 @@ rb_parser_printf(p, "%"PRIsVALUE, RNODE_RIPPER(((*yyvaluep).id))->nd_rval); #endif } -#line 7021 "parse.c" +#line 7031 "parse.c" break; case YYSYMBOL_tCVAR: /* "class variable" */ -#line 1926 "parse.y" +#line 1936 "parse.y" { #ifndef RIPPER rb_parser_printf(p, "%"PRIsVALUE, rb_id2str(((*yyvaluep).id))); @@ -7029,11 +7039,11 @@ rb_parser_printf(p, "%"PRIsVALUE, RNODE_RIPPER(((*yyvaluep).id))->nd_rval); #endif } -#line 7033 "parse.c" +#line 7043 "parse.c" break; case YYSYMBOL_tLABEL: /* "label" */ -#line 1926 "parse.y" +#line 1936 "parse.y" { #ifndef RIPPER rb_parser_printf(p, "%"PRIsVALUE, rb_id2str(((*yyvaluep).id))); @@ -7041,11 +7051,11 @@ rb_parser_printf(p, "%"PRIsVALUE, RNODE_RIPPER(((*yyvaluep).id))->nd_rval); #endif } -#line 7045 "parse.c" +#line 7055 "parse.c" break; case YYSYMBOL_tINTEGER: /* "integer literal" */ -#line 1933 "parse.y" +#line 1943 "parse.y" { #ifndef RIPPER rb_parser_printf(p, "%+"PRIsVALUE, RNODE_LIT(((*yyvaluep).node))->nd_lit); @@ -7053,11 +7063,11 @@ rb_parser_printf(p, "%+"PRIsVALUE, get_value(((*yyvaluep).node))); #endif } -#line 7057 "parse.c" +#line 7067 "parse.c" break; case YYSYMBOL_tFLOAT: /* "float literal" */ -#line 1933 "parse.y" +#line 1943 "parse.y" { #ifndef RIPPER rb_parser_printf(p, "%+"PRIsVALUE, RNODE_LIT(((*yyvaluep).node))->nd_lit); @@ -7065,11 +7075,11 @@ rb_parser_printf(p, "%+"PRIsVALUE, get_value(((*yyvaluep).node))); #endif } -#line 7069 "parse.c" +#line 7079 "parse.c" break; case YYSYMBOL_tRATIONAL: /* "rational literal" */ -#line 1933 "parse.y" +#line 1943 "parse.y" { #ifndef RIPPER rb_parser_printf(p, "%+"PRIsVALUE, RNODE_LIT(((*yyvaluep).node))->nd_lit); @@ -7077,11 +7087,11 @@ rb_parser_printf(p, "%+"PRIsVALUE, get_value(((*yyvaluep).node))); #endif } -#line 7081 "parse.c" +#line 7091 "parse.c" break; case YYSYMBOL_tIMAGINARY: /* "imaginary literal" */ -#line 1933 "parse.y" +#line 1943 "parse.y" { #ifndef RIPPER rb_parser_printf(p, "%+"PRIsVALUE, RNODE_LIT(((*yyvaluep).node))->nd_lit); @@ -7089,11 +7099,11 @@ rb_parser_printf(p, "%+"PRIsVALUE, get_value(((*yyvaluep).node))); #endif } -#line 7093 "parse.c" +#line 7103 "parse.c" break; case YYSYMBOL_tCHAR: /* "char literal" */ -#line 1933 "parse.y" +#line 1943 "parse.y" { #ifndef RIPPER rb_parser_printf(p, "%+"PRIsVALUE, RNODE_LIT(((*yyvaluep).node))->nd_lit); @@ -7101,11 +7111,11 @@ rb_parser_printf(p, "%+"PRIsVALUE, get_value(((*yyvaluep).node))); #endif } -#line 7105 "parse.c" +#line 7115 "parse.c" break; case YYSYMBOL_tNTH_REF: /* "numbered reference" */ -#line 1940 "parse.y" +#line 1950 "parse.y" { #ifndef RIPPER rb_parser_printf(p, "$%ld", RNODE_NTH_REF(((*yyvaluep).node))->nd_nth); @@ -7113,11 +7123,11 @@ rb_parser_printf(p, "%"PRIsVALUE, ((*yyvaluep).node)); #endif } -#line 7117 "parse.c" +#line 7127 "parse.c" break; case YYSYMBOL_tBACK_REF: /* "back reference" */ -#line 1947 "parse.y" +#line 1957 "parse.y" { #ifndef RIPPER rb_parser_printf(p, "$%c", (int)RNODE_BACK_REF(((*yyvaluep).node))->nd_nth); @@ -7125,11 +7135,11 @@ rb_parser_printf(p, "%"PRIsVALUE, ((*yyvaluep).node)); #endif } -#line 7129 "parse.c" +#line 7139 "parse.c" break; case YYSYMBOL_tSTRING_CONTENT: /* "literal content" */ -#line 1933 "parse.y" +#line 1943 "parse.y" { #ifndef RIPPER rb_parser_printf(p, "%+"PRIsVALUE, RNODE_LIT(((*yyvaluep).node))->nd_lit); @@ -7137,11 +7147,11 @@ rb_parser_printf(p, "%+"PRIsVALUE, get_value(((*yyvaluep).node))); #endif } -#line 7141 "parse.c" +#line 7151 "parse.c" break; case YYSYMBOL_tOP_ASGN: /* "operator-assignment" */ -#line 1926 "parse.y" +#line 1936 "parse.y" { #ifndef RIPPER rb_parser_printf(p, "%"PRIsVALUE, rb_id2str(((*yyvaluep).id))); @@ -7149,11 +7159,11 @@ rb_parser_printf(p, "%"PRIsVALUE, RNODE_RIPPER(((*yyvaluep).id))->nd_rval); #endif } -#line 7153 "parse.c" +#line 7163 "parse.c" break; case YYSYMBOL_top_compstmt: /* top_compstmt */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7165,11 +7175,11 @@ #else #endif } -#line 7169 "parse.c" +#line 7179 "parse.c" break; case YYSYMBOL_top_stmts: /* top_stmts */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7181,11 +7191,11 @@ #else #endif } -#line 7185 "parse.c" +#line 7195 "parse.c" break; case YYSYMBOL_top_stmt: /* top_stmt */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7197,11 +7207,11 @@ #else #endif } -#line 7201 "parse.c" +#line 7211 "parse.c" break; case YYSYMBOL_begin_block: /* begin_block */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7213,11 +7223,11 @@ #else #endif } -#line 7217 "parse.c" +#line 7227 "parse.c" break; case YYSYMBOL_bodystmt: /* bodystmt */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7229,11 +7239,11 @@ #else #endif } -#line 7233 "parse.c" +#line 7243 "parse.c" break; case YYSYMBOL_compstmt: /* compstmt */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7245,11 +7255,11 @@ #else #endif } -#line 7249 "parse.c" +#line 7259 "parse.c" break; case YYSYMBOL_stmts: /* stmts */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7261,11 +7271,11 @@ #else #endif } -#line 7265 "parse.c" +#line 7275 "parse.c" break; case YYSYMBOL_stmt_or_begin: /* stmt_or_begin */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7277,11 +7287,11 @@ #else #endif } -#line 7281 "parse.c" +#line 7291 "parse.c" break; case YYSYMBOL_stmt: /* stmt */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7293,11 +7303,11 @@ #else #endif } -#line 7297 "parse.c" +#line 7307 "parse.c" break; case YYSYMBOL_command_asgn: /* command_asgn */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7309,11 +7319,11 @@ #else #endif } -#line 7313 "parse.c" +#line 7323 "parse.c" break; case YYSYMBOL_endless_command: /* endless_command */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7325,11 +7335,11 @@ #else #endif } -#line 7329 "parse.c" +#line 7339 "parse.c" break; case YYSYMBOL_command_rhs: /* command_rhs */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7341,11 +7351,11 @@ #else #endif } -#line 7345 "parse.c" +#line 7355 "parse.c" break; case YYSYMBOL_expr: /* expr */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7357,11 +7367,11 @@ #else #endif } -#line 7361 "parse.c" +#line 7371 "parse.c" break; case YYSYMBOL_expr_value: /* expr_value */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7373,11 +7383,11 @@ #else #endif } -#line 7377 "parse.c" +#line 7387 "parse.c" break; case YYSYMBOL_expr_value_do: /* expr_value_do */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7389,11 +7399,11 @@ #else #endif } -#line 7393 "parse.c" +#line 7403 "parse.c" break; case YYSYMBOL_command_call: /* command_call */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7405,11 +7415,11 @@ #else #endif } -#line 7409 "parse.c" +#line 7419 "parse.c" break; case YYSYMBOL_block_command: /* block_command */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7421,11 +7431,11 @@ #else #endif } -#line 7425 "parse.c" +#line 7435 "parse.c" break; case YYSYMBOL_cmd_brace_block: /* cmd_brace_block */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7437,11 +7447,11 @@ #else #endif } -#line 7441 "parse.c" +#line 7451 "parse.c" break; case YYSYMBOL_fcall: /* fcall */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node_fcall) == (NODE *)-1) { @@ -7453,11 +7463,11 @@ #else #endif } -#line 7457 "parse.c" +#line 7467 "parse.c" break; case YYSYMBOL_command: /* command */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7469,11 +7479,11 @@ #else #endif } -#line 7473 "parse.c" +#line 7483 "parse.c" break; case YYSYMBOL_mlhs_item: /* mlhs_item */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7485,11 +7495,11 @@ #else #endif } -#line 7489 "parse.c" +#line 7499 "parse.c" break; case YYSYMBOL_mlhs_head: /* mlhs_head */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7501,11 +7511,11 @@ #else #endif } -#line 7505 "parse.c" +#line 7515 "parse.c" break; case YYSYMBOL_mlhs_post: /* mlhs_post */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7517,11 +7527,11 @@ #else #endif } -#line 7521 "parse.c" +#line 7531 "parse.c" break; case YYSYMBOL_mlhs_node: /* mlhs_node */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7533,11 +7543,11 @@ #else #endif } -#line 7537 "parse.c" +#line 7547 "parse.c" break; case YYSYMBOL_lhs: /* lhs */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7549,11 +7559,11 @@ #else #endif } -#line 7553 "parse.c" +#line 7563 "parse.c" break; case YYSYMBOL_cpath: /* cpath */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7565,11 +7575,11 @@ #else #endif } -#line 7569 "parse.c" +#line 7579 "parse.c" break; case YYSYMBOL_fitem: /* fitem */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7581,11 +7591,11 @@ #else #endif } -#line 7585 "parse.c" +#line 7595 "parse.c" break; case YYSYMBOL_undef_list: /* undef_list */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7597,11 +7607,11 @@ #else #endif } -#line 7601 "parse.c" +#line 7611 "parse.c" break; case YYSYMBOL_arg: /* arg */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7613,11 +7623,11 @@ #else #endif } -#line 7617 "parse.c" +#line 7627 "parse.c" break; case YYSYMBOL_endless_arg: /* endless_arg */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7629,11 +7639,11 @@ #else #endif } -#line 7633 "parse.c" +#line 7643 "parse.c" break; case YYSYMBOL_rel_expr: /* rel_expr */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7645,11 +7655,11 @@ #else #endif } -#line 7649 "parse.c" +#line 7659 "parse.c" break; case YYSYMBOL_arg_value: /* arg_value */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7661,11 +7671,11 @@ #else #endif } -#line 7665 "parse.c" +#line 7675 "parse.c" break; case YYSYMBOL_aref_args: /* aref_args */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7677,11 +7687,11 @@ #else #endif } -#line 7681 "parse.c" +#line 7691 "parse.c" break; case YYSYMBOL_arg_rhs: /* arg_rhs */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7693,11 +7703,11 @@ #else #endif } -#line 7697 "parse.c" +#line 7707 "parse.c" break; case YYSYMBOL_paren_args: /* paren_args */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7709,11 +7719,11 @@ #else #endif } -#line 7713 "parse.c" +#line 7723 "parse.c" break; case YYSYMBOL_opt_paren_args: /* opt_paren_args */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7725,11 +7735,11 @@ #else #endif } -#line 7729 "parse.c" +#line 7739 "parse.c" break; case YYSYMBOL_opt_call_args: /* opt_call_args */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7741,11 +7751,11 @@ #else #endif } -#line 7745 "parse.c" +#line 7755 "parse.c" break; case YYSYMBOL_call_args: /* call_args */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7757,11 +7767,11 @@ #else #endif } -#line 7761 "parse.c" +#line 7771 "parse.c" break; case YYSYMBOL_command_args: /* command_args */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7773,11 +7783,11 @@ #else #endif } -#line 7777 "parse.c" +#line 7787 "parse.c" break; case YYSYMBOL_block_arg: /* block_arg */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node_block_pass) == (NODE *)-1) { @@ -7789,11 +7799,11 @@ #else #endif } -#line 7793 "parse.c" +#line 7803 "parse.c" break; case YYSYMBOL_opt_block_arg: /* opt_block_arg */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node_block_pass) == (NODE *)-1) { @@ -7805,11 +7815,11 @@ #else #endif } -#line 7809 "parse.c" +#line 7819 "parse.c" break; case YYSYMBOL_args: /* args */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7821,11 +7831,11 @@ #else #endif } -#line 7825 "parse.c" +#line 7835 "parse.c" break; case YYSYMBOL_arg_splat: /* arg_splat */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7837,11 +7847,11 @@ #else #endif } -#line 7841 "parse.c" +#line 7851 "parse.c" break; case YYSYMBOL_mrhs_arg: /* mrhs_arg */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7853,11 +7863,11 @@ #else #endif } -#line 7857 "parse.c" +#line 7867 "parse.c" break; case YYSYMBOL_mrhs: /* mrhs */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7869,11 +7879,11 @@ #else #endif } -#line 7873 "parse.c" +#line 7883 "parse.c" break; case YYSYMBOL_primary: /* primary */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7885,11 +7895,11 @@ #else #endif } -#line 7889 "parse.c" +#line 7899 "parse.c" break; case YYSYMBOL_primary_value: /* primary_value */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7901,11 +7911,11 @@ #else #endif } -#line 7905 "parse.c" +#line 7915 "parse.c" break; case YYSYMBOL_if_tail: /* if_tail */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7917,11 +7927,11 @@ #else #endif } -#line 7921 "parse.c" +#line 7931 "parse.c" break; case YYSYMBOL_opt_else: /* opt_else */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7933,11 +7943,11 @@ #else #endif } -#line 7937 "parse.c" +#line 7947 "parse.c" break; case YYSYMBOL_for_var: /* for_var */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7949,11 +7959,11 @@ #else #endif } -#line 7953 "parse.c" +#line 7963 "parse.c" break; case YYSYMBOL_f_marg: /* f_marg */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7965,11 +7975,11 @@ #else #endif } -#line 7969 "parse.c" +#line 7979 "parse.c" break; case YYSYMBOL_f_marg_list: /* f_marg_list */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7981,11 +7991,11 @@ #else #endif } -#line 7985 "parse.c" +#line 7995 "parse.c" break; case YYSYMBOL_f_rest_marg: /* f_rest_marg */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -7997,11 +8007,11 @@ #else #endif } -#line 8001 "parse.c" +#line 8011 "parse.c" break; case YYSYMBOL_block_args_tail: /* block_args_tail */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node_args) == (NODE *)-1) { @@ -8013,11 +8023,11 @@ #else #endif } -#line 8017 "parse.c" +#line 8027 "parse.c" break; case YYSYMBOL_opt_block_args_tail: /* opt_block_args_tail */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node_args) == (NODE *)-1) { @@ -8029,11 +8039,11 @@ #else #endif } -#line 8033 "parse.c" +#line 8043 "parse.c" break; case YYSYMBOL_block_param: /* block_param */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node_args) == (NODE *)-1) { @@ -8045,11 +8055,11 @@ #else #endif } -#line 8049 "parse.c" +#line 8059 "parse.c" break; case YYSYMBOL_opt_block_param: /* opt_block_param */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node_args) == (NODE *)-1) { @@ -8061,11 +8071,11 @@ #else #endif } -#line 8065 "parse.c" +#line 8075 "parse.c" break; case YYSYMBOL_block_param_def: /* block_param_def */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node_args) == (NODE *)-1) { @@ -8077,11 +8087,11 @@ #else #endif } -#line 8081 "parse.c" +#line 8091 "parse.c" break; case YYSYMBOL_opt_bv_decl: /* opt_bv_decl */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8093,11 +8103,11 @@ #else #endif } -#line 8097 "parse.c" +#line 8107 "parse.c" break; case YYSYMBOL_bv_decls: /* bv_decls */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8109,11 +8119,11 @@ #else #endif } -#line 8113 "parse.c" +#line 8123 "parse.c" break; case YYSYMBOL_bvar: /* bvar */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8125,11 +8135,11 @@ #else #endif } -#line 8129 "parse.c" +#line 8139 "parse.c" break; case YYSYMBOL_numparam: /* numparam */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8141,11 +8151,11 @@ #else #endif } -#line 8145 "parse.c" +#line 8155 "parse.c" break; case YYSYMBOL_lambda: /* lambda */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8157,11 +8167,11 @@ #else #endif } -#line 8161 "parse.c" +#line 8171 "parse.c" break; case YYSYMBOL_f_larglist: /* f_larglist */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node_args) == (NODE *)-1) { @@ -8173,11 +8183,11 @@ #else #endif } -#line 8177 "parse.c" +#line 8187 "parse.c" break; case YYSYMBOL_lambda_body: /* lambda_body */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8189,11 +8199,11 @@ #else #endif } -#line 8193 "parse.c" +#line 8203 "parse.c" break; case YYSYMBOL_do_block: /* do_block */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8205,11 +8215,11 @@ #else #endif } -#line 8209 "parse.c" +#line 8219 "parse.c" break; case YYSYMBOL_block_call: /* block_call */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8221,11 +8231,11 @@ #else #endif } -#line 8225 "parse.c" +#line 8235 "parse.c" break; case YYSYMBOL_method_call: /* method_call */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8237,11 +8247,11 @@ #else #endif } -#line 8241 "parse.c" +#line 8251 "parse.c" break; case YYSYMBOL_brace_block: /* brace_block */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8253,11 +8263,11 @@ #else #endif } -#line 8257 "parse.c" +#line 8267 "parse.c" break; case YYSYMBOL_brace_body: /* brace_body */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8269,11 +8279,11 @@ #else #endif } -#line 8273 "parse.c" +#line 8283 "parse.c" break; case YYSYMBOL_do_body: /* do_body */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8285,11 +8295,11 @@ #else #endif } -#line 8289 "parse.c" +#line 8299 "parse.c" break; case YYSYMBOL_case_args: /* case_args */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8301,11 +8311,11 @@ #else #endif } -#line 8305 "parse.c" +#line 8315 "parse.c" break; case YYSYMBOL_case_body: /* case_body */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8317,11 +8327,11 @@ #else #endif } -#line 8321 "parse.c" +#line 8331 "parse.c" break; case YYSYMBOL_cases: /* cases */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8333,11 +8343,11 @@ #else #endif } -#line 8337 "parse.c" +#line 8347 "parse.c" break; case YYSYMBOL_p_case_body: /* p_case_body */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8349,11 +8359,11 @@ #else #endif } -#line 8353 "parse.c" +#line 8363 "parse.c" break; case YYSYMBOL_p_cases: /* p_cases */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8365,11 +8375,11 @@ #else #endif } -#line 8369 "parse.c" +#line 8379 "parse.c" break; case YYSYMBOL_p_top_expr: /* p_top_expr */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8381,11 +8391,11 @@ #else #endif } -#line 8385 "parse.c" +#line 8395 "parse.c" break; case YYSYMBOL_p_top_expr_body: /* p_top_expr_body */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8397,11 +8407,11 @@ #else #endif } -#line 8401 "parse.c" +#line 8411 "parse.c" break; case YYSYMBOL_p_expr: /* p_expr */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8413,11 +8423,11 @@ #else #endif } -#line 8417 "parse.c" +#line 8427 "parse.c" break; case YYSYMBOL_p_as: /* p_as */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8429,11 +8439,11 @@ #else #endif } -#line 8433 "parse.c" +#line 8443 "parse.c" break; case YYSYMBOL_p_alt: /* p_alt */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8445,11 +8455,11 @@ #else #endif } -#line 8449 "parse.c" +#line 8459 "parse.c" break; case YYSYMBOL_p_expr_basic: /* p_expr_basic */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8461,11 +8471,11 @@ #else #endif } -#line 8465 "parse.c" +#line 8475 "parse.c" break; case YYSYMBOL_p_args: /* p_args */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8477,11 +8487,11 @@ #else #endif } -#line 8481 "parse.c" +#line 8491 "parse.c" break; case YYSYMBOL_p_args_head: /* p_args_head */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8493,11 +8503,11 @@ #else #endif } -#line 8497 "parse.c" +#line 8507 "parse.c" break; case YYSYMBOL_p_args_tail: /* p_args_tail */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8509,11 +8519,11 @@ #else #endif } -#line 8513 "parse.c" +#line 8523 "parse.c" break; case YYSYMBOL_p_find: /* p_find */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8525,11 +8535,11 @@ #else #endif } -#line 8529 "parse.c" +#line 8539 "parse.c" break; case YYSYMBOL_p_rest: /* p_rest */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8541,11 +8551,11 @@ #else #endif } -#line 8545 "parse.c" +#line 8555 "parse.c" break; case YYSYMBOL_p_args_post: /* p_args_post */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8557,11 +8567,11 @@ #else #endif } -#line 8561 "parse.c" +#line 8571 "parse.c" break; case YYSYMBOL_p_arg: /* p_arg */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8573,11 +8583,11 @@ #else #endif } -#line 8577 "parse.c" +#line 8587 "parse.c" break; case YYSYMBOL_p_kwargs: /* p_kwargs */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8589,11 +8599,11 @@ #else #endif } -#line 8593 "parse.c" +#line 8603 "parse.c" break; case YYSYMBOL_p_kwarg: /* p_kwarg */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8605,11 +8615,11 @@ #else #endif } -#line 8609 "parse.c" +#line 8619 "parse.c" break; case YYSYMBOL_p_kw: /* p_kw */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8621,11 +8631,11 @@ #else #endif } -#line 8625 "parse.c" +#line 8635 "parse.c" break; case YYSYMBOL_p_value: /* p_value */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8637,11 +8647,11 @@ #else #endif } -#line 8641 "parse.c" +#line 8651 "parse.c" break; case YYSYMBOL_p_primitive: /* p_primitive */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8653,11 +8663,11 @@ #else #endif } -#line 8657 "parse.c" +#line 8667 "parse.c" break; case YYSYMBOL_p_variable: /* p_variable */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8669,11 +8679,11 @@ #else #endif } -#line 8673 "parse.c" +#line 8683 "parse.c" break; case YYSYMBOL_p_var_ref: /* p_var_ref */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8685,11 +8695,11 @@ #else #endif } -#line 8689 "parse.c" +#line 8699 "parse.c" break; case YYSYMBOL_p_expr_ref: /* p_expr_ref */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8701,11 +8711,11 @@ #else #endif } -#line 8705 "parse.c" +#line 8715 "parse.c" break; case YYSYMBOL_p_const: /* p_const */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8717,11 +8727,11 @@ #else #endif } -#line 8721 "parse.c" +#line 8731 "parse.c" break; case YYSYMBOL_opt_rescue: /* opt_rescue */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8733,11 +8743,11 @@ #else #endif } -#line 8737 "parse.c" +#line 8747 "parse.c" break; case YYSYMBOL_exc_list: /* exc_list */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8749,11 +8759,11 @@ #else #endif } -#line 8753 "parse.c" +#line 8763 "parse.c" break; case YYSYMBOL_exc_var: /* exc_var */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8765,11 +8775,11 @@ #else #endif } -#line 8769 "parse.c" +#line 8779 "parse.c" break; case YYSYMBOL_opt_ensure: /* opt_ensure */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8781,11 +8791,11 @@ #else #endif } -#line 8785 "parse.c" +#line 8795 "parse.c" break; case YYSYMBOL_literal: /* literal */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8797,11 +8807,11 @@ #else #endif } -#line 8801 "parse.c" +#line 8811 "parse.c" break; case YYSYMBOL_strings: /* strings */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8813,11 +8823,11 @@ #else #endif } -#line 8817 "parse.c" +#line 8827 "parse.c" break; case YYSYMBOL_string: /* string */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8829,11 +8839,11 @@ #else #endif } -#line 8833 "parse.c" +#line 8843 "parse.c" break; case YYSYMBOL_string1: /* string1 */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8845,11 +8855,11 @@ #else #endif } -#line 8849 "parse.c" +#line 8859 "parse.c" break; case YYSYMBOL_xstring: /* xstring */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8861,11 +8871,11 @@ #else #endif } -#line 8865 "parse.c" +#line 8875 "parse.c" break; case YYSYMBOL_regexp: /* regexp */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8877,11 +8887,11 @@ #else #endif } -#line 8881 "parse.c" +#line 8891 "parse.c" break; case YYSYMBOL_words: /* words */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8893,11 +8903,11 @@ #else #endif } -#line 8897 "parse.c" +#line 8907 "parse.c" break; case YYSYMBOL_word_list: /* word_list */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8909,11 +8919,11 @@ #else #endif } -#line 8913 "parse.c" +#line 8923 "parse.c" break; case YYSYMBOL_word: /* word */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8925,11 +8935,11 @@ #else #endif } -#line 8929 "parse.c" +#line 8939 "parse.c" break; case YYSYMBOL_symbols: /* symbols */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8941,11 +8951,11 @@ #else #endif } -#line 8945 "parse.c" +#line 8955 "parse.c" break; case YYSYMBOL_symbol_list: /* symbol_list */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8957,11 +8967,11 @@ #else #endif } -#line 8961 "parse.c" +#line 8971 "parse.c" break; case YYSYMBOL_qwords: /* qwords */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8973,11 +8983,11 @@ #else #endif } -#line 8977 "parse.c" +#line 8987 "parse.c" break; case YYSYMBOL_qsymbols: /* qsymbols */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -8989,11 +8999,11 @@ #else #endif } -#line 8993 "parse.c" +#line 9003 "parse.c" break; case YYSYMBOL_qword_list: /* qword_list */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -9005,11 +9015,11 @@ #else #endif } -#line 9009 "parse.c" +#line 9019 "parse.c" break; case YYSYMBOL_qsym_list: /* qsym_list */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -9021,11 +9031,11 @@ #else #endif } -#line 9025 "parse.c" +#line 9035 "parse.c" break; case YYSYMBOL_string_contents: /* string_contents */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -9037,11 +9047,11 @@ #else #endif } -#line 9041 "parse.c" +#line 9051 "parse.c" break; case YYSYMBOL_xstring_contents: /* xstring_contents */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -9053,11 +9063,11 @@ #else #endif } -#line 9057 "parse.c" +#line 9067 "parse.c" break; case YYSYMBOL_regexp_contents: /* regexp_contents */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -9069,11 +9079,11 @@ #else #endif } -#line 9073 "parse.c" +#line 9083 "parse.c" break; case YYSYMBOL_string_content: /* string_content */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -9085,11 +9095,11 @@ #else #endif } -#line 9089 "parse.c" +#line 9099 "parse.c" break; case YYSYMBOL_string_dvar: /* string_dvar */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -9101,11 +9111,11 @@ #else #endif } -#line 9105 "parse.c" +#line 9115 "parse.c" break; case YYSYMBOL_symbol: /* symbol */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -9117,11 +9127,11 @@ #else #endif } -#line 9121 "parse.c" +#line 9131 "parse.c" break; case YYSYMBOL_ssym: /* ssym */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -9133,11 +9143,11 @@ #else #endif } -#line 9137 "parse.c" +#line 9147 "parse.c" break; case YYSYMBOL_dsym: /* dsym */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -9149,11 +9159,11 @@ #else #endif } -#line 9153 "parse.c" +#line 9163 "parse.c" break; case YYSYMBOL_numeric: /* numeric */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -9165,11 +9175,11 @@ #else #endif } -#line 9169 "parse.c" +#line 9179 "parse.c" break; case YYSYMBOL_simple_numeric: /* simple_numeric */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -9181,11 +9191,11 @@ #else #endif } -#line 9185 "parse.c" +#line 9195 "parse.c" break; case YYSYMBOL_var_ref: /* var_ref */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -9197,11 +9207,11 @@ #else #endif } -#line 9201 "parse.c" +#line 9211 "parse.c" break; case YYSYMBOL_var_lhs: /* var_lhs */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -9213,11 +9223,11 @@ #else #endif } -#line 9217 "parse.c" +#line 9227 "parse.c" break; case YYSYMBOL_backref: /* backref */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -9229,11 +9239,11 @@ #else #endif } -#line 9233 "parse.c" +#line 9243 "parse.c" break; case YYSYMBOL_superclass: /* superclass */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -9245,11 +9255,11 @@ #else #endif } -#line 9249 "parse.c" +#line 9259 "parse.c" break; case YYSYMBOL_f_opt_paren_args: /* f_opt_paren_args */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node_args) == (NODE *)-1) { @@ -9261,11 +9271,11 @@ #else #endif } -#line 9265 "parse.c" +#line 9275 "parse.c" break; case YYSYMBOL_f_paren_args: /* f_paren_args */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node_args) == (NODE *)-1) { @@ -9277,11 +9287,11 @@ #else #endif } -#line 9281 "parse.c" +#line 9291 "parse.c" break; case YYSYMBOL_f_arglist: /* f_arglist */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node_args) == (NODE *)-1) { @@ -9293,11 +9303,11 @@ #else #endif } -#line 9297 "parse.c" +#line 9307 "parse.c" break; case YYSYMBOL_args_tail: /* args_tail */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node_args) == (NODE *)-1) { @@ -9309,11 +9319,11 @@ #else #endif } -#line 9313 "parse.c" +#line 9323 "parse.c" break; case YYSYMBOL_opt_args_tail: /* opt_args_tail */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node_args) == (NODE *)-1) { @@ -9325,11 +9335,11 @@ #else #endif } -#line 9329 "parse.c" +#line 9339 "parse.c" break; case YYSYMBOL_f_args: /* f_args */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node_args) == (NODE *)-1) { @@ -9341,11 +9351,11 @@ #else #endif } -#line 9345 "parse.c" +#line 9355 "parse.c" break; case YYSYMBOL_f_arg_item: /* f_arg_item */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node_args_aux) == (NODE *)-1) { @@ -9357,11 +9367,11 @@ #else #endif } -#line 9361 "parse.c" +#line 9371 "parse.c" break; case YYSYMBOL_f_arg: /* f_arg */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node_args_aux) == (NODE *)-1) { @@ -9373,11 +9383,11 @@ #else #endif } -#line 9377 "parse.c" +#line 9387 "parse.c" break; case YYSYMBOL_f_kw: /* f_kw */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node_kw_arg) == (NODE *)-1) { @@ -9389,11 +9399,11 @@ #else #endif } -#line 9393 "parse.c" +#line 9403 "parse.c" break; case YYSYMBOL_f_block_kw: /* f_block_kw */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node_kw_arg) == (NODE *)-1) { @@ -9405,11 +9415,11 @@ #else #endif } -#line 9409 "parse.c" +#line 9419 "parse.c" break; case YYSYMBOL_f_block_kwarg: /* f_block_kwarg */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node_kw_arg) == (NODE *)-1) { @@ -9421,11 +9431,11 @@ #else #endif } -#line 9425 "parse.c" +#line 9435 "parse.c" break; case YYSYMBOL_f_kwarg: /* f_kwarg */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node_kw_arg) == (NODE *)-1) { @@ -9437,11 +9447,11 @@ #else #endif } -#line 9441 "parse.c" +#line 9451 "parse.c" break; case YYSYMBOL_f_opt: /* f_opt */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node_opt_arg) == (NODE *)-1) { @@ -9453,11 +9463,11 @@ #else #endif } -#line 9457 "parse.c" +#line 9467 "parse.c" break; case YYSYMBOL_f_block_opt: /* f_block_opt */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node_opt_arg) == (NODE *)-1) { @@ -9469,11 +9479,11 @@ #else #endif } -#line 9473 "parse.c" +#line 9483 "parse.c" break; case YYSYMBOL_f_block_optarg: /* f_block_optarg */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node_opt_arg) == (NODE *)-1) { @@ -9485,11 +9495,11 @@ #else #endif } -#line 9489 "parse.c" +#line 9499 "parse.c" break; case YYSYMBOL_f_optarg: /* f_optarg */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node_opt_arg) == (NODE *)-1) { @@ -9501,11 +9511,11 @@ #else #endif } -#line 9505 "parse.c" +#line 9515 "parse.c" break; case YYSYMBOL_singleton: /* singleton */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -9517,11 +9527,11 @@ #else #endif } -#line 9521 "parse.c" +#line 9531 "parse.c" break; case YYSYMBOL_assoc_list: /* assoc_list */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -9533,11 +9543,11 @@ #else #endif } -#line 9537 "parse.c" +#line 9547 "parse.c" break; case YYSYMBOL_assocs: /* assocs */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -9549,11 +9559,11 @@ #else #endif } -#line 9553 "parse.c" +#line 9563 "parse.c" break; case YYSYMBOL_assoc: /* assoc */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -9565,11 +9575,11 @@ #else #endif } -#line 9569 "parse.c" +#line 9579 "parse.c" break; case YYSYMBOL_none: /* none */ -#line 1915 "parse.y" +#line 1925 "parse.y" { #ifndef RIPPER if ((NODE *)((*yyvaluep).node) == (NODE *)-1) { @@ -9581,7 +9591,7 @@ #else #endif } -#line 9585 "parse.c" +#line 9595 "parse.c" break; default: @@ -10074,12 +10084,12 @@ /* User initialization code. */ -#line 1958 "parse.y" +#line 1968 "parse.y" { RUBY_SET_YYLLOC_OF_NONE(yylloc); } -#line 10083 "parse.c" +#line 10093 "parse.c" yylsp[0] = yylloc; goto yysetstate; @@ -10290,18 +10300,18 @@ switch (yyn) { case 2: /* $@1: %empty */ -#line 2193 "parse.y" +#line 2203 "parse.y" { SET_LEX_STATE(EXPR_BEG); local_push(p, ifndef_ripper(1)+0); /* jumps are possible in the top-level loop. */ if (!ifndef_ripper(p->do_loop) + 0) init_block_exit(p); } -#line 10301 "parse.c" +#line 10311 "parse.c" break; case 3: /* program: $@1 top_compstmt */ -#line 2200 "parse.y" +#line 2210 "parse.y" { /*%%%*/ if ((yyvsp[0].node) && !compile_for_eval) { @@ -10321,75 +10331,75 @@ /*% ripper[final]: program!($2) %*/ local_pop(p); } -#line 10325 "parse.c" +#line 10335 "parse.c" break; case 4: /* top_compstmt: top_stmts opt_terms */ -#line 2222 "parse.y" +#line 2232 "parse.y" { (yyval.node) = void_stmts(p, (yyvsp[-1].node)); } -#line 10333 "parse.c" +#line 10343 "parse.c" break; case 5: /* top_stmts: none */ -#line 2228 "parse.y" +#line 2238 "parse.y" { /*%%%*/ (yyval.node) = NEW_BEGIN(0, &(yyloc)); /*% %*/ /*% ripper: stmts_add!(stmts_new!, void_stmt!) %*/ } -#line 10344 "parse.c" +#line 10354 "parse.c" break; case 6: /* top_stmts: top_stmt */ -#line 2235 "parse.y" +#line 2245 "parse.y" { /*%%%*/ (yyval.node) = newline_node((yyvsp[0].node)); /*% %*/ /*% ripper: stmts_add!(stmts_new!, $1) %*/ } -#line 10355 "parse.c" +#line 10365 "parse.c" break; case 7: /* top_stmts: top_stmts terms top_stmt */ -#line 2242 "parse.y" +#line 2252 "parse.y" { /*%%%*/ (yyval.node) = block_append(p, (yyvsp[-2].node), newline_node((yyvsp[0].node))); /*% %*/ /*% ripper: stmts_add!($1, $3) %*/ } -#line 10366 "parse.c" +#line 10376 "parse.c" break; case 8: /* top_stmt: stmt */ -#line 2251 "parse.y" +#line 2261 "parse.y" { clear_block_exit(p, true); (yyval.node) = (yyvsp[0].node); } -#line 10375 "parse.c" +#line 10385 "parse.c" break; case 9: /* top_stmt: "`BEGIN'" begin_block */ -#line 2256 "parse.y" +#line 2266 "parse.y" { (yyval.node) = (yyvsp[0].node); } -#line 10383 "parse.c" +#line 10393 "parse.c" break; case 10: /* block_open: '{' */ -#line 2261 "parse.y" +#line 2271 "parse.y" {(yyval.node_exits) = init_block_exit(p);} -#line 10389 "parse.c" +#line 10399 "parse.c" break; case 11: /* begin_block: block_open top_compstmt '}' */ -#line 2264 "parse.y" +#line 2274 "parse.y" { restore_block_exit(p, (yyvsp[-2].node_exits)); /*%%%*/ @@ -10399,166 +10409,166 @@ /*% %*/ /*% ripper: BEGIN!($2) %*/ } -#line 10403 "parse.c" +#line 10413 "parse.c" break; case 12: /* $@2: %empty */ -#line 2279 "parse.y" +#line 2289 "parse.y" { if (!(yyvsp[-1].node)) yyerror1(&(yylsp[0]), "else without rescue is useless"); next_rescue_context(&p->ctxt, &(yyvsp[-2].ctxt), after_else); } -#line 10412 "parse.c" +#line 10422 "parse.c" break; case 13: /* $@3: %empty */ -#line 2284 "parse.y" +#line 2294 "parse.y" { next_rescue_context(&p->ctxt, &(yyvsp[-4].ctxt), after_ensure); } -#line 10420 "parse.c" +#line 10430 "parse.c" break; case 14: /* bodystmt: compstmt lex_ctxt opt_rescue k_else $@2 compstmt $@3 opt_ensure */ -#line 2288 "parse.y" +#line 2298 "parse.y" { /*%%%*/ (yyval.node) = new_bodystmt(p, (yyvsp[-7].node), (yyvsp[-5].node), (yyvsp[-2].node), (yyvsp[0].node), &(yyloc)); /*% %*/ /*% ripper: bodystmt!($body, $opt_rescue, $elsebody, $opt_ensure) %*/ } -#line 10431 "parse.c" +#line 10441 "parse.c" break; case 15: /* $@4: %empty */ -#line 2297 "parse.y" +#line 2307 "parse.y" { next_rescue_context(&p->ctxt, &(yyvsp[-1].ctxt), after_ensure); } -#line 10439 "parse.c" +#line 10449 "parse.c" break; case 16: /* bodystmt: compstmt lex_ctxt opt_rescue $@4 opt_ensure */ -#line 2301 "parse.y" +#line 2311 "parse.y" { /*%%%*/ (yyval.node) = new_bodystmt(p, (yyvsp[-4].node), (yyvsp[-2].node), 0, (yyvsp[0].node), &(yyloc)); /*% %*/ /*% ripper: bodystmt!($body, $opt_rescue, Qnil, $opt_ensure) %*/ } -#line 10450 "parse.c" +#line 10460 "parse.c" break; case 17: /* compstmt: stmts opt_terms */ -#line 2310 "parse.y" +#line 2320 "parse.y" { (yyval.node) = void_stmts(p, (yyvsp[-1].node)); } -#line 10458 "parse.c" +#line 10468 "parse.c" break; case 18: /* stmts: none */ -#line 2316 "parse.y" +#line 2326 "parse.y" { /*%%%*/ (yyval.node) = NEW_BEGIN(0, &(yyloc)); /*% %*/ /*% ripper: stmts_add!(stmts_new!, void_stmt!) %*/ } -#line 10469 "parse.c" +#line 10479 "parse.c" break; case 19: /* stmts: stmt_or_begin */ -#line 2323 "parse.y" +#line 2333 "parse.y" { /*%%%*/ (yyval.node) = newline_node((yyvsp[0].node)); /*% %*/ /*% ripper: stmts_add!(stmts_new!, $1) %*/ } -#line 10480 "parse.c" +#line 10490 "parse.c" break; case 20: /* stmts: stmts terms stmt_or_begin */ -#line 2330 "parse.y" +#line 2340 "parse.y" { /*%%%*/ (yyval.node) = block_append(p, (yyvsp[-2].node), newline_node((yyvsp[0].node))); /*% %*/ /*% ripper: stmts_add!($1, $3) %*/ } -#line 10491 "parse.c" +#line 10501 "parse.c" break; case 21: /* stmt_or_begin: stmt */ -#line 2339 "parse.y" +#line 2349 "parse.y" { (yyval.node) = (yyvsp[0].node); } -#line 10499 "parse.c" +#line 10509 "parse.c" break; case 22: /* $@5: %empty */ -#line 2343 "parse.y" +#line 2353 "parse.y" { yyerror1(&(yylsp[0]), "BEGIN is permitted only at toplevel"); } -#line 10507 "parse.c" +#line 10517 "parse.c" break; case 23: /* stmt_or_begin: "`BEGIN'" $@5 begin_block */ -#line 2347 "parse.y" +#line 2357 "parse.y" { (yyval.node) = (yyvsp[0].node); } -#line 10515 "parse.c" +#line 10525 "parse.c" break; case 24: /* allow_exits: %empty */ -#line 2352 "parse.y" +#line 2362 "parse.y" {(yyval.node_exits) = allow_block_exit(p);} -#line 10521 "parse.c" +#line 10531 "parse.c" break; case 25: /* k_END: "`END'" lex_ctxt */ -#line 2355 "parse.y" +#line 2365 "parse.y" { (yyval.ctxt) = (yyvsp[0].ctxt); p->ctxt.in_rescue = before_rescue; } -#line 10530 "parse.c" +#line 10540 "parse.c" break; case 26: /* $@6: %empty */ -#line 2360 "parse.y" +#line 2370 "parse.y" {SET_LEX_STATE(EXPR_FNAME|EXPR_FITEM);} -#line 10536 "parse.c" +#line 10546 "parse.c" break; case 27: /* stmt: "`alias'" fitem $@6 fitem */ -#line 2361 "parse.y" +#line 2371 "parse.y" { /*%%%*/ (yyval.node) = NEW_ALIAS((yyvsp[-2].node), (yyvsp[0].node), &(yyloc)); /*% %*/ /*% ripper: alias!($2, $4) %*/ } -#line 10547 "parse.c" +#line 10557 "parse.c" break; case 28: /* stmt: "`alias'" "global variable" "global variable" */ -#line 2368 "parse.y" +#line 2378 "parse.y" { /*%%%*/ (yyval.node) = NEW_VALIAS((yyvsp[-1].id), (yyvsp[0].id), &(yyloc)); /*% %*/ /*% ripper: var_alias!($2, $3) %*/ } -#line 10558 "parse.c" +#line 10568 "parse.c" break; case 29: /* stmt: "`alias'" "global variable" "back reference" */ -#line 2375 "parse.y" +#line 2385 "parse.y" { /*%%%*/ char buf[2]; @@ -10568,11 +10578,11 @@ /*% %*/ /*% ripper: var_alias!($2, $3) %*/ } -#line 10572 "parse.c" +#line 10582 "parse.c" break; case 30: /* stmt: "`alias'" "global variable" "numbered reference" */ -#line 2385 "parse.y" +#line 2395 "parse.y" { static const char mesg[] = "can't make alias for the number variables"; /*%%%*/ @@ -10581,22 +10591,22 @@ /*% %*/ /*% ripper[error]: alias_error!(ERR_MESG(), $3) %*/ } -#line 10585 "parse.c" +#line 10595 "parse.c" break; case 31: /* stmt: "`undef'" undef_list */ -#line 2394 "parse.y" +#line 2404 "parse.y" { /*%%%*/ (yyval.node) = (yyvsp[0].node); /*% %*/ /*% ripper: undef!($2) %*/ } -#line 10596 "parse.c" +#line 10606 "parse.c" break; case 32: /* stmt: stmt "`if' modifier" expr_value */ -#line 2401 "parse.y" +#line 2411 "parse.y" { /*%%%*/ (yyval.node) = new_if(p, (yyvsp[0].node), remove_begin((yyvsp[-2].node)), 0, &(yyloc)); @@ -10604,11 +10614,11 @@ /*% %*/ /*% ripper: if_mod!($3, $1) %*/ } -#line 10608 "parse.c" +#line 10618 "parse.c" break; case 33: /* stmt: stmt "`unless' modifier" expr_value */ -#line 2409 "parse.y" +#line 2419 "parse.y" { /*%%%*/ (yyval.node) = new_unless(p, (yyvsp[0].node), remove_begin((yyvsp[-2].node)), 0, &(yyloc)); @@ -10616,11 +10626,11 @@ /*% %*/ /*% ripper: unless_mod!($3, $1) %*/ } -#line 10620 "parse.c" +#line 10630 "parse.c" break; case 34: /* stmt: stmt "`while' modifier" expr_value */ -#line 2417 "parse.y" +#line 2427 "parse.y" { clear_block_exit(p, false); /*%%%*/ @@ -10633,11 +10643,11 @@ /*% %*/ /*% ripper: while_mod!($3, $1) %*/ } -#line 10637 "parse.c" +#line 10647 "parse.c" break; case 35: /* stmt: stmt "`until' modifier" expr_value */ -#line 2430 "parse.y" +#line 2440 "parse.y" { clear_block_exit(p, false); /*%%%*/ @@ -10650,11 +10660,11 @@ /*% %*/ /*% ripper: until_mod!($3, $1) %*/ } -#line 10654 "parse.c" +#line 10664 "parse.c" break; case 36: /* stmt: stmt "`rescue' modifier" after_rescue stmt */ -#line 2443 "parse.y" +#line 2453 "parse.y" { p->ctxt.in_rescue = (yyvsp[-1].ctxt).in_rescue; /*%%%*/ @@ -10665,11 +10675,11 @@ /*% %*/ /*% ripper: rescue_mod!($1, $4) %*/ } -#line 10669 "parse.c" +#line 10679 "parse.c" break; case 37: /* stmt: k_END allow_exits '{' compstmt '}' */ -#line 2454 "parse.y" +#line 2464 "parse.y" { if (p->ctxt.in_def) { rb_warn0("END in method; use at_exit"); @@ -10684,11 +10694,11 @@ /*% %*/ /*% ripper: END!($compstmt) %*/ } -#line 10688 "parse.c" +#line 10698 "parse.c" break; case 39: /* stmt: mlhs '=' lex_ctxt command_call */ -#line 2470 "parse.y" +#line 2480 "parse.y" { /*%%%*/ value_expr((yyvsp[0].node)); @@ -10696,22 +10706,22 @@ /*% %*/ /*% ripper: massign!($1, $4) %*/ } -#line 10700 "parse.c" +#line 10710 "parse.c" break; case 40: /* stmt: lhs '=' lex_ctxt mrhs */ -#line 2478 "parse.y" +#line 2488 "parse.y" { /*%%%*/ (yyval.node) = node_assign(p, (yyvsp[-3].node), (yyvsp[0].node), (yyvsp[-1].ctxt), &(yyloc)); /*% %*/ /*% ripper: assign!($1, $4) %*/ } -#line 10711 "parse.c" +#line 10721 "parse.c" break; case 41: /* stmt: mlhs '=' lex_ctxt mrhs_arg "`rescue' modifier" after_rescue stmt */ -#line 2486 "parse.y" +#line 2496 "parse.y" { p->ctxt.in_rescue = (yyvsp[-4].ctxt).in_rescue; /*%%%*/ @@ -10723,55 +10733,55 @@ /*% %*/ /*% ripper: massign!($1, rescue_mod!($4, $7)) %*/ } -#line 10727 "parse.c" +#line 10737 "parse.c" break; case 42: /* stmt: mlhs '=' lex_ctxt mrhs_arg */ -#line 2498 "parse.y" +#line 2508 "parse.y" { /*%%%*/ (yyval.node) = node_assign(p, (NODE *)(yyvsp[-3].node_masgn), (yyvsp[0].node), (yyvsp[-1].ctxt), &(yyloc)); /*% %*/ /*% ripper: massign!($1, $4) %*/ } -#line 10738 "parse.c" +#line 10748 "parse.c" break; case 44: /* stmt: error */ -#line 2506 "parse.y" +#line 2516 "parse.y" { (void)yynerrs; /*%%%*/ (yyval.node) = NEW_ERROR(&(yyloc)); /*% %*/ } -#line 10749 "parse.c" +#line 10759 "parse.c" break; case 45: /* command_asgn: lhs '=' lex_ctxt command_rhs */ -#line 2515 "parse.y" +#line 2525 "parse.y" { /*%%%*/ (yyval.node) = node_assign(p, (yyvsp[-3].node), (yyvsp[0].node), (yyvsp[-1].ctxt), &(yyloc)); /*% %*/ /*% ripper: assign!($1, $4) %*/ } -#line 10760 "parse.c" +#line 10770 "parse.c" break; case 46: /* command_asgn: var_lhs "operator-assignment" lex_ctxt command_rhs */ -#line 2522 "parse.y" +#line 2532 "parse.y" { /*%%%*/ (yyval.node) = new_op_assign(p, (yyvsp[-3].node), (yyvsp[-2].id), (yyvsp[0].node), (yyvsp[-1].ctxt), &(yyloc)); /*% %*/ /*% ripper: opassign!($1, $2, $4) %*/ } -#line 10771 "parse.c" +#line 10781 "parse.c" break; case 47: /* command_asgn: primary_value '[' opt_call_args rbracket "operator-assignment" lex_ctxt command_rhs */ -#line 2529 "parse.y" +#line 2539 "parse.y" { /*%%%*/ (yyval.node) = new_ary_op_assign(p, (yyvsp[-6].node), (yyvsp[-4].node), (yyvsp[-2].id), (yyvsp[0].node), &(yylsp[-4]), &(yyloc)); @@ -10779,33 +10789,33 @@ /*% ripper: opassign!(aref_field!($1, $3), $5, $7) %*/ } -#line 10783 "parse.c" +#line 10793 "parse.c" break; case 48: /* command_asgn: primary_value call_op "local variable or method" "operator-assignment" lex_ctxt command_rhs */ -#line 2537 "parse.y" +#line 2547 "parse.y" { /*%%%*/ (yyval.node) = new_attr_op_assign(p, (yyvsp[-5].node), (yyvsp[-4].id), (yyvsp[-3].id), (yyvsp[-2].id), (yyvsp[0].node), &(yyloc)); /*% %*/ /*% ripper: opassign!(field!($1, $2, $3), $4, $6) %*/ } -#line 10794 "parse.c" +#line 10804 "parse.c" break; case 49: /* command_asgn: primary_value call_op "constant" "operator-assignment" lex_ctxt command_rhs */ -#line 2544 "parse.y" +#line 2554 "parse.y" { /*%%%*/ (yyval.node) = new_attr_op_assign(p, (yyvsp[-5].node), (yyvsp[-4].id), (yyvsp[-3].id), (yyvsp[-2].id), (yyvsp[0].node), &(yyloc)); /*% %*/ /*% ripper: opassign!(field!($1, $2, $3), $4, $6) %*/ } -#line 10805 "parse.c" +#line 10815 "parse.c" break; case 50: /* command_asgn: primary_value "::" "constant" "operator-assignment" lex_ctxt command_rhs */ -#line 2551 "parse.y" +#line 2561 "parse.y" { /*%%%*/ YYLTYPE loc = code_loc_gen(&(yylsp[-5]), &(yylsp[-3])); @@ -10813,22 +10823,22 @@ /*% %*/ /*% ripper: opassign!(const_path_field!($1, $3), $4, $6) %*/ } -#line 10817 "parse.c" +#line 10827 "parse.c" break; case 51: /* command_asgn: primary_value "::" "local variable or method" "operator-assignment" lex_ctxt command_rhs */ -#line 2559 "parse.y" +#line 2569 "parse.y" { /*%%%*/ (yyval.node) = new_attr_op_assign(p, (yyvsp[-5].node), ID2VAL(idCOLON2), (yyvsp[-3].id), (yyvsp[-2].id), (yyvsp[0].node), &(yyloc)); /*% %*/ /*% ripper: opassign!(field!($1, $2, $3), $4, $6) %*/ } -#line 10828 "parse.c" +#line 10838 "parse.c" break; case 52: /* command_asgn: defn_head f_opt_paren_args '=' endless_command */ -#line 2566 "parse.y" +#line 2576 "parse.y" { endless_method_name(p, get_id((yyvsp[-3].node_def_temp)->nd_mid), &(yylsp[-3])); restore_defun(p, (yyvsp[-3].node_def_temp)); @@ -10841,11 +10851,11 @@ /*% ripper: def!($head->nd_mid, $args, $bodystmt) %*/ local_pop(p); } -#line 10845 "parse.c" +#line 10855 "parse.c" break; case 53: /* command_asgn: defs_head f_opt_paren_args '=' endless_command */ -#line 2579 "parse.y" +#line 2589 "parse.y" { endless_method_name(p, get_id((yyvsp[-3].node_def_temp)->nd_mid), &(yylsp[-3])); restore_defun(p, (yyvsp[-3].node_def_temp)); @@ -10858,11 +10868,11 @@ /*% ripper: defs!($head->nd_recv, $head->dot_or_colon, $head->nd_mid, $args, $bodystmt) %*/ local_pop(p); } -#line 10862 "parse.c" +#line 10872 "parse.c" break; case 54: /* command_asgn: backref "operator-assignment" lex_ctxt command_rhs */ -#line 2592 "parse.y" +#line 2602 "parse.y" { /*%%%*/ rb_backref_error(p, (yyvsp[-3].node)); @@ -10870,11 +10880,11 @@ /*% %*/ /*% ripper[error]: backref_error(p, RNODE($1), assign!(var_field(p, $1), $4)) %*/ } -#line 10874 "parse.c" +#line 10884 "parse.c" break; case 56: /* endless_command: endless_command "`rescue' modifier" after_rescue arg */ -#line 2603 "parse.y" +#line 2613 "parse.y" { p->ctxt.in_rescue = (yyvsp[-1].ctxt).in_rescue; /*%%%*/ @@ -10882,28 +10892,28 @@ /*% %*/ /*% ripper: rescue_mod!($1, $4) %*/ } -#line 10886 "parse.c" +#line 10896 "parse.c" break; case 57: /* endless_command: "`not'" opt_nl endless_command */ -#line 2611 "parse.y" +#line 2621 "parse.y" { (yyval.node) = call_uni_op(p, method_cond(p, (yyvsp[0].node), &(yylsp[0])), METHOD_NOT, &(yylsp[-2]), &(yyloc)); } -#line 10894 "parse.c" +#line 10904 "parse.c" break; case 58: /* command_rhs: command_call */ -#line 2617 "parse.y" +#line 2627 "parse.y" { value_expr((yyvsp[0].node)); (yyval.node) = (yyvsp[0].node); } -#line 10903 "parse.c" +#line 10913 "parse.c" break; case 59: /* command_rhs: command_call "`rescue' modifier" after_rescue stmt */ -#line 2622 "parse.y" +#line 2632 "parse.y" { p->ctxt.in_rescue = (yyvsp[-1].ctxt).in_rescue; /*%%%*/ @@ -10913,51 +10923,51 @@ /*% %*/ /*% ripper: rescue_mod!($1, $4) %*/ } -#line 10917 "parse.c" +#line 10927 "parse.c" break; case 62: /* expr: expr "`and'" expr */ -#line 2636 "parse.y" +#line 2646 "parse.y" { (yyval.node) = logop(p, idAND, (yyvsp[-2].node), (yyvsp[0].node), &(yylsp[-1]), &(yyloc)); } -#line 10925 "parse.c" +#line 10935 "parse.c" break; case 63: /* expr: expr "`or'" expr */ -#line 2640 "parse.y" +#line 2650 "parse.y" { (yyval.node) = logop(p, idOR, (yyvsp[-2].node), (yyvsp[0].node), &(yylsp[-1]), &(yyloc)); } -#line 10933 "parse.c" +#line 10943 "parse.c" break; case 64: /* expr: "`not'" opt_nl expr */ -#line 2644 "parse.y" +#line 2654 "parse.y" { (yyval.node) = call_uni_op(p, method_cond(p, (yyvsp[0].node), &(yylsp[0])), METHOD_NOT, &(yylsp[-2]), &(yyloc)); } -#line 10941 "parse.c" +#line 10951 "parse.c" break; case 65: /* expr: '!' command_call */ -#line 2648 "parse.y" +#line 2658 "parse.y" { (yyval.node) = call_uni_op(p, method_cond(p, (yyvsp[0].node), &(yylsp[0])), '!', &(yylsp[-1]), &(yyloc)); } -#line 10949 "parse.c" +#line 10959 "parse.c" break; case 66: /* $@7: %empty */ -#line 2652 "parse.y" +#line 2662 "parse.y" { value_expr((yyvsp[-1].node)); } -#line 10957 "parse.c" +#line 10967 "parse.c" break; case 67: /* expr: arg "=>" $@7 p_in_kwarg p_pvtbl p_pktbl p_top_expr_body */ -#line 2657 "parse.y" +#line 2667 "parse.y" { pop_pktbl(p, (yyvsp[-1].tbl)); pop_pvtbl(p, (yyvsp[-2].tbl)); @@ -10967,19 +10977,19 @@ /*% %*/ /*% ripper: case!($arg, in!($body, Qnil, Qnil)) %*/ } -#line 10971 "parse.c" +#line 10981 "parse.c" break; case 68: /* $@8: %empty */ -#line 2667 "parse.y" +#line 2677 "parse.y" { value_expr((yyvsp[-1].node)); } -#line 10979 "parse.c" +#line 10989 "parse.c" break; case 69: /* expr: arg "`in'" $@8 p_in_kwarg p_pvtbl p_pktbl p_top_expr_body */ -#line 2672 "parse.y" +#line 2682 "parse.y" { pop_pktbl(p, (yyvsp[-1].tbl)); pop_pvtbl(p, (yyvsp[-2].tbl)); @@ -10989,11 +10999,11 @@ /*% %*/ /*% ripper: case!($arg, in!($body, Qnil, Qnil)) %*/ } -#line 10993 "parse.c" +#line 11003 "parse.c" break; case 71: /* def_name: fname */ -#line 2685 "parse.y" +#line 2695 "parse.y" { ID fname = get_id((yyvsp[0].id)); numparam_name(p, fname); @@ -11003,11 +11013,11 @@ p->ctxt.in_rescue = before_rescue; (yyval.id) = (yyvsp[0].id); } -#line 11007 "parse.c" +#line 11017 "parse.c" break; case 72: /* defn_head: k_def def_name */ -#line 2697 "parse.y" +#line 2707 "parse.y" { (yyval.node_def_temp) = def_head_save(p, (yyvsp[-1].node_def_temp)); (yyval.node_def_temp)->nd_mid = (yyvsp[0].id); @@ -11017,20 +11027,20 @@ add_mark_object(p, $def_name); %*/ } -#line 11021 "parse.c" +#line 11031 "parse.c" break; case 73: /* $@9: %empty */ -#line 2709 "parse.y" +#line 2719 "parse.y" { SET_LEX_STATE(EXPR_FNAME); p->ctxt.in_argdef = 1; } -#line 11030 "parse.c" +#line 11040 "parse.c" break; case 74: /* defs_head: k_def singleton dot_or_colon $@9 def_name */ -#line 2714 "parse.y" +#line 2724 "parse.y" { SET_LEX_STATE(EXPR_ENDFN|EXPR_LABEL); /* force for args */ (yyval.node_def_temp) = def_head_save(p, (yyvsp[-4].node_def_temp)); @@ -11043,83 +11053,83 @@ $$->dot_or_colon = add_mark_object(p, $dot_or_colon); %*/ } -#line 11047 "parse.c" +#line 11057 "parse.c" break; case 75: /* expr_value: expr */ -#line 2729 "parse.y" +#line 2739 "parse.y" { value_expr((yyvsp[0].node)); (yyval.node) = (yyvsp[0].node); } -#line 11056 "parse.c" +#line 11066 "parse.c" break; case 76: /* expr_value: error */ -#line 2734 "parse.y" +#line 2744 "parse.y" { /*%%%*/ (yyval.node) = NEW_ERROR(&(yyloc)); /*% %*/ } -#line 11066 "parse.c" +#line 11076 "parse.c" break; case 77: /* $@10: %empty */ -#line 2741 "parse.y" +#line 2751 "parse.y" {COND_PUSH(1);} -#line 11072 "parse.c" +#line 11082 "parse.c" break; case 78: /* $@11: %empty */ -#line 2741 "parse.y" +#line 2751 "parse.y" {COND_POP();} -#line 11078 "parse.c" +#line 11088 "parse.c" break; case 79: /* expr_value_do: $@10 expr_value do $@11 */ -#line 2742 "parse.y" +#line 2752 "parse.y" { (yyval.node) = (yyvsp[-2].node); } -#line 11086 "parse.c" +#line 11096 "parse.c" break; case 83: /* block_command: block_call call_op2 operation2 command_args */ -#line 2753 "parse.y" +#line 2763 "parse.y" { /*%%%*/ (yyval.node) = new_qcall(p, (yyvsp[-2].id), (yyvsp[-3].node), (yyvsp[-1].id), (yyvsp[0].node), &(yylsp[-1]), &(yyloc)); /*% %*/ /*% ripper: method_add_arg!(call!($1, $2, $3), $4) %*/ } -#line 11097 "parse.c" +#line 11107 "parse.c" break; case 84: /* cmd_brace_block: "{ arg" brace_body '}' */ -#line 2762 "parse.y" +#line 2772 "parse.y" { (yyval.node) = (yyvsp[-1].node); /*%%%*/ set_embraced_location((yyval.node), &(yylsp[-2]), &(yylsp[0])); /*% %*/ } -#line 11108 "parse.c" +#line 11118 "parse.c" break; case 85: /* fcall: operation */ -#line 2771 "parse.y" +#line 2781 "parse.y" { /*%%%*/ (yyval.node_fcall) = NEW_FCALL((yyvsp[0].id), 0, &(yyloc)); /*% %*/ /*% ripper: $1 %*/ } -#line 11119 "parse.c" +#line 11129 "parse.c" break; case 86: /* command: fcall command_args */ -#line 2780 "parse.y" +#line 2790 "parse.y" { /*%%%*/ (yyvsp[-1].node_fcall)->nd_args = (yyvsp[0].node); @@ -11128,11 +11138,11 @@ /*% %*/ /*% ripper: command!($1, $2) %*/ } -#line 11132 "parse.c" +#line 11142 "parse.c" break; case 87: /* command: fcall command_args cmd_brace_block */ -#line 2789 "parse.y" +#line 2799 "parse.y" { /*%%%*/ block_dup_check(p, (yyvsp[-1].node), (yyvsp[0].node)); @@ -11143,55 +11153,55 @@ /*% %*/ /*% ripper: method_add_block!(command!($1, $2), $3) %*/ } -#line 11147 "parse.c" +#line 11157 "parse.c" break; case 88: /* command: primary_value call_op operation2 command_args */ -#line 2800 "parse.y" +#line 2810 "parse.y" { /*%%%*/ (yyval.node) = new_command_qcall(p, (yyvsp[-2].id), (yyvsp[-3].node), (yyvsp[-1].id), (yyvsp[0].node), Qnull, &(yylsp[-1]), &(yyloc)); /*% %*/ /*% ripper: command_call!($1, $2, $3, $4) %*/ } -#line 11158 "parse.c" +#line 11168 "parse.c" break; case 89: /* command: primary_value call_op operation2 command_args cmd_brace_block */ -#line 2807 "parse.y" +#line 2817 "parse.y" { /*%%%*/ (yyval.node) = new_command_qcall(p, (yyvsp[-3].id), (yyvsp[-4].node), (yyvsp[-2].id), (yyvsp[-1].node), (yyvsp[0].node), &(yylsp[-2]), &(yyloc)); /*% %*/ /*% ripper: method_add_block!(command_call!($1, $2, $3, $4), $5) %*/ } -#line 11169 "parse.c" +#line 11179 "parse.c" break; case 90: /* command: primary_value "::" operation2 command_args */ -#line 2814 "parse.y" +#line 2824 "parse.y" { /*%%%*/ (yyval.node) = new_command_qcall(p, ID2VAL(idCOLON2), (yyvsp[-3].node), (yyvsp[-1].id), (yyvsp[0].node), Qnull, &(yylsp[-1]), &(yyloc)); /*% %*/ /*% ripper: command_call!($1, $2, $3, $4) %*/ } -#line 11180 "parse.c" +#line 11190 "parse.c" break; case 91: /* command: primary_value "::" operation2 command_args cmd_brace_block */ -#line 2821 "parse.y" +#line 2831 "parse.y" { /*%%%*/ (yyval.node) = new_command_qcall(p, ID2VAL(idCOLON2), (yyvsp[-4].node), (yyvsp[-2].id), (yyvsp[-1].node), (yyvsp[0].node), &(yylsp[-2]), &(yyloc)); /*% %*/ /*% ripper: method_add_block!(command_call!($1, $2, $3, $4), $5) %*/ } -#line 11191 "parse.c" +#line 11201 "parse.c" break; case 92: /* command: primary_value "::" "constant" '{' brace_body '}' */ -#line 2828 "parse.y" +#line 2838 "parse.y" { /*%%%*/ set_embraced_location((yyvsp[-1].node), &(yylsp[-2]), &(yylsp[0])); @@ -11199,11 +11209,11 @@ /*% %*/ /*% ripper: method_add_block!(command_call!($1, $2, $3, Qnull), $5) %*/ } -#line 11203 "parse.c" +#line 11213 "parse.c" break; case 93: /* command: "`super'" command_args */ -#line 2836 "parse.y" +#line 2846 "parse.y" { /*%%%*/ (yyval.node) = NEW_SUPER((yyvsp[0].node), &(yyloc)); @@ -11211,11 +11221,11 @@ /*% %*/ /*% ripper: super!($2) %*/ } -#line 11215 "parse.c" +#line 11225 "parse.c" break; case 94: /* command: k_yield command_args */ -#line 2844 "parse.y" +#line 2854 "parse.y" { /*%%%*/ (yyval.node) = new_yield(p, (yyvsp[0].node), &(yyloc)); @@ -11223,22 +11233,22 @@ /*% %*/ /*% ripper: yield!($2) %*/ } -#line 11227 "parse.c" +#line 11237 "parse.c" break; case 95: /* command: k_return call_args */ -#line 2852 "parse.y" +#line 2862 "parse.y" { /*%%%*/ (yyval.node) = NEW_RETURN(ret_args(p, (yyvsp[0].node)), &(yyloc)); /*% %*/ /*% ripper: return!($2) %*/ } -#line 11238 "parse.c" +#line 11248 "parse.c" break; case 96: /* command: "`break'" call_args */ -#line 2859 "parse.y" +#line 2869 "parse.y" { NODE *args = 0; /*%%%*/ @@ -11247,11 +11257,11 @@ (yyval.node) = add_block_exit(p, NEW_BREAK(args, &(yyloc))); /*% ripper: break!($2) %*/ } -#line 11251 "parse.c" +#line 11261 "parse.c" break; case 97: /* command: "`next'" call_args */ -#line 2868 "parse.y" +#line 2878 "parse.y" { NODE *args = 0; /*%%%*/ @@ -11260,231 +11270,231 @@ (yyval.node) = add_block_exit(p, NEW_NEXT(args, &(yyloc))); /*% ripper: next!($2) %*/ } -#line 11264 "parse.c" +#line 11274 "parse.c" break; case 99: /* mlhs: "(" mlhs_inner rparen */ -#line 2880 "parse.y" +#line 2890 "parse.y" { /*%%%*/ (yyval.node_masgn) = (yyvsp[-1].node_masgn); /*% %*/ /*% ripper: mlhs_paren!($2) %*/ } -#line 11275 "parse.c" +#line 11285 "parse.c" break; case 101: /* mlhs_inner: "(" mlhs_inner rparen */ -#line 2890 "parse.y" +#line 2900 "parse.y" { /*%%%*/ (yyval.node_masgn) = NEW_MASGN(NEW_LIST((NODE *)(yyvsp[-1].node_masgn), &(yyloc)), 0, &(yyloc)); /*% %*/ /*% ripper: mlhs_paren!($2) %*/ } -#line 11286 "parse.c" +#line 11296 "parse.c" break; case 102: /* mlhs_basic: mlhs_head */ -#line 2899 "parse.y" +#line 2909 "parse.y" { /*%%%*/ (yyval.node_masgn) = NEW_MASGN((yyvsp[0].node), 0, &(yyloc)); /*% %*/ /*% ripper: $1 %*/ } -#line 11297 "parse.c" +#line 11307 "parse.c" break; case 103: /* mlhs_basic: mlhs_head mlhs_item */ -#line 2906 "parse.y" +#line 2916 "parse.y" { /*%%%*/ (yyval.node_masgn) = NEW_MASGN(list_append(p, (yyvsp[-1].node), (yyvsp[0].node)), 0, &(yyloc)); /*% %*/ /*% ripper: mlhs_add!($1, $2) %*/ } -#line 11308 "parse.c" +#line 11318 "parse.c" break; case 104: /* mlhs_basic: mlhs_head "*" mlhs_node */ -#line 2913 "parse.y" +#line 2923 "parse.y" { /*%%%*/ (yyval.node_masgn) = NEW_MASGN((yyvsp[-2].node), (yyvsp[0].node), &(yyloc)); /*% %*/ /*% ripper: mlhs_add_star!($1, $3) %*/ } -#line 11319 "parse.c" +#line 11329 "parse.c" break; case 105: /* mlhs_basic: mlhs_head "*" mlhs_node ',' mlhs_post */ -#line 2920 "parse.y" +#line 2930 "parse.y" { /*%%%*/ (yyval.node_masgn) = NEW_MASGN((yyvsp[-4].node), NEW_POSTARG((yyvsp[-2].node),(yyvsp[0].node),&(yyloc)), &(yyloc)); /*% %*/ /*% ripper: mlhs_add_post!(mlhs_add_star!($1, $3), $5) %*/ } -#line 11330 "parse.c" +#line 11340 "parse.c" break; case 106: /* mlhs_basic: mlhs_head "*" */ -#line 2927 "parse.y" +#line 2937 "parse.y" { /*%%%*/ (yyval.node_masgn) = NEW_MASGN((yyvsp[-1].node), NODE_SPECIAL_NO_NAME_REST, &(yyloc)); /*% %*/ /*% ripper: mlhs_add_star!($1, Qnil) %*/ } -#line 11341 "parse.c" +#line 11351 "parse.c" break; case 107: /* mlhs_basic: mlhs_head "*" ',' mlhs_post */ -#line 2934 "parse.y" +#line 2944 "parse.y" { /*%%%*/ (yyval.node_masgn) = NEW_MASGN((yyvsp[-3].node), NEW_POSTARG(NODE_SPECIAL_NO_NAME_REST, (yyvsp[0].node), &(yyloc)), &(yyloc)); /*% %*/ /*% ripper: mlhs_add_post!(mlhs_add_star!($1, Qnil), $4) %*/ } -#line 11352 "parse.c" +#line 11362 "parse.c" break; case 108: /* mlhs_basic: "*" mlhs_node */ -#line 2941 "parse.y" +#line 2951 "parse.y" { /*%%%*/ (yyval.node_masgn) = NEW_MASGN(0, (yyvsp[0].node), &(yyloc)); /*% %*/ /*% ripper: mlhs_add_star!(mlhs_new!, $2) %*/ } -#line 11363 "parse.c" +#line 11373 "parse.c" break; case 109: /* mlhs_basic: "*" mlhs_node ',' mlhs_post */ -#line 2948 "parse.y" +#line 2958 "parse.y" { /*%%%*/ (yyval.node_masgn) = NEW_MASGN(0, NEW_POSTARG((yyvsp[-2].node),(yyvsp[0].node),&(yyloc)), &(yyloc)); /*% %*/ /*% ripper: mlhs_add_post!(mlhs_add_star!(mlhs_new!, $2), $4) %*/ } -#line 11374 "parse.c" +#line 11384 "parse.c" break; case 110: /* mlhs_basic: "*" */ -#line 2955 "parse.y" +#line 2965 "parse.y" { /*%%%*/ (yyval.node_masgn) = NEW_MASGN(0, NODE_SPECIAL_NO_NAME_REST, &(yyloc)); /*% %*/ /*% ripper: mlhs_add_star!(mlhs_new!, Qnil) %*/ } -#line 11385 "parse.c" +#line 11395 "parse.c" break; case 111: /* mlhs_basic: "*" ',' mlhs_post */ -#line 2962 "parse.y" +#line 2972 "parse.y" { /*%%%*/ (yyval.node_masgn) = NEW_MASGN(0, NEW_POSTARG(NODE_SPECIAL_NO_NAME_REST, (yyvsp[0].node), &(yyloc)), &(yyloc)); /*% %*/ /*% ripper: mlhs_add_post!(mlhs_add_star!(mlhs_new!, Qnil), $3) %*/ } -#line 11396 "parse.c" +#line 11406 "parse.c" break; case 113: /* mlhs_item: "(" mlhs_inner rparen */ -#line 2972 "parse.y" +#line 2982 "parse.y" { /*%%%*/ (yyval.node) = (NODE *)(yyvsp[-1].node_masgn); /*% %*/ /*% ripper: mlhs_paren!($2) %*/ } -#line 11407 "parse.c" +#line 11417 "parse.c" break; case 114: /* mlhs_head: mlhs_item ',' */ -#line 2981 "parse.y" +#line 2991 "parse.y" { /*%%%*/ (yyval.node) = NEW_LIST((yyvsp[-1].node), &(yylsp[-1])); /*% %*/ /*% ripper: mlhs_add!(mlhs_new!, $1) %*/ } -#line 11418 "parse.c" +#line 11428 "parse.c" break; case 115: /* mlhs_head: mlhs_head mlhs_item ',' */ -#line 2988 "parse.y" +#line 2998 "parse.y" { /*%%%*/ (yyval.node) = list_append(p, (yyvsp[-2].node), (yyvsp[-1].node)); /*% %*/ /*% ripper: mlhs_add!($1, $2) %*/ } -#line 11429 "parse.c" +#line 11439 "parse.c" break; case 116: /* mlhs_post: mlhs_item */ -#line 2997 "parse.y" +#line 3007 "parse.y" { /*%%%*/ (yyval.node) = NEW_LIST((yyvsp[0].node), &(yyloc)); /*% %*/ /*% ripper: mlhs_add!(mlhs_new!, $1) %*/ } -#line 11440 "parse.c" +#line 11450 "parse.c" break; case 117: /* mlhs_post: mlhs_post ',' mlhs_item */ -#line 3004 "parse.y" +#line 3014 "parse.y" { /*%%%*/ (yyval.node) = list_append(p, (yyvsp[-2].node), (yyvsp[0].node)); /*% %*/ /*% ripper: mlhs_add!($1, $3) %*/ } -#line 11451 "parse.c" +#line 11461 "parse.c" break; case 118: /* mlhs_node: user_variable */ -#line 3013 "parse.y" +#line 3023 "parse.y" { /*%%%*/ (yyval.node) = assignable(p, (yyvsp[0].id), 0, &(yyloc)); /*% %*/ /*% ripper: assignable(p, var_field(p, $1)) %*/ } -#line 11462 "parse.c" +#line 11472 "parse.c" break; case 119: /* mlhs_node: keyword_variable */ -#line 3020 "parse.y" +#line 3030 "parse.y" { /*%%%*/ (yyval.node) = assignable(p, (yyvsp[0].id), 0, &(yyloc)); /*% %*/ /*% ripper: assignable(p, var_field(p, $1)) %*/ } -#line 11473 "parse.c" +#line 11483 "parse.c" break; case 120: /* mlhs_node: primary_value '[' opt_call_args rbracket */ -#line 3027 "parse.y" +#line 3037 "parse.y" { /*%%%*/ (yyval.node) = aryset(p, (yyvsp[-3].node), (yyvsp[-1].node), &(yyloc)); /*% %*/ /*% ripper: aref_field!($1, $3) %*/ } -#line 11484 "parse.c" +#line 11494 "parse.c" break; case 121: /* mlhs_node: primary_value call_op "local variable or method" */ -#line 3034 "parse.y" +#line 3044 "parse.y" { anddot_multiple_assignment_check(p, &(yylsp[-1]), (yyvsp[-1].id)); /*%%%*/ @@ -11492,22 +11502,22 @@ /*% %*/ /*% ripper: field!($1, $2, $3) %*/ } -#line 11496 "parse.c" +#line 11506 "parse.c" break; case 122: /* mlhs_node: primary_value "::" "local variable or method" */ -#line 3042 "parse.y" +#line 3052 "parse.y" { /*%%%*/ (yyval.node) = attrset(p, (yyvsp[-2].node), idCOLON2, (yyvsp[0].id), &(yyloc)); /*% %*/ /*% ripper: const_path_field!($1, $3) %*/ } -#line 11507 "parse.c" +#line 11517 "parse.c" break; case 123: /* mlhs_node: primary_value call_op "constant" */ -#line 3049 "parse.y" +#line 3059 "parse.y" { anddot_multiple_assignment_check(p, &(yylsp[-1]), (yyvsp[-1].id)); /*%%%*/ @@ -11515,33 +11525,33 @@ /*% %*/ /*% ripper: field!($1, $2, $3) %*/ } -#line 11519 "parse.c" +#line 11529 "parse.c" break; case 124: /* mlhs_node: primary_value "::" "constant" */ -#line 3057 "parse.y" +#line 3067 "parse.y" { /*%%%*/ (yyval.node) = const_decl(p, NEW_COLON2((yyvsp[-2].node), (yyvsp[0].id), &(yyloc)), &(yyloc)); /*% %*/ /*% ripper: const_decl(p, const_path_field!($1, $3)) %*/ } -#line 11530 "parse.c" +#line 11540 "parse.c" break; case 125: /* mlhs_node: ":: at EXPR_BEG" "constant" */ -#line 3064 "parse.y" +#line 3074 "parse.y" { /*%%%*/ (yyval.node) = const_decl(p, NEW_COLON3((yyvsp[0].id), &(yyloc)), &(yyloc)); /*% %*/ /*% ripper: const_decl(p, top_const_field!($2)) %*/ } -#line 11541 "parse.c" +#line 11551 "parse.c" break; case 126: /* mlhs_node: backref */ -#line 3071 "parse.y" +#line 3081 "parse.y" { /*%%%*/ rb_backref_error(p, (yyvsp[0].node)); @@ -11549,99 +11559,99 @@ /*% %*/ /*% ripper[error]: backref_error(p, RNODE($1), var_field(p, $1)) %*/ } -#line 11553 "parse.c" +#line 11563 "parse.c" break; case 127: /* lhs: user_variable */ -#line 3081 "parse.y" +#line 3091 "parse.y" { /*%%%*/ (yyval.node) = assignable(p, (yyvsp[0].id), 0, &(yyloc)); /*% %*/ /*% ripper: assignable(p, var_field(p, $1)) %*/ } -#line 11564 "parse.c" +#line 11574 "parse.c" break; case 128: /* lhs: keyword_variable */ -#line 3088 "parse.y" +#line 3098 "parse.y" { /*%%%*/ (yyval.node) = assignable(p, (yyvsp[0].id), 0, &(yyloc)); /*% %*/ /*% ripper: assignable(p, var_field(p, $1)) %*/ } -#line 11575 "parse.c" +#line 11585 "parse.c" break; case 129: /* lhs: primary_value '[' opt_call_args rbracket */ -#line 3095 "parse.y" +#line 3105 "parse.y" { /*%%%*/ (yyval.node) = aryset(p, (yyvsp[-3].node), (yyvsp[-1].node), &(yyloc)); /*% %*/ /*% ripper: aref_field!($1, $3) %*/ } -#line 11586 "parse.c" +#line 11596 "parse.c" break; case 130: /* lhs: primary_value call_op "local variable or method" */ -#line 3102 "parse.y" +#line 3112 "parse.y" { /*%%%*/ (yyval.node) = attrset(p, (yyvsp[-2].node), (yyvsp[-1].id), (yyvsp[0].id), &(yyloc)); /*% %*/ /*% ripper: field!($1, $2, $3) %*/ } -#line 11597 "parse.c" +#line 11607 "parse.c" break; case 131: /* lhs: primary_value "::" "local variable or method" */ -#line 3109 "parse.y" +#line 3119 "parse.y" { /*%%%*/ (yyval.node) = attrset(p, (yyvsp[-2].node), idCOLON2, (yyvsp[0].id), &(yyloc)); /*% %*/ /*% ripper: field!($1, $2, $3) %*/ } -#line 11608 "parse.c" +#line 11618 "parse.c" break; case 132: /* lhs: primary_value call_op "constant" */ -#line 3116 "parse.y" +#line 3126 "parse.y" { /*%%%*/ (yyval.node) = attrset(p, (yyvsp[-2].node), (yyvsp[-1].id), (yyvsp[0].id), &(yyloc)); /*% %*/ /*% ripper: field!($1, $2, $3) %*/ } -#line 11619 "parse.c" +#line 11629 "parse.c" break; case 133: /* lhs: primary_value "::" "constant" */ -#line 3123 "parse.y" +#line 3133 "parse.y" { /*%%%*/ (yyval.node) = const_decl(p, NEW_COLON2((yyvsp[-2].node), (yyvsp[0].id), &(yyloc)), &(yyloc)); /*% %*/ /*% ripper: const_decl(p, const_path_field!($1, $3)) %*/ } -#line 11630 "parse.c" +#line 11640 "parse.c" break; case 134: /* lhs: ":: at EXPR_BEG" "constant" */ -#line 3130 "parse.y" +#line 3140 "parse.y" { /*%%%*/ (yyval.node) = const_decl(p, NEW_COLON3((yyvsp[0].id), &(yyloc)), &(yyloc)); /*% %*/ /*% ripper: const_decl(p, top_const_field!($2)) %*/ } -#line 11641 "parse.c" +#line 11651 "parse.c" break; case 135: /* lhs: backref */ -#line 3137 "parse.y" +#line 3147 "parse.y" { /*%%%*/ rb_backref_error(p, (yyvsp[0].node)); @@ -11649,11 +11659,11 @@ /*% %*/ /*% ripper[error]: backref_error(p, RNODE($1), var_field(p, $1)) %*/ } -#line 11653 "parse.c" +#line 11663 "parse.c" break; case 136: /* cname: "local variable or method" */ -#line 3147 "parse.y" +#line 3157 "parse.y" { static const char mesg[] = "class/module name must be CONSTANT"; /*%%%*/ @@ -11661,81 +11671,81 @@ /*% %*/ /*% ripper[error]: class_name_error!(ERR_MESG(), $1) %*/ } -#line 11665 "parse.c" +#line 11675 "parse.c" break; case 138: /* cpath: ":: at EXPR_BEG" cname */ -#line 3158 "parse.y" +#line 3168 "parse.y" { /*%%%*/ (yyval.node) = NEW_COLON3((yyvsp[0].id), &(yyloc)); /*% %*/ /*% ripper: top_const_ref!($2) %*/ } -#line 11676 "parse.c" +#line 11686 "parse.c" break; case 139: /* cpath: cname */ -#line 3165 "parse.y" +#line 3175 "parse.y" { /*%%%*/ (yyval.node) = NEW_COLON2(0, (yyvsp[0].id), &(yyloc)); /*% %*/ /*% ripper: const_ref!($1) %*/ } -#line 11687 "parse.c" +#line 11697 "parse.c" break; case 140: /* cpath: primary_value "::" cname */ -#line 3172 "parse.y" +#line 3182 "parse.y" { /*%%%*/ (yyval.node) = NEW_COLON2((yyvsp[-2].node), (yyvsp[0].id), &(yyloc)); /*% %*/ /*% ripper: const_path_ref!($1, $3) %*/ } -#line 11698 "parse.c" +#line 11708 "parse.c" break; case 144: /* fname: op */ -#line 3184 "parse.y" +#line 3194 "parse.y" { SET_LEX_STATE(EXPR_ENDFN); (yyval.id) = (yyvsp[0].id); } -#line 11707 "parse.c" +#line 11717 "parse.c" break; case 146: /* fitem: fname */ -#line 3192 "parse.y" +#line 3202 "parse.y" { /*%%%*/ (yyval.node) = NEW_LIT(ID2SYM((yyvsp[0].id)), &(yyloc)); /*% %*/ /*% ripper: symbol_literal!($1) %*/ } -#line 11718 "parse.c" +#line 11728 "parse.c" break; case 148: /* undef_list: fitem */ -#line 3202 "parse.y" +#line 3212 "parse.y" { /*%%%*/ (yyval.node) = NEW_UNDEF((yyvsp[0].node), &(yyloc)); /*% %*/ /*% ripper: rb_ary_new3(1, get_value($1)) %*/ } -#line 11729 "parse.c" +#line 11739 "parse.c" break; case 149: /* $@12: %empty */ -#line 3208 "parse.y" +#line 3218 "parse.y" {SET_LEX_STATE(EXPR_FNAME|EXPR_FITEM);} -#line 11735 "parse.c" +#line 11745 "parse.c" break; case 150: /* undef_list: undef_list ',' $@12 fitem */ -#line 3209 "parse.y" +#line 3219 "parse.y" { /*%%%*/ NODE *undef = NEW_UNDEF((yyvsp[0].node), &(yylsp[0])); @@ -11743,257 +11753,257 @@ /*% %*/ /*% ripper: rb_ary_push($1, get_value($4)) %*/ } -#line 11747 "parse.c" +#line 11757 "parse.c" break; case 151: /* op: '|' */ -#line 3218 "parse.y" +#line 3228 "parse.y" { ifndef_ripper((yyval.id) = '|'); } -#line 11753 "parse.c" +#line 11763 "parse.c" break; case 152: /* op: '^' */ -#line 3219 "parse.y" +#line 3229 "parse.y" { ifndef_ripper((yyval.id) = '^'); } -#line 11759 "parse.c" +#line 11769 "parse.c" break; case 153: /* op: '&' */ -#line 3220 "parse.y" +#line 3230 "parse.y" { ifndef_ripper((yyval.id) = '&'); } -#line 11765 "parse.c" +#line 11775 "parse.c" break; case 154: /* op: "<=>" */ -#line 3221 "parse.y" +#line 3231 "parse.y" { ifndef_ripper((yyval.id) = tCMP); } -#line 11771 "parse.c" +#line 11781 "parse.c" break; case 155: /* op: "==" */ -#line 3222 "parse.y" +#line 3232 "parse.y" { ifndef_ripper((yyval.id) = tEQ); } -#line 11777 "parse.c" +#line 11787 "parse.c" break; case 156: /* op: "===" */ -#line 3223 "parse.y" +#line 3233 "parse.y" { ifndef_ripper((yyval.id) = tEQQ); } -#line 11783 "parse.c" +#line 11793 "parse.c" break; case 157: /* op: "=~" */ -#line 3224 "parse.y" +#line 3234 "parse.y" { ifndef_ripper((yyval.id) = tMATCH); } -#line 11789 "parse.c" +#line 11799 "parse.c" break; case 158: /* op: "!~" */ -#line 3225 "parse.y" +#line 3235 "parse.y" { ifndef_ripper((yyval.id) = tNMATCH); } -#line 11795 "parse.c" +#line 11805 "parse.c" break; case 159: /* op: '>' */ -#line 3226 "parse.y" +#line 3236 "parse.y" { ifndef_ripper((yyval.id) = '>'); } -#line 11801 "parse.c" +#line 11811 "parse.c" break; case 160: /* op: ">=" */ -#line 3227 "parse.y" +#line 3237 "parse.y" { ifndef_ripper((yyval.id) = tGEQ); } -#line 11807 "parse.c" +#line 11817 "parse.c" break; case 161: /* op: '<' */ -#line 3228 "parse.y" +#line 3238 "parse.y" { ifndef_ripper((yyval.id) = '<'); } -#line 11813 "parse.c" +#line 11823 "parse.c" break; case 162: /* op: "<=" */ -#line 3229 "parse.y" +#line 3239 "parse.y" { ifndef_ripper((yyval.id) = tLEQ); } -#line 11819 "parse.c" +#line 11829 "parse.c" break; case 163: /* op: "!=" */ -#line 3230 "parse.y" +#line 3240 "parse.y" { ifndef_ripper((yyval.id) = tNEQ); } -#line 11825 "parse.c" +#line 11835 "parse.c" break; case 164: /* op: "<<" */ -#line 3231 "parse.y" +#line 3241 "parse.y" { ifndef_ripper((yyval.id) = tLSHFT); } -#line 11831 "parse.c" +#line 11841 "parse.c" break; case 165: /* op: ">>" */ -#line 3232 "parse.y" +#line 3242 "parse.y" { ifndef_ripper((yyval.id) = tRSHFT); } -#line 11837 "parse.c" +#line 11847 "parse.c" break; case 166: /* op: '+' */ -#line 3233 "parse.y" +#line 3243 "parse.y" { ifndef_ripper((yyval.id) = '+'); } -#line 11843 "parse.c" +#line 11853 "parse.c" break; case 167: /* op: '-' */ -#line 3234 "parse.y" +#line 3244 "parse.y" { ifndef_ripper((yyval.id) = '-'); } -#line 11849 "parse.c" +#line 11859 "parse.c" break; case 168: /* op: '*' */ -#line 3235 "parse.y" +#line 3245 "parse.y" { ifndef_ripper((yyval.id) = '*'); } -#line 11855 "parse.c" +#line 11865 "parse.c" break; case 169: /* op: "*" */ -#line 3236 "parse.y" +#line 3246 "parse.y" { ifndef_ripper((yyval.id) = '*'); } -#line 11861 "parse.c" +#line 11871 "parse.c" break; case 170: /* op: '/' */ -#line 3237 "parse.y" +#line 3247 "parse.y" { ifndef_ripper((yyval.id) = '/'); } -#line 11867 "parse.c" +#line 11877 "parse.c" break; case 171: /* op: '%' */ -#line 3238 "parse.y" +#line 3248 "parse.y" { ifndef_ripper((yyval.id) = '%'); } -#line 11873 "parse.c" +#line 11883 "parse.c" break; case 172: /* op: "**" */ -#line 3239 "parse.y" +#line 3249 "parse.y" { ifndef_ripper((yyval.id) = tPOW); } -#line 11879 "parse.c" +#line 11889 "parse.c" break; case 173: /* op: "**arg" */ -#line 3240 "parse.y" +#line 3250 "parse.y" { ifndef_ripper((yyval.id) = tDSTAR); } -#line 11885 "parse.c" +#line 11895 "parse.c" break; case 174: /* op: '!' */ -#line 3241 "parse.y" +#line 3251 "parse.y" { ifndef_ripper((yyval.id) = '!'); } -#line 11891 "parse.c" +#line 11901 "parse.c" break; case 175: /* op: '~' */ -#line 3242 "parse.y" +#line 3252 "parse.y" { ifndef_ripper((yyval.id) = '~'); } -#line 11897 "parse.c" +#line 11907 "parse.c" break; case 176: /* op: "unary+" */ -#line 3243 "parse.y" +#line 3253 "parse.y" { ifndef_ripper((yyval.id) = tUPLUS); } -#line 11903 "parse.c" +#line 11913 "parse.c" break; case 177: /* op: "unary-" */ -#line 3244 "parse.y" +#line 3254 "parse.y" { ifndef_ripper((yyval.id) = tUMINUS); } -#line 11909 "parse.c" +#line 11919 "parse.c" break; case 178: /* op: "[]" */ -#line 3245 "parse.y" +#line 3255 "parse.y" { ifndef_ripper((yyval.id) = tAREF); } -#line 11915 "parse.c" +#line 11925 "parse.c" break; case 179: /* op: "[]=" */ -#line 3246 "parse.y" +#line 3256 "parse.y" { ifndef_ripper((yyval.id) = tASET); } -#line 11921 "parse.c" +#line 11931 "parse.c" break; case 180: /* op: '`' */ -#line 3247 "parse.y" +#line 3257 "parse.y" { ifndef_ripper((yyval.id) = '`'); } -#line 11927 "parse.c" +#line 11937 "parse.c" break; case 222: /* arg: lhs '=' lex_ctxt arg_rhs */ -#line 3265 "parse.y" +#line 3275 "parse.y" { /*%%%*/ (yyval.node) = node_assign(p, (yyvsp[-3].node), (yyvsp[0].node), (yyvsp[-1].ctxt), &(yyloc)); /*% %*/ /*% ripper: assign!($1, $4) %*/ } -#line 11938 "parse.c" +#line 11948 "parse.c" break; case 223: /* arg: var_lhs "operator-assignment" lex_ctxt arg_rhs */ -#line 3272 "parse.y" +#line 3282 "parse.y" { /*%%%*/ (yyval.node) = new_op_assign(p, (yyvsp[-3].node), (yyvsp[-2].id), (yyvsp[0].node), (yyvsp[-1].ctxt), &(yyloc)); /*% %*/ /*% ripper: opassign!($1, $2, $4) %*/ } -#line 11949 "parse.c" +#line 11959 "parse.c" break; case 224: /* arg: primary_value '[' opt_call_args rbracket "operator-assignment" lex_ctxt arg_rhs */ -#line 3279 "parse.y" +#line 3289 "parse.y" { /*%%%*/ (yyval.node) = new_ary_op_assign(p, (yyvsp[-6].node), (yyvsp[-4].node), (yyvsp[-2].id), (yyvsp[0].node), &(yylsp[-4]), &(yyloc)); /*% %*/ /*% ripper: opassign!(aref_field!($1, $3), $5, $7) %*/ } -#line 11960 "parse.c" +#line 11970 "parse.c" break; case 225: /* arg: primary_value call_op "local variable or method" "operator-assignment" lex_ctxt arg_rhs */ -#line 3286 "parse.y" +#line 3296 "parse.y" { /*%%%*/ (yyval.node) = new_attr_op_assign(p, (yyvsp[-5].node), (yyvsp[-4].id), (yyvsp[-3].id), (yyvsp[-2].id), (yyvsp[0].node), &(yyloc)); /*% %*/ /*% ripper: opassign!(field!($1, $2, $3), $4, $6) %*/ } -#line 11971 "parse.c" +#line 11981 "parse.c" break; case 226: /* arg: primary_value call_op "constant" "operator-assignment" lex_ctxt arg_rhs */ -#line 3293 "parse.y" +#line 3303 "parse.y" { /*%%%*/ (yyval.node) = new_attr_op_assign(p, (yyvsp[-5].node), (yyvsp[-4].id), (yyvsp[-3].id), (yyvsp[-2].id), (yyvsp[0].node), &(yyloc)); /*% %*/ /*% ripper: opassign!(field!($1, $2, $3), $4, $6) %*/ } -#line 11982 "parse.c" +#line 11992 "parse.c" break; case 227: /* arg: primary_value "::" "local variable or method" "operator-assignment" lex_ctxt arg_rhs */ -#line 3300 "parse.y" +#line 3310 "parse.y" { /*%%%*/ (yyval.node) = new_attr_op_assign(p, (yyvsp[-5].node), ID2VAL(idCOLON2), (yyvsp[-3].id), (yyvsp[-2].id), (yyvsp[0].node), &(yyloc)); /*% %*/ /*% ripper: opassign!(field!($1, $2, $3), $4, $6) %*/ } -#line 11993 "parse.c" +#line 12003 "parse.c" break; case 228: /* arg: primary_value "::" "constant" "operator-assignment" lex_ctxt arg_rhs */ -#line 3307 "parse.y" +#line 3317 "parse.y" { /*%%%*/ YYLTYPE loc = code_loc_gen(&(yylsp[-5]), &(yylsp[-3])); @@ -12001,11 +12011,11 @@ /*% %*/ /*% ripper: opassign!(const_path_field!($1, $3), $4, $6) %*/ } -#line 12005 "parse.c" +#line 12015 "parse.c" break; case 229: /* arg: ":: at EXPR_BEG" "constant" "operator-assignment" lex_ctxt arg_rhs */ -#line 3315 "parse.y" +#line 3325 "parse.y" { /*%%%*/ YYLTYPE loc = code_loc_gen(&(yylsp[-4]), &(yylsp[-3])); @@ -12013,11 +12023,11 @@ /*% %*/ /*% ripper: opassign!(top_const_field!($2), $3, $5) %*/ } -#line 12017 "parse.c" +#line 12027 "parse.c" break; case 230: /* arg: backref "operator-assignment" lex_ctxt arg_rhs */ -#line 3323 "parse.y" +#line 3333 "parse.y" { /*%%%*/ rb_backref_error(p, (yyvsp[-3].node)); @@ -12025,11 +12035,11 @@ /*% %*/ /*% ripper[error]: backref_error(p, RNODE($1), opassign!(var_field(p, $1), $2, $4)) %*/ } -#line 12029 "parse.c" +#line 12039 "parse.c" break; case 231: /* arg: arg ".." arg */ -#line 3331 "parse.y" +#line 3341 "parse.y" { /*%%%*/ value_expr((yyvsp[-2].node)); @@ -12038,11 +12048,11 @@ /*% %*/ /*% ripper: dot2!($1, $3) %*/ } -#line 12042 "parse.c" +#line 12052 "parse.c" break; case 232: /* arg: arg "..." arg */ -#line 3340 "parse.y" +#line 3350 "parse.y" { /*%%%*/ value_expr((yyvsp[-2].node)); @@ -12051,11 +12061,11 @@ /*% %*/ /*% ripper: dot3!($1, $3) %*/ } -#line 12055 "parse.c" +#line 12065 "parse.c" break; case 233: /* arg: arg ".." */ -#line 3349 "parse.y" +#line 3359 "parse.y" { /*%%%*/ value_expr((yyvsp[-1].node)); @@ -12063,11 +12073,11 @@ /*% %*/ /*% ripper: dot2!($1, Qnil) %*/ } -#line 12067 "parse.c" +#line 12077 "parse.c" break; case 234: /* arg: arg "..." */ -#line 3357 "parse.y" +#line 3367 "parse.y" { /*%%%*/ value_expr((yyvsp[-1].node)); @@ -12075,11 +12085,11 @@ /*% %*/ /*% ripper: dot3!($1, Qnil) %*/ } -#line 12079 "parse.c" +#line 12089 "parse.c" break; case 235: /* arg: "(.." arg */ -#line 3365 "parse.y" +#line 3375 "parse.y" { /*%%%*/ value_expr((yyvsp[0].node)); @@ -12087,11 +12097,11 @@ /*% %*/ /*% ripper: dot2!(Qnil, $2) %*/ } -#line 12091 "parse.c" +#line 12101 "parse.c" break; case 236: /* arg: "(..." arg */ -#line 3373 "parse.y" +#line 3383 "parse.y" { /*%%%*/ value_expr((yyvsp[0].node)); @@ -12099,212 +12109,212 @@ /*% %*/ /*% ripper: dot3!(Qnil, $2) %*/ } -#line 12103 "parse.c" +#line 12113 "parse.c" break; case 237: /* arg: arg '+' arg */ -#line 3381 "parse.y" +#line 3391 "parse.y" { (yyval.node) = call_bin_op(p, (yyvsp[-2].node), '+', (yyvsp[0].node), &(yylsp[-1]), &(yyloc)); } -#line 12111 "parse.c" +#line 12121 "parse.c" break; case 238: /* arg: arg '-' arg */ -#line 3385 "parse.y" +#line 3395 "parse.y" { (yyval.node) = call_bin_op(p, (yyvsp[-2].node), '-', (yyvsp[0].node), &(yylsp[-1]), &(yyloc)); } -#line 12119 "parse.c" +#line 12129 "parse.c" break; case 239: /* arg: arg '*' arg */ -#line 3389 "parse.y" +#line 3399 "parse.y" { (yyval.node) = call_bin_op(p, (yyvsp[-2].node), '*', (yyvsp[0].node), &(yylsp[-1]), &(yyloc)); } -#line 12127 "parse.c" +#line 12137 "parse.c" break; case 240: /* arg: arg '/' arg */ -#line 3393 "parse.y" +#line 3403 "parse.y" { (yyval.node) = call_bin_op(p, (yyvsp[-2].node), '/', (yyvsp[0].node), &(yylsp[-1]), &(yyloc)); } -#line 12135 "parse.c" +#line 12145 "parse.c" break; case 241: /* arg: arg '%' arg */ -#line 3397 "parse.y" +#line 3407 "parse.y" { (yyval.node) = call_bin_op(p, (yyvsp[-2].node), '%', (yyvsp[0].node), &(yylsp[-1]), &(yyloc)); } -#line 12143 "parse.c" +#line 12153 "parse.c" break; case 242: /* arg: arg "**" arg */ -#line 3401 "parse.y" +#line 3411 "parse.y" { (yyval.node) = call_bin_op(p, (yyvsp[-2].node), idPow, (yyvsp[0].node), &(yylsp[-1]), &(yyloc)); } -#line 12151 "parse.c" +#line 12161 "parse.c" break; case 243: /* arg: tUMINUS_NUM simple_numeric "**" arg */ -#line 3405 "parse.y" +#line 3415 "parse.y" { (yyval.node) = call_uni_op(p, call_bin_op(p, (yyvsp[-2].node), idPow, (yyvsp[0].node), &(yylsp[-2]), &(yyloc)), idUMinus, &(yylsp[-3]), &(yyloc)); } -#line 12159 "parse.c" +#line 12169 "parse.c" break; case 244: /* arg: "unary+" arg */ -#line 3409 "parse.y" +#line 3419 "parse.y" { (yyval.node) = call_uni_op(p, (yyvsp[0].node), idUPlus, &(yylsp[-1]), &(yyloc)); } -#line 12167 "parse.c" +#line 12177 "parse.c" break; case 245: /* arg: "unary-" arg */ -#line 3413 "parse.y" +#line 3423 "parse.y" { (yyval.node) = call_uni_op(p, (yyvsp[0].node), idUMinus, &(yylsp[-1]), &(yyloc)); } -#line 12175 "parse.c" +#line 12185 "parse.c" break; case 246: /* arg: arg '|' arg */ -#line 3417 "parse.y" +#line 3427 "parse.y" { (yyval.node) = call_bin_op(p, (yyvsp[-2].node), '|', (yyvsp[0].node), &(yylsp[-1]), &(yyloc)); } -#line 12183 "parse.c" +#line 12193 "parse.c" break; case 247: /* arg: arg '^' arg */ -#line 3421 "parse.y" +#line 3431 "parse.y" { (yyval.node) = call_bin_op(p, (yyvsp[-2].node), '^', (yyvsp[0].node), &(yylsp[-1]), &(yyloc)); } -#line 12191 "parse.c" +#line 12201 "parse.c" break; case 248: /* arg: arg '&' arg */ -#line 3425 "parse.y" +#line 3435 "parse.y" { (yyval.node) = call_bin_op(p, (yyvsp[-2].node), '&', (yyvsp[0].node), &(yylsp[-1]), &(yyloc)); } -#line 12199 "parse.c" +#line 12209 "parse.c" break; case 249: /* arg: arg "<=>" arg */ -#line 3429 "parse.y" +#line 3439 "parse.y" { (yyval.node) = call_bin_op(p, (yyvsp[-2].node), idCmp, (yyvsp[0].node), &(yylsp[-1]), &(yyloc)); } -#line 12207 "parse.c" +#line 12217 "parse.c" break; case 251: /* arg: arg "==" arg */ -#line 3434 "parse.y" +#line 3444 "parse.y" { (yyval.node) = call_bin_op(p, (yyvsp[-2].node), idEq, (yyvsp[0].node), &(yylsp[-1]), &(yyloc)); } -#line 12215 "parse.c" +#line 12225 "parse.c" break; case 252: /* arg: arg "===" arg */ -#line 3438 "parse.y" +#line 3448 "parse.y" { (yyval.node) = call_bin_op(p, (yyvsp[-2].node), idEqq, (yyvsp[0].node), &(yylsp[-1]), &(yyloc)); } -#line 12223 "parse.c" +#line 12233 "parse.c" break; case 253: /* arg: arg "!=" arg */ -#line 3442 "parse.y" +#line 3452 "parse.y" { (yyval.node) = call_bin_op(p, (yyvsp[-2].node), idNeq, (yyvsp[0].node), &(yylsp[-1]), &(yyloc)); } -#line 12231 "parse.c" +#line 12241 "parse.c" break; case 254: /* arg: arg "=~" arg */ -#line 3446 "parse.y" +#line 3456 "parse.y" { (yyval.node) = match_op(p, (yyvsp[-2].node), (yyvsp[0].node), &(yylsp[-1]), &(yyloc)); } -#line 12239 "parse.c" +#line 12249 "parse.c" break; case 255: /* arg: arg "!~" arg */ -#line 3450 "parse.y" +#line 3460 "parse.y" { (yyval.node) = call_bin_op(p, (yyvsp[-2].node), idNeqTilde, (yyvsp[0].node), &(yylsp[-1]), &(yyloc)); } -#line 12247 "parse.c" +#line 12257 "parse.c" break; case 256: /* arg: '!' arg */ -#line 3454 "parse.y" +#line 3464 "parse.y" { (yyval.node) = call_uni_op(p, method_cond(p, (yyvsp[0].node), &(yylsp[0])), '!', &(yylsp[-1]), &(yyloc)); } -#line 12255 "parse.c" +#line 12265 "parse.c" break; case 257: /* arg: '~' arg */ -#line 3458 "parse.y" +#line 3468 "parse.y" { (yyval.node) = call_uni_op(p, (yyvsp[0].node), '~', &(yylsp[-1]), &(yyloc)); } -#line 12263 "parse.c" +#line 12273 "parse.c" break; case 258: /* arg: arg "<<" arg */ -#line 3462 "parse.y" +#line 3472 "parse.y" { (yyval.node) = call_bin_op(p, (yyvsp[-2].node), idLTLT, (yyvsp[0].node), &(yylsp[-1]), &(yyloc)); } -#line 12271 "parse.c" +#line 12281 "parse.c" break; case 259: /* arg: arg ">>" arg */ -#line 3466 "parse.y" +#line 3476 "parse.y" { (yyval.node) = call_bin_op(p, (yyvsp[-2].node), idGTGT, (yyvsp[0].node), &(yylsp[-1]), &(yyloc)); } -#line 12279 "parse.c" +#line 12289 "parse.c" break; case 260: /* arg: arg "&&" arg */ -#line 3470 "parse.y" +#line 3480 "parse.y" { (yyval.node) = logop(p, idANDOP, (yyvsp[-2].node), (yyvsp[0].node), &(yylsp[-1]), &(yyloc)); } -#line 12287 "parse.c" +#line 12297 "parse.c" break; case 261: /* arg: arg "||" arg */ -#line 3474 "parse.y" +#line 3484 "parse.y" { (yyval.node) = logop(p, idOROP, (yyvsp[-2].node), (yyvsp[0].node), &(yylsp[-1]), &(yyloc)); } -#line 12295 "parse.c" +#line 12305 "parse.c" break; case 262: /* arg: "`defined?'" opt_nl begin_defined arg */ -#line 3478 "parse.y" +#line 3488 "parse.y" { p->ctxt.in_defined = (yyvsp[-1].ctxt).in_defined; (yyval.node) = new_defined(p, (yyvsp[0].node), &(yyloc)); } -#line 12304 "parse.c" +#line 12314 "parse.c" break; case 263: /* arg: arg '?' arg opt_nl ':' arg */ -#line 3483 "parse.y" +#line 3493 "parse.y" { /*%%%*/ value_expr((yyvsp[-5].node)); @@ -12313,11 +12323,11 @@ /*% %*/ /*% ripper: ifop!($1, $3, $6) %*/ } -#line 12317 "parse.c" +#line 12327 "parse.c" break; case 264: /* arg: defn_head f_opt_paren_args '=' endless_arg */ -#line 3492 "parse.y" +#line 3502 "parse.y" { endless_method_name(p, get_id((yyvsp[-3].node_def_temp)->nd_mid), &(yylsp[-3])); restore_defun(p, (yyvsp[-3].node_def_temp)); @@ -12330,11 +12340,11 @@ /*% ripper: def!($head->nd_mid, $args, $bodystmt) %*/ local_pop(p); } -#line 12334 "parse.c" +#line 12344 "parse.c" break; case 265: /* arg: defs_head f_opt_paren_args '=' endless_arg */ -#line 3505 "parse.y" +#line 3515 "parse.y" { endless_method_name(p, get_id((yyvsp[-3].node_def_temp)->nd_mid), &(yylsp[-3])); restore_defun(p, (yyvsp[-3].node_def_temp)); @@ -12347,19 +12357,19 @@ /*% ripper: defs!($head->nd_recv, $head->dot_or_colon, $head->nd_mid, $args, $bodystmt) %*/ local_pop(p); } -#line 12351 "parse.c" +#line 12361 "parse.c" break; case 266: /* arg: primary */ -#line 3518 "parse.y" +#line 3528 "parse.y" { (yyval.node) = (yyvsp[0].node); } -#line 12359 "parse.c" +#line 12369 "parse.c" break; case 268: /* endless_arg: endless_arg "`rescue' modifier" after_rescue arg */ -#line 3525 "parse.y" +#line 3535 "parse.y" { p->ctxt.in_rescue = (yyvsp[-1].ctxt).in_rescue; /*%%%*/ @@ -12367,134 +12377,134 @@ /*% %*/ /*% ripper: rescue_mod!($1, $4) %*/ } -#line 12371 "parse.c" +#line 12381 "parse.c" break; case 269: /* endless_arg: "`not'" opt_nl endless_arg */ -#line 3533 "parse.y" +#line 3543 "parse.y" { (yyval.node) = call_uni_op(p, method_cond(p, (yyvsp[0].node), &(yylsp[0])), METHOD_NOT, &(yylsp[-2]), &(yyloc)); } -#line 12379 "parse.c" +#line 12389 "parse.c" break; case 270: /* relop: '>' */ -#line 3538 "parse.y" +#line 3548 "parse.y" {(yyval.id) = '>';} -#line 12385 "parse.c" +#line 12395 "parse.c" break; case 271: /* relop: '<' */ -#line 3539 "parse.y" +#line 3549 "parse.y" {(yyval.id) = '<';} -#line 12391 "parse.c" +#line 12401 "parse.c" break; case 272: /* relop: ">=" */ -#line 3540 "parse.y" +#line 3550 "parse.y" {(yyval.id) = idGE;} -#line 12397 "parse.c" +#line 12407 "parse.c" break; case 273: /* relop: "<=" */ -#line 3541 "parse.y" +#line 3551 "parse.y" {(yyval.id) = idLE;} -#line 12403 "parse.c" +#line 12413 "parse.c" break; case 274: /* rel_expr: arg relop arg */ -#line 3545 "parse.y" +#line 3555 "parse.y" { (yyval.node) = call_bin_op(p, (yyvsp[-2].node), (yyvsp[-1].id), (yyvsp[0].node), &(yylsp[-1]), &(yyloc)); } -#line 12411 "parse.c" +#line 12421 "parse.c" break; case 275: /* rel_expr: rel_expr relop arg */ -#line 3549 "parse.y" +#line 3559 "parse.y" { rb_warning1("comparison '%s' after comparison", WARN_ID((yyvsp[-1].id))); (yyval.node) = call_bin_op(p, (yyvsp[-2].node), (yyvsp[-1].id), (yyvsp[0].node), &(yylsp[-1]), &(yyloc)); } -#line 12420 "parse.c" +#line 12430 "parse.c" break; case 276: /* lex_ctxt: none */ -#line 3556 "parse.y" +#line 3566 "parse.y" { (yyval.ctxt) = p->ctxt; } -#line 12428 "parse.c" +#line 12438 "parse.c" break; case 277: /* begin_defined: lex_ctxt */ -#line 3562 "parse.y" +#line 3572 "parse.y" { p->ctxt.in_defined = 1; (yyval.ctxt) = (yyvsp[0].ctxt); } -#line 12437 "parse.c" +#line 12447 "parse.c" break; case 278: /* after_rescue: lex_ctxt */ -#line 3569 "parse.y" +#line 3579 "parse.y" { p->ctxt.in_rescue = after_rescue; (yyval.ctxt) = (yyvsp[0].ctxt); } -#line 12446 "parse.c" +#line 12456 "parse.c" break; case 279: /* arg_value: arg */ -#line 3576 "parse.y" +#line 3586 "parse.y" { value_expr((yyvsp[0].node)); (yyval.node) = (yyvsp[0].node); } -#line 12455 "parse.c" +#line 12465 "parse.c" break; case 281: /* aref_args: args trailer */ -#line 3584 "parse.y" +#line 3594 "parse.y" { (yyval.node) = (yyvsp[-1].node); } -#line 12463 "parse.c" +#line 12473 "parse.c" break; case 282: /* aref_args: args ',' assocs trailer */ -#line 3588 "parse.y" +#line 3598 "parse.y" { /*%%%*/ (yyval.node) = (yyvsp[-1].node) ? arg_append(p, (yyvsp[-3].node), new_hash(p, (yyvsp[-1].node), &(yylsp[-1])), &(yyloc)) : (yyvsp[-3].node); /*% %*/ /*% ripper: args_add!($1, bare_assoc_hash!($3)) %*/ } -#line 12474 "parse.c" +#line 12484 "parse.c" break; case 283: /* aref_args: assocs trailer */ -#line 3595 "parse.y" +#line 3605 "parse.y" { /*%%%*/ (yyval.node) = (yyvsp[-1].node) ? NEW_LIST(new_hash(p, (yyvsp[-1].node), &(yylsp[-1])), &(yyloc)) : 0; /*% %*/ /*% ripper: args_add!(args_new!, bare_assoc_hash!($1)) %*/ } -#line 12485 "parse.c" +#line 12495 "parse.c" break; case 284: /* arg_rhs: arg */ -#line 3604 "parse.y" +#line 3614 "parse.y" { value_expr((yyvsp[0].node)); (yyval.node) = (yyvsp[0].node); } -#line 12494 "parse.c" +#line 12504 "parse.c" break; case 285: /* arg_rhs: arg "`rescue' modifier" after_rescue arg */ -#line 3609 "parse.y" +#line 3619 "parse.y" { p->ctxt.in_rescue = (yyvsp[-1].ctxt).in_rescue; /*%%%*/ @@ -12503,22 +12513,22 @@ /*% %*/ /*% ripper: rescue_mod!($1, $4) %*/ } -#line 12507 "parse.c" +#line 12517 "parse.c" break; case 286: /* paren_args: '(' opt_call_args rparen */ -#line 3620 "parse.y" +#line 3630 "parse.y" { /*%%%*/ (yyval.node) = (yyvsp[-1].node); /*% %*/ /*% ripper: arg_paren!($2) %*/ } -#line 12518 "parse.c" +#line 12528 "parse.c" break; case 287: /* paren_args: '(' args ',' args_forward rparen */ -#line 3627 "parse.y" +#line 3637 "parse.y" { if (!check_forwarding_args(p)) { (yyval.node) = Qnone; @@ -12530,11 +12540,11 @@ /*% ripper: arg_paren!(args_add!($2, $4)) %*/ } } -#line 12534 "parse.c" +#line 12544 "parse.c" break; case 288: /* paren_args: '(' args_forward rparen */ -#line 3639 "parse.y" +#line 3649 "parse.y" { if (!check_forwarding_args(p)) { (yyval.node) = Qnone; @@ -12546,41 +12556,41 @@ /*% ripper: arg_paren!($2) %*/ } } -#line 12550 "parse.c" +#line 12560 "parse.c" break; case 293: /* opt_call_args: args ',' */ -#line 3659 "parse.y" +#line 3669 "parse.y" { (yyval.node) = (yyvsp[-1].node); } -#line 12558 "parse.c" +#line 12568 "parse.c" break; case 294: /* opt_call_args: args ',' assocs ',' */ -#line 3663 "parse.y" +#line 3673 "parse.y" { /*%%%*/ (yyval.node) = (yyvsp[-1].node) ? arg_append(p, (yyvsp[-3].node), new_hash(p, (yyvsp[-1].node), &(yylsp[-1])), &(yyloc)) : (yyvsp[-3].node); /*% %*/ /*% ripper: args_add!($1, bare_assoc_hash!($3)) %*/ } -#line 12569 "parse.c" +#line 12579 "parse.c" break; case 295: /* opt_call_args: assocs ',' */ -#line 3670 "parse.y" +#line 3680 "parse.y" { /*%%%*/ (yyval.node) = (yyvsp[-1].node) ? NEW_LIST(new_hash(p, (yyvsp[-1].node), &(yylsp[-1])), &(yylsp[-1])) : 0; /*% %*/ /*% ripper: args_add!(args_new!, bare_assoc_hash!($1)) %*/ } -#line 12580 "parse.c" +#line 12590 "parse.c" break; case 296: /* call_args: command */ -#line 3679 "parse.y" +#line 3689 "parse.y" { /*%%%*/ value_expr((yyvsp[0].node)); @@ -12588,22 +12598,22 @@ /*% %*/ /*% ripper: args_add!(args_new!, $1) %*/ } -#line 12592 "parse.c" +#line 12602 "parse.c" break; case 297: /* call_args: args opt_block_arg */ -#line 3687 "parse.y" +#line 3697 "parse.y" { /*%%%*/ (yyval.node) = arg_blk_pass((yyvsp[-1].node), (yyvsp[0].node_block_pass)); /*% %*/ /*% ripper: args_add_block!($1, $2) %*/ } -#line 12603 "parse.c" +#line 12613 "parse.c" break; case 298: /* call_args: assocs opt_block_arg */ -#line 3694 "parse.y" +#line 3704 "parse.y" { /*%%%*/ (yyval.node) = (yyvsp[-1].node) ? NEW_LIST(new_hash(p, (yyvsp[-1].node), &(yylsp[-1])), &(yylsp[-1])) : 0; @@ -12611,11 +12621,11 @@ /*% %*/ /*% ripper: args_add_block!(args_add!(args_new!, bare_assoc_hash!($1)), $2) %*/ } -#line 12615 "parse.c" +#line 12625 "parse.c" break; case 299: /* call_args: args ',' assocs opt_block_arg */ -#line 3702 "parse.y" +#line 3712 "parse.y" { /*%%%*/ (yyval.node) = (yyvsp[-1].node) ? arg_append(p, (yyvsp[-3].node), new_hash(p, (yyvsp[-1].node), &(yylsp[-1])), &(yyloc)) : (yyvsp[-3].node); @@ -12623,11 +12633,11 @@ /*% %*/ /*% ripper: args_add_block!(args_add!($1, bare_assoc_hash!($3)), $4) %*/ } -#line 12627 "parse.c" +#line 12637 "parse.c" break; case 301: /* $@13: %empty */ -#line 3713 "parse.y" +#line 3723 "parse.y" { /* If call_args starts with a open paren '(' or '[', * look-ahead reading of the letters calls CMDARG_PUSH(0), @@ -12645,11 +12655,11 @@ CMDARG_PUSH(1); if (lookahead) CMDARG_PUSH(0); } -#line 12649 "parse.c" +#line 12659 "parse.c" break; case 302: /* command_args: $@13 call_args */ -#line 3731 "parse.y" +#line 3741 "parse.y" { /* call_args can be followed by tLBRACE_ARG (that does CMDARG_PUSH(0) in the lexer) * but the push must be done after CMDARG_POP() in the parser. @@ -12667,22 +12677,22 @@ if (lookahead) CMDARG_PUSH(0); (yyval.node) = (yyvsp[0].node); } -#line 12671 "parse.c" +#line 12681 "parse.c" break; case 303: /* block_arg: "&" arg_value */ -#line 3751 "parse.y" +#line 3761 "parse.y" { /*%%%*/ (yyval.node_block_pass) = NEW_BLOCK_PASS((yyvsp[0].node), &(yyloc)); /*% %*/ /*% ripper: $2 %*/ } -#line 12682 "parse.c" +#line 12692 "parse.c" break; case 304: /* block_arg: "&" */ -#line 3758 "parse.y" +#line 3768 "parse.y" { forwarding_arg_check(p, idFWD_BLOCK, 0, "block"); /*%%%*/ @@ -12690,79 +12700,79 @@ /*% %*/ /*% ripper: Qnil %*/ } -#line 12694 "parse.c" +#line 12704 "parse.c" break; case 305: /* opt_block_arg: ',' block_arg */ -#line 3768 "parse.y" +#line 3778 "parse.y" { (yyval.node_block_pass) = (yyvsp[0].node_block_pass); } -#line 12702 "parse.c" +#line 12712 "parse.c" break; case 306: /* opt_block_arg: none */ -#line 3772 "parse.y" +#line 3782 "parse.y" { (yyval.node_block_pass) = 0; } -#line 12710 "parse.c" +#line 12720 "parse.c" break; case 307: /* args: arg_value */ -#line 3779 "parse.y" +#line 3789 "parse.y" { /*%%%*/ (yyval.node) = NEW_LIST((yyvsp[0].node), &(yyloc)); /*% %*/ /*% ripper: args_add!(args_new!, $1) %*/ } -#line 12721 "parse.c" +#line 12731 "parse.c" break; case 308: /* args: arg_splat */ -#line 3786 "parse.y" +#line 3796 "parse.y" { /*%%%*/ (yyval.node) = NEW_SPLAT((yyvsp[0].node), &(yyloc)); /*% %*/ /*% ripper: args_add_star!(args_new!, $arg_splat) %*/ } -#line 12732 "parse.c" +#line 12742 "parse.c" break; case 309: /* args: args ',' arg_value */ -#line 3793 "parse.y" +#line 3803 "parse.y" { /*%%%*/ (yyval.node) = last_arg_append(p, (yyvsp[-2].node), (yyvsp[0].node), &(yyloc)); /*% %*/ /*% ripper: args_add!($1, $3) %*/ } -#line 12743 "parse.c" +#line 12753 "parse.c" break; case 310: /* args: args ',' arg_splat */ -#line 3800 "parse.y" +#line 3810 "parse.y" { /*%%%*/ (yyval.node) = rest_arg_append(p, (yyvsp[-2].node), (yyvsp[0].node), &(yyloc)); /*% %*/ /*% ripper: args_add_star!($1, $3) %*/ } -#line 12754 "parse.c" +#line 12764 "parse.c" break; case 311: /* arg_splat: "*" arg_value */ -#line 3810 "parse.y" +#line 3820 "parse.y" { (yyval.node) = (yyvsp[0].node); } -#line 12762 "parse.c" +#line 12772 "parse.c" break; case 312: /* arg_splat: "*" */ -#line 3814 "parse.y" +#line 3824 "parse.y" { forwarding_arg_check(p, idFWD_REST, idFWD_ALL, "rest"); /*%%%*/ @@ -12770,63 +12780,63 @@ /*% %*/ /*% ripper: Qnil %*/ } -#line 12774 "parse.c" +#line 12784 "parse.c" break; case 315: /* mrhs: args ',' arg_value */ -#line 3830 "parse.y" +#line 3840 "parse.y" { /*%%%*/ (yyval.node) = last_arg_append(p, (yyvsp[-2].node), (yyvsp[0].node), &(yyloc)); /*% %*/ /*% ripper: mrhs_add!(mrhs_new_from_args!($1), $3) %*/ } -#line 12785 "parse.c" +#line 12795 "parse.c" break; case 316: /* mrhs: args ',' "*" arg_value */ -#line 3837 "parse.y" +#line 3847 "parse.y" { /*%%%*/ (yyval.node) = rest_arg_append(p, (yyvsp[-3].node), (yyvsp[0].node), &(yyloc)); /*% %*/ /*% ripper: mrhs_add_star!(mrhs_new_from_args!($1), $4) %*/ } -#line 12796 "parse.c" +#line 12806 "parse.c" break; case 317: /* mrhs: "*" arg_value */ -#line 3844 "parse.y" +#line 3854 "parse.y" { /*%%%*/ (yyval.node) = NEW_SPLAT((yyvsp[0].node), &(yyloc)); /*% %*/ /*% ripper: mrhs_add_star!(mrhs_new!, $2) %*/ } -#line 12807 "parse.c" +#line 12817 "parse.c" break; case 328: /* primary: "method" */ -#line 3863 "parse.y" +#line 3873 "parse.y" { /*%%%*/ (yyval.node) = (NODE *)NEW_FCALL((yyvsp[0].id), 0, &(yyloc)); /*% %*/ /*% ripper: method_add_arg!(fcall!($1), args_new!) %*/ } -#line 12818 "parse.c" +#line 12828 "parse.c" break; case 329: /* $@14: %empty */ -#line 3870 "parse.y" +#line 3880 "parse.y" { CMDARG_PUSH(0); } -#line 12826 "parse.c" +#line 12836 "parse.c" break; case 330: /* primary: k_begin $@14 bodystmt k_end */ -#line 3875 "parse.y" +#line 3885 "parse.y" { CMDARG_POP(); /*%%%*/ @@ -12836,17 +12846,17 @@ /*% %*/ /*% ripper: begin!($3) %*/ } -#line 12840 "parse.c" +#line 12850 "parse.c" break; case 331: /* $@15: %empty */ -#line 3884 "parse.y" +#line 3894 "parse.y" {SET_LEX_STATE(EXPR_ENDARG);} -#line 12846 "parse.c" +#line 12856 "parse.c" break; case 332: /* primary: "( arg" compstmt $@15 ')' */ -#line 3885 "parse.y" +#line 3895 "parse.y" { /*%%%*/ if (nd_type_p((yyvsp[-2].node), NODE_SELF)) RNODE_SELF((yyvsp[-2].node))->nd_state = 0; @@ -12854,11 +12864,11 @@ /*% %*/ /*% ripper: paren!($2) %*/ } -#line 12858 "parse.c" +#line 12868 "parse.c" break; case 333: /* primary: "(" compstmt ')' */ -#line 3893 "parse.y" +#line 3903 "parse.y" { /*%%%*/ if (nd_type_p((yyvsp[-1].node), NODE_SELF)) RNODE_SELF((yyvsp[-1].node))->nd_state = 0; @@ -12866,44 +12876,44 @@ /*% %*/ /*% ripper: paren!($2) %*/ } -#line 12870 "parse.c" +#line 12880 "parse.c" break; case 334: /* primary: primary_value "::" "constant" */ -#line 3901 "parse.y" +#line 3911 "parse.y" { /*%%%*/ (yyval.node) = NEW_COLON2((yyvsp[-2].node), (yyvsp[0].id), &(yyloc)); /*% %*/ /*% ripper: const_path_ref!($1, $3) %*/ } -#line 12881 "parse.c" +#line 12891 "parse.c" break; case 335: /* primary: ":: at EXPR_BEG" "constant" */ -#line 3908 "parse.y" +#line 3918 "parse.y" { /*%%%*/ (yyval.node) = NEW_COLON3((yyvsp[0].id), &(yyloc)); /*% %*/ /*% ripper: top_const_ref!($2) %*/ } -#line 12892 "parse.c" +#line 12902 "parse.c" break; case 336: /* primary: "[" aref_args ']' */ -#line 3915 "parse.y" +#line 3925 "parse.y" { /*%%%*/ (yyval.node) = make_list((yyvsp[-1].node), &(yyloc)); /*% %*/ /*% ripper: array!($2) %*/ } -#line 12903 "parse.c" +#line 12913 "parse.c" break; case 337: /* primary: "{" assoc_list '}' */ -#line 3922 "parse.y" +#line 3932 "parse.y" { /*%%%*/ (yyval.node) = new_hash(p, (yyvsp[-1].node), &(yyloc)); @@ -12911,91 +12921,91 @@ /*% %*/ /*% ripper: hash!($2) %*/ } -#line 12915 "parse.c" +#line 12925 "parse.c" break; case 338: /* primary: k_return */ -#line 3930 "parse.y" +#line 3940 "parse.y" { /*%%%*/ (yyval.node) = NEW_RETURN(0, &(yyloc)); /*% %*/ /*% ripper: return0! %*/ } -#line 12926 "parse.c" +#line 12936 "parse.c" break; case 339: /* primary: k_yield '(' call_args rparen */ -#line 3937 "parse.y" +#line 3947 "parse.y" { /*%%%*/ (yyval.node) = new_yield(p, (yyvsp[-1].node), &(yyloc)); /*% %*/ /*% ripper: yield!(paren!($3)) %*/ } -#line 12937 "parse.c" +#line 12947 "parse.c" break; case 340: /* primary: k_yield '(' rparen */ -#line 3944 "parse.y" +#line 3954 "parse.y" { /*%%%*/ (yyval.node) = NEW_YIELD(0, &(yyloc)); /*% %*/ /*% ripper: yield!(paren!(args_new!)) %*/ } -#line 12948 "parse.c" +#line 12958 "parse.c" break; case 341: /* primary: k_yield */ -#line 3951 "parse.y" +#line 3961 "parse.y" { /*%%%*/ (yyval.node) = NEW_YIELD(0, &(yyloc)); /*% %*/ /*% ripper: yield0! %*/ } -#line 12959 "parse.c" +#line 12969 "parse.c" break; case 342: /* primary: "`defined?'" opt_nl '(' begin_defined expr rparen */ -#line 3958 "parse.y" +#line 3968 "parse.y" { p->ctxt.in_defined = (yyvsp[-2].ctxt).in_defined; (yyval.node) = new_defined(p, (yyvsp[-1].node), &(yyloc)); } -#line 12968 "parse.c" +#line 12978 "parse.c" break; case 343: /* primary: "`not'" '(' expr rparen */ -#line 3963 "parse.y" +#line 3973 "parse.y" { (yyval.node) = call_uni_op(p, method_cond(p, (yyvsp[-1].node), &(yylsp[-1])), METHOD_NOT, &(yylsp[-3]), &(yyloc)); } -#line 12976 "parse.c" +#line 12986 "parse.c" break; case 344: /* primary: "`not'" '(' rparen */ -#line 3967 "parse.y" +#line 3977 "parse.y" { (yyval.node) = call_uni_op(p, method_cond(p, new_nil(&(yylsp[-1])), &(yylsp[-1])), METHOD_NOT, &(yylsp[-2]), &(yyloc)); } -#line 12984 "parse.c" +#line 12994 "parse.c" break; case 345: /* primary: fcall brace_block */ -#line 3971 "parse.y" +#line 3981 "parse.y" { /*%%%*/ (yyval.node) = method_add_block(p, (NODE *)(yyvsp[-1].node_fcall), (yyvsp[0].node), &(yyloc)); /*% %*/ /*% ripper: method_add_block!(method_add_arg!(fcall!($1), args_new!), $2) %*/ } -#line 12995 "parse.c" +#line 13005 "parse.c" break; case 347: /* primary: method_call brace_block */ -#line 3979 "parse.y" +#line 3989 "parse.y" { /*%%%*/ block_dup_check(p, get_nd_args(p, (yyvsp[-1].node)), (yyvsp[0].node)); @@ -13003,11 +13013,11 @@ /*% %*/ /*% ripper: method_add_block!($1, $2) %*/ } -#line 13007 "parse.c" +#line 13017 "parse.c" break; case 349: /* primary: k_if expr_value then compstmt if_tail k_end */ -#line 3991 "parse.y" +#line 4001 "parse.y" { /*%%%*/ (yyval.node) = new_if(p, (yyvsp[-4].node), (yyvsp[-2].node), (yyvsp[-1].node), &(yyloc)); @@ -13015,11 +13025,11 @@ /*% %*/ /*% ripper: if!($2, $4, $5) %*/ } -#line 13019 "parse.c" +#line 13029 "parse.c" break; case 350: /* primary: k_unless expr_value then compstmt opt_else k_end */ -#line 4002 "parse.y" +#line 4012 "parse.y" { /*%%%*/ (yyval.node) = new_unless(p, (yyvsp[-4].node), (yyvsp[-2].node), (yyvsp[-1].node), &(yyloc)); @@ -13027,11 +13037,11 @@ /*% %*/ /*% ripper: unless!($2, $4, $5) %*/ } -#line 13031 "parse.c" +#line 13041 "parse.c" break; case 351: /* primary: k_while expr_value_do compstmt k_end */ -#line 4012 "parse.y" +#line 4022 "parse.y" { restore_block_exit(p, (yyvsp[-3].node_exits)); /*%%%*/ @@ -13040,11 +13050,11 @@ /*% %*/ /*% ripper: while!($2, $3) %*/ } -#line 13044 "parse.c" +#line 13054 "parse.c" break; case 352: /* primary: k_until expr_value_do compstmt k_end */ -#line 4023 "parse.y" +#line 4033 "parse.y" { restore_block_exit(p, (yyvsp[-3].node_exits)); /*%%%*/ @@ -13053,20 +13063,20 @@ /*% %*/ /*% ripper: until!($2, $3) %*/ } -#line 13057 "parse.c" +#line 13067 "parse.c" break; case 353: /* @16: %empty */ -#line 4032 "parse.y" +#line 4042 "parse.y" { (yyval.val) = p->case_labels; p->case_labels = Qnil; } -#line 13066 "parse.c" +#line 13076 "parse.c" break; case 354: /* primary: k_case expr_value opt_terms @16 case_body k_end */ -#line 4038 "parse.y" +#line 4048 "parse.y" { if (RTEST(p->case_labels)) rb_hash_clear(p->case_labels); p->case_labels = (yyvsp[-2].val); @@ -13076,20 +13086,20 @@ /*% %*/ /*% ripper: case!($2, $5) %*/ } -#line 13080 "parse.c" +#line 13090 "parse.c" break; case 355: /* @17: %empty */ -#line 4048 "parse.y" +#line 4058 "parse.y" { (yyval.val) = p->case_labels; p->case_labels = 0; } -#line 13089 "parse.c" +#line 13099 "parse.c" break; case 356: /* primary: k_case opt_terms @17 case_body k_end */ -#line 4054 "parse.y" +#line 4064 "parse.y" { if (RTEST(p->case_labels)) rb_hash_clear(p->case_labels); p->case_labels = (yyvsp[-2].val); @@ -13098,22 +13108,22 @@ /*% %*/ /*% ripper: case!(Qnil, $4) %*/ } -#line 13102 "parse.c" +#line 13112 "parse.c" break; case 357: /* primary: k_case expr_value opt_terms p_case_body k_end */ -#line 4065 "parse.y" +#line 4075 "parse.y" { /*%%%*/ (yyval.node) = NEW_CASE3((yyvsp[-3].node), (yyvsp[-1].node), &(yyloc)); /*% %*/ /*% ripper: case!($2, $4) %*/ } -#line 13113 "parse.c" +#line 13123 "parse.c" break; case 358: /* primary: k_for for_var "`in'" expr_value_do compstmt k_end */ -#line 4074 "parse.y" +#line 4084 "parse.y" { restore_block_exit(p, (yyvsp[-5].node_exits)); /*%%%*/ @@ -13155,19 +13165,19 @@ /*% %*/ /*% ripper: for!($2, $4, $5) %*/ } -#line 13159 "parse.c" +#line 13169 "parse.c" break; case 359: /* $@18: %empty */ -#line 4116 "parse.y" +#line 4126 "parse.y" { begin_definition("class", &(yylsp[-2]), &(yylsp[-1])); } -#line 13167 "parse.c" +#line 13177 "parse.c" break; case 360: /* primary: k_class cpath superclass $@18 bodystmt k_end */ -#line 4121 "parse.y" +#line 4131 "parse.y" { /*%%%*/ (yyval.node) = NEW_CLASS((yyvsp[-4].node), (yyvsp[-1].node), (yyvsp[-3].node), &(yyloc)); @@ -13180,19 +13190,19 @@ p->ctxt.in_class = (yyvsp[-5].ctxt).in_class; p->ctxt.shareable_constant_value = (yyvsp[-5].ctxt).shareable_constant_value; } -#line 13184 "parse.c" +#line 13194 "parse.c" break; case 361: /* $@19: %empty */ -#line 4134 "parse.y" +#line 4144 "parse.y" { begin_definition("", &(yylsp[-2]), &(yylsp[-1])); } -#line 13192 "parse.c" +#line 13202 "parse.c" break; case 362: /* primary: k_class "<<" expr_value $@19 term bodystmt k_end */ -#line 4140 "parse.y" +#line 4150 "parse.y" { /*%%%*/ (yyval.node) = NEW_SCLASS((yyvsp[-4].node), (yyvsp[-1].node), &(yyloc)); @@ -13206,19 +13216,19 @@ p->ctxt.in_class = (yyvsp[-6].ctxt).in_class; p->ctxt.shareable_constant_value = (yyvsp[-6].ctxt).shareable_constant_value; } -#line 13210 "parse.c" +#line 13220 "parse.c" break; case 363: /* $@20: %empty */ -#line 4154 "parse.y" +#line 4164 "parse.y" { begin_definition("module", &(yylsp[-1]), &(yylsp[0])); } -#line 13218 "parse.c" +#line 13228 "parse.c" break; case 364: /* primary: k_module cpath $@20 bodystmt k_end */ -#line 4159 "parse.y" +#line 4169 "parse.y" { /*%%%*/ (yyval.node) = NEW_MODULE((yyvsp[-3].node), (yyvsp[-1].node), &(yyloc)); @@ -13231,21 +13241,21 @@ p->ctxt.in_class = (yyvsp[-4].ctxt).in_class; p->ctxt.shareable_constant_value = (yyvsp[-4].ctxt).shareable_constant_value; } -#line 13235 "parse.c" +#line 13245 "parse.c" break; case 365: /* $@21: %empty */ -#line 4173 "parse.y" +#line 4183 "parse.y" { /*%%%*/ push_end_expect_token_locations(p, &(yylsp[-1]).beg_pos); /*% %*/ } -#line 13245 "parse.c" +#line 13255 "parse.c" break; case 366: /* primary: defn_head f_arglist $@21 bodystmt k_end */ -#line 4180 "parse.y" +#line 4190 "parse.y" { restore_defun(p, (yyvsp[-4].node_def_temp)); /*%%%*/ @@ -13256,21 +13266,21 @@ /*% ripper: def!($head->nd_mid, $args, $bodystmt) %*/ local_pop(p); } -#line 13260 "parse.c" +#line 13270 "parse.c" break; case 367: /* $@22: %empty */ -#line 4192 "parse.y" +#line 4202 "parse.y" { /*%%%*/ push_end_expect_token_locations(p, &(yylsp[-1]).beg_pos); /*% %*/ } -#line 13270 "parse.c" +#line 13280 "parse.c" break; case 368: /* primary: defs_head f_arglist $@22 bodystmt k_end */ -#line 4199 "parse.y" +#line 4209 "parse.y" { restore_defun(p, (yyvsp[-4].node_def_temp)); /*%%%*/ @@ -13281,38 +13291,38 @@ /*% ripper: defs!($head->nd_recv, $head->dot_or_colon, $head->nd_mid, $args, $bodystmt) %*/ local_pop(p); } -#line 13285 "parse.c" +#line 13295 "parse.c" break; case 369: /* primary: "`break'" */ -#line 4210 "parse.y" +#line 4220 "parse.y" { (yyval.node) = add_block_exit(p, NEW_BREAK(0, &(yyloc))); /*% ripper: break!(args_new!) %*/ } -#line 13294 "parse.c" +#line 13304 "parse.c" break; case 370: /* primary: "`next'" */ -#line 4215 "parse.y" +#line 4225 "parse.y" { (yyval.node) = add_block_exit(p, NEW_NEXT(0, &(yyloc))); /*% ripper: next!(args_new!) %*/ } -#line 13303 "parse.c" +#line 13313 "parse.c" break; case 371: /* primary: "`redo'" */ -#line 4220 "parse.y" +#line 4230 "parse.y" { (yyval.node) = add_block_exit(p, NEW_REDO(&(yyloc))); /*% ripper: redo! %*/ } -#line 13312 "parse.c" +#line 13322 "parse.c" break; case 372: /* primary: "`retry'" */ -#line 4225 "parse.y" +#line 4235 "parse.y" { if (!p->ctxt.in_defined) { switch (p->ctxt.in_rescue) { @@ -13327,31 +13337,31 @@ /*% %*/ /*% ripper: retry! %*/ } -#line 13331 "parse.c" +#line 13341 "parse.c" break; case 373: /* primary_value: primary */ -#line 4242 "parse.y" +#line 4252 "parse.y" { value_expr((yyvsp[0].node)); (yyval.node) = (yyvsp[0].node); } -#line 13340 "parse.c" +#line 13350 "parse.c" break; case 374: /* k_begin: "`begin'" */ -#line 4249 "parse.y" +#line 4259 "parse.y" { token_info_push(p, "begin", &(yyloc)); /*%%%*/ push_end_expect_token_locations(p, &(yylsp[0]).beg_pos); /*% %*/ } -#line 13351 "parse.c" +#line 13361 "parse.c" break; case 375: /* k_if: "`if'" */ -#line 4258 "parse.y" +#line 4268 "parse.y" { WARN_EOL("if"); token_info_push(p, "if", &(yyloc)); @@ -13369,22 +13379,22 @@ push_end_expect_token_locations(p, &(yylsp[0]).beg_pos); /*% %*/ } -#line 13373 "parse.c" +#line 13383 "parse.c" break; case 376: /* k_unless: "`unless'" */ -#line 4278 "parse.y" +#line 4288 "parse.y" { token_info_push(p, "unless", &(yyloc)); /*%%%*/ push_end_expect_token_locations(p, &(yylsp[0]).beg_pos); /*% %*/ } -#line 13384 "parse.c" +#line 13394 "parse.c" break; case 377: /* k_while: "`while'" allow_exits */ -#line 4287 "parse.y" +#line 4297 "parse.y" { (yyval.node_exits) = (yyvsp[0].node_exits); token_info_push(p, "while", &(yyloc)); @@ -13392,11 +13402,11 @@ push_end_expect_token_locations(p, &(yylsp[-1]).beg_pos); /*% %*/ } -#line 13396 "parse.c" +#line 13406 "parse.c" break; case 378: /* k_until: "`until'" allow_exits */ -#line 4297 "parse.y" +#line 4307 "parse.y" { (yyval.node_exits) = (yyvsp[0].node_exits); token_info_push(p, "until", &(yyloc)); @@ -13404,22 +13414,22 @@ push_end_expect_token_locations(p, &(yylsp[-1]).beg_pos); /*% %*/ } -#line 13408 "parse.c" +#line 13418 "parse.c" break; case 379: /* k_case: "`case'" */ -#line 4307 "parse.y" +#line 4317 "parse.y" { token_info_push(p, "case", &(yyloc)); /*%%%*/ push_end_expect_token_locations(p, &(yylsp[0]).beg_pos); /*% %*/ } -#line 13419 "parse.c" +#line 13429 "parse.c" break; case 380: /* k_for: "`for'" allow_exits */ -#line 4316 "parse.y" +#line 4326 "parse.y" { (yyval.node_exits) = (yyvsp[0].node_exits); token_info_push(p, "for", &(yyloc)); @@ -13427,11 +13437,11 @@ push_end_expect_token_locations(p, &(yylsp[-1]).beg_pos); /*% %*/ } -#line 13431 "parse.c" +#line 13441 "parse.c" break; case 381: /* k_class: "`class'" */ -#line 4326 "parse.y" +#line 4336 "parse.y" { token_info_push(p, "class", &(yyloc)); (yyval.ctxt) = p->ctxt; @@ -13440,11 +13450,11 @@ push_end_expect_token_locations(p, &(yylsp[0]).beg_pos); /*% %*/ } -#line 13444 "parse.c" +#line 13454 "parse.c" break; case 382: /* k_module: "`module'" */ -#line 4337 "parse.y" +#line 4347 "parse.y" { token_info_push(p, "module", &(yyloc)); (yyval.ctxt) = p->ctxt; @@ -13453,70 +13463,70 @@ push_end_expect_token_locations(p, &(yylsp[0]).beg_pos); /*% %*/ } -#line 13457 "parse.c" +#line 13467 "parse.c" break; case 383: /* k_def: "`def'" */ -#line 4348 "parse.y" +#line 4358 "parse.y" { token_info_push(p, "def", &(yyloc)); (yyval.node_def_temp) = NEW_DEF_TEMP(&(yyloc)); p->ctxt.in_argdef = 1; } -#line 13467 "parse.c" +#line 13477 "parse.c" break; case 384: /* k_do: "`do'" */ -#line 4356 "parse.y" +#line 4366 "parse.y" { token_info_push(p, "do", &(yyloc)); /*%%%*/ push_end_expect_token_locations(p, &(yylsp[0]).beg_pos); /*% %*/ } -#line 13478 "parse.c" +#line 13488 "parse.c" break; case 385: /* k_do_block: "`do' for block" */ -#line 4365 "parse.y" +#line 4375 "parse.y" { token_info_push(p, "do", &(yyloc)); /*%%%*/ push_end_expect_token_locations(p, &(yylsp[0]).beg_pos); /*% %*/ } -#line 13489 "parse.c" +#line 13499 "parse.c" break; case 386: /* k_rescue: "`rescue'" */ -#line 4374 "parse.y" +#line 4384 "parse.y" { token_info_warn(p, "rescue", p->token_info, 1, &(yyloc)); (yyval.ctxt) = p->ctxt; p->ctxt.in_rescue = after_rescue; } -#line 13499 "parse.c" +#line 13509 "parse.c" break; case 387: /* k_ensure: "`ensure'" */ -#line 4382 "parse.y" +#line 4392 "parse.y" { token_info_warn(p, "ensure", p->token_info, 1, &(yyloc)); (yyval.ctxt) = p->ctxt; } -#line 13508 "parse.c" +#line 13518 "parse.c" break; case 388: /* k_when: "`when'" */ -#line 4389 "parse.y" +#line 4399 "parse.y" { token_info_warn(p, "when", p->token_info, 0, &(yyloc)); } -#line 13516 "parse.c" +#line 13526 "parse.c" break; case 389: /* k_else: "`else'" */ -#line 4395 "parse.y" +#line 4405 "parse.y" { token_info *ptinfo_beg = p->token_info; int same = ptinfo_beg && strcmp(ptinfo_beg->token, "case") != 0; @@ -13529,57 +13539,57 @@ if (!e.nonspc) *ptinfo_beg = e; } } -#line 13533 "parse.c" +#line 13543 "parse.c" break; case 390: /* k_elsif: "`elsif'" */ -#line 4410 "parse.y" +#line 4420 "parse.y" { WARN_EOL("elsif"); token_info_warn(p, "elsif", p->token_info, 1, &(yyloc)); } -#line 13542 "parse.c" +#line 13552 "parse.c" break; case 391: /* k_end: "`end'" */ -#line 4417 "parse.y" +#line 4427 "parse.y" { token_info_pop(p, "end", &(yyloc)); /*%%%*/ pop_end_expect_token_locations(p); /*% %*/ } -#line 13553 "parse.c" +#line 13563 "parse.c" break; case 392: /* k_end: "dummy end" */ -#line 4424 "parse.y" +#line 4434 "parse.y" { compile_error(p, "syntax error, unexpected end-of-input"); } -#line 13561 "parse.c" +#line 13571 "parse.c" break; case 393: /* k_return: "`return'" */ -#line 4430 "parse.y" +#line 4440 "parse.y" { if (p->ctxt.in_class && !p->ctxt.in_def && !dyna_in_block(p)) yyerror1(&(yylsp[0]), "Invalid return in class/module body"); } -#line 13570 "parse.c" +#line 13580 "parse.c" break; case 394: /* k_yield: "`yield'" */ -#line 4437 "parse.y" +#line 4447 "parse.y" { if (!p->ctxt.in_defined && !p->ctxt.in_def && !compile_for_eval) yyerror1(&(yylsp[0]), "Invalid yield"); } -#line 13579 "parse.c" +#line 13589 "parse.c" break; case 401: /* if_tail: k_elsif expr_value then compstmt if_tail */ -#line 4456 "parse.y" +#line 4466 "parse.y" { /*%%%*/ (yyval.node) = new_if(p, (yyvsp[-3].node), (yyvsp[-1].node), (yyvsp[0].node), &(yyloc)); @@ -13587,22 +13597,22 @@ /*% %*/ /*% ripper: elsif!($2, $4, $5) %*/ } -#line 13591 "parse.c" +#line 13601 "parse.c" break; case 403: /* opt_else: k_else compstmt */ -#line 4467 "parse.y" +#line 4477 "parse.y" { /*%%%*/ (yyval.node) = (yyvsp[0].node); /*% %*/ /*% ripper: else!($2) %*/ } -#line 13602 "parse.c" +#line 13612 "parse.c" break; case 406: /* f_marg: f_norm_arg */ -#line 4480 "parse.y" +#line 4490 "parse.y" { /*%%%*/ (yyval.node) = assignable(p, (yyvsp[0].id), 0, &(yyloc)); @@ -13610,99 +13620,99 @@ /*% %*/ /*% ripper: assignable(p, $1) %*/ } -#line 13614 "parse.c" +#line 13624 "parse.c" break; case 407: /* f_marg: "(" f_margs rparen */ -#line 4488 "parse.y" +#line 4498 "parse.y" { /*%%%*/ (yyval.node) = (NODE *)(yyvsp[-1].node_masgn); /*% %*/ /*% ripper: mlhs_paren!($2) %*/ } -#line 13625 "parse.c" +#line 13635 "parse.c" break; case 408: /* f_marg_list: f_marg */ -#line 4497 "parse.y" +#line 4507 "parse.y" { /*%%%*/ (yyval.node) = NEW_LIST((yyvsp[0].node), &(yyloc)); /*% %*/ /*% ripper: mlhs_add!(mlhs_new!, $1) %*/ } -#line 13636 "parse.c" +#line 13646 "parse.c" break; case 409: /* f_marg_list: f_marg_list ',' f_marg */ -#line 4504 "parse.y" +#line 4514 "parse.y" { /*%%%*/ (yyval.node) = list_append(p, (yyvsp[-2].node), (yyvsp[0].node)); /*% %*/ /*% ripper: mlhs_add!($1, $3) %*/ } -#line 13647 "parse.c" +#line 13657 "parse.c" break; case 410: /* f_margs: f_marg_list */ -#line 4513 "parse.y" +#line 4523 "parse.y" { /*%%%*/ (yyval.node_masgn) = NEW_MASGN((yyvsp[0].node), 0, &(yyloc)); /*% %*/ /*% ripper: $1 %*/ } -#line 13658 "parse.c" +#line 13668 "parse.c" break; case 411: /* f_margs: f_marg_list ',' f_rest_marg */ -#line 4520 "parse.y" +#line 4530 "parse.y" { /*%%%*/ (yyval.node_masgn) = NEW_MASGN((yyvsp[-2].node), (yyvsp[0].node), &(yyloc)); /*% %*/ /*% ripper: mlhs_add_star!($1, $3) %*/ } -#line 13669 "parse.c" +#line 13679 "parse.c" break; case 412: /* f_margs: f_marg_list ',' f_rest_marg ',' f_marg_list */ -#line 4527 "parse.y" +#line 4537 "parse.y" { /*%%%*/ (yyval.node_masgn) = NEW_MASGN((yyvsp[-4].node), NEW_POSTARG((yyvsp[-2].node), (yyvsp[0].node), &(yyloc)), &(yyloc)); /*% %*/ /*% ripper: mlhs_add_post!(mlhs_add_star!($1, $3), $5) %*/ } -#line 13680 "parse.c" +#line 13690 "parse.c" break; case 413: /* f_margs: f_rest_marg */ -#line 4534 "parse.y" +#line 4544 "parse.y" { /*%%%*/ (yyval.node_masgn) = NEW_MASGN(0, (yyvsp[0].node), &(yyloc)); /*% %*/ /*% ripper: mlhs_add_star!(mlhs_new!, $1) %*/ } -#line 13691 "parse.c" +#line 13701 "parse.c" break; case 414: /* f_margs: f_rest_marg ',' f_marg_list */ -#line 4541 "parse.y" +#line 4551 "parse.y" { /*%%%*/ (yyval.node_masgn) = NEW_MASGN(0, NEW_POSTARG((yyvsp[-2].node), (yyvsp[0].node), &(yyloc)), &(yyloc)); /*% %*/ /*% ripper: mlhs_add_post!(mlhs_add_star!(mlhs_new!, $1), $3) %*/ } -#line 13702 "parse.c" +#line 13712 "parse.c" break; case 415: /* f_rest_marg: "*" f_norm_arg */ -#line 4550 "parse.y" +#line 4560 "parse.y" { /*%%%*/ (yyval.node) = assignable(p, (yyvsp[0].id), 0, &(yyloc)); @@ -13710,82 +13720,82 @@ /*% %*/ /*% ripper: assignable(p, $2) %*/ } -#line 13714 "parse.c" +#line 13724 "parse.c" break; case 416: /* f_rest_marg: "*" */ -#line 4558 "parse.y" +#line 4568 "parse.y" { /*%%%*/ (yyval.node) = NODE_SPECIAL_NO_NAME_REST; /*% %*/ /*% ripper: Qnil %*/ } -#line 13725 "parse.c" +#line 13735 "parse.c" break; case 418: /* f_any_kwrest: f_no_kwarg */ -#line 4567 "parse.y" +#line 4577 "parse.y" {(yyval.id) = ID2VAL(idNil);} -#line 13731 "parse.c" +#line 13741 "parse.c" break; case 419: /* $@23: %empty */ -#line 4570 "parse.y" +#line 4580 "parse.y" {p->ctxt.in_argdef = 0;} -#line 13737 "parse.c" +#line 13747 "parse.c" break; case 421: /* block_args_tail: f_block_kwarg ',' f_kwrest opt_f_block_arg */ -#line 4573 "parse.y" +#line 4583 "parse.y" { (yyval.node_args) = new_args_tail(p, (yyvsp[-3].node_kw_arg), (yyvsp[-1].id), (yyvsp[0].id), &(yylsp[-1])); } -#line 13745 "parse.c" +#line 13755 "parse.c" break; case 422: /* block_args_tail: f_block_kwarg opt_f_block_arg */ -#line 4577 "parse.y" +#line 4587 "parse.y" { (yyval.node_args) = new_args_tail(p, (yyvsp[-1].node_kw_arg), Qnone, (yyvsp[0].id), &(yylsp[-1])); } -#line 13753 "parse.c" +#line 13763 "parse.c" break; case 423: /* block_args_tail: f_any_kwrest opt_f_block_arg */ -#line 4581 "parse.y" +#line 4591 "parse.y" { (yyval.node_args) = new_args_tail(p, Qnone, (yyvsp[-1].id), (yyvsp[0].id), &(yylsp[-1])); } -#line 13761 "parse.c" +#line 13771 "parse.c" break; case 424: /* block_args_tail: f_block_arg */ -#line 4585 "parse.y" +#line 4595 "parse.y" { (yyval.node_args) = new_args_tail(p, Qnone, Qnone, (yyvsp[0].id), &(yylsp[0])); } -#line 13769 "parse.c" +#line 13779 "parse.c" break; case 425: /* opt_block_args_tail: ',' block_args_tail */ -#line 4591 "parse.y" +#line 4601 "parse.y" { (yyval.node_args) = (yyvsp[0].node_args); } -#line 13777 "parse.c" +#line 13787 "parse.c" break; case 426: /* opt_block_args_tail: %empty */ -#line 4595 "parse.y" +#line 4605 "parse.y" { (yyval.node_args) = new_args_tail(p, Qnone, Qnone, Qnone, &(yylsp[0])); } -#line 13785 "parse.c" +#line 13795 "parse.c" break; case 427: /* excessed_comma: ',' */ -#line 4601 "parse.y" +#line 4611 "parse.y" { /* magic number for rest_id in iseq_set_arguments() */ /*%%%*/ @@ -13793,140 +13803,140 @@ /*% %*/ /*% ripper: excessed_comma! %*/ } -#line 13797 "parse.c" +#line 13807 "parse.c" break; case 428: /* block_param: f_arg ',' f_block_optarg ',' f_rest_arg opt_block_args_tail */ -#line 4611 "parse.y" +#line 4621 "parse.y" { (yyval.node_args) = new_args(p, (yyvsp[-5].node_args_aux), (yyvsp[-3].node_opt_arg), (yyvsp[-1].id), Qnone, (yyvsp[0].node_args), &(yyloc)); } -#line 13805 "parse.c" +#line 13815 "parse.c" break; case 429: /* block_param: f_arg ',' f_block_optarg ',' f_rest_arg ',' f_arg opt_block_args_tail */ -#line 4615 "parse.y" +#line 4625 "parse.y" { (yyval.node_args) = new_args(p, (yyvsp[-7].node_args_aux), (yyvsp[-5].node_opt_arg), (yyvsp[-3].id), (yyvsp[-1].node_args_aux), (yyvsp[0].node_args), &(yyloc)); } -#line 13813 "parse.c" +#line 13823 "parse.c" break; case 430: /* block_param: f_arg ',' f_block_optarg opt_block_args_tail */ -#line 4619 "parse.y" +#line 4629 "parse.y" { (yyval.node_args) = new_args(p, (yyvsp[-3].node_args_aux), (yyvsp[-1].node_opt_arg), Qnone, Qnone, (yyvsp[0].node_args), &(yyloc)); } -#line 13821 "parse.c" +#line 13831 "parse.c" break; case 431: /* block_param: f_arg ',' f_block_optarg ',' f_arg opt_block_args_tail */ -#line 4623 "parse.y" +#line 4633 "parse.y" { (yyval.node_args) = new_args(p, (yyvsp[-5].node_args_aux), (yyvsp[-3].node_opt_arg), Qnone, (yyvsp[-1].node_args_aux), (yyvsp[0].node_args), &(yyloc)); } -#line 13829 "parse.c" +#line 13839 "parse.c" break; case 432: /* block_param: f_arg ',' f_rest_arg opt_block_args_tail */ -#line 4627 "parse.y" +#line 4637 "parse.y" { (yyval.node_args) = new_args(p, (yyvsp[-3].node_args_aux), Qnone, (yyvsp[-1].id), Qnone, (yyvsp[0].node_args), &(yyloc)); } -#line 13837 "parse.c" +#line 13847 "parse.c" break; case 433: /* block_param: f_arg excessed_comma */ -#line 4631 "parse.y" +#line 4641 "parse.y" { (yyval.node_args) = new_args_tail(p, Qnone, Qnone, Qnone, &(yylsp[0])); (yyval.node_args) = new_args(p, (yyvsp[-1].node_args_aux), Qnone, (yyvsp[0].id), Qnone, (yyval.node_args), &(yyloc)); } -#line 13846 "parse.c" +#line 13856 "parse.c" break; case 434: /* block_param: f_arg ',' f_rest_arg ',' f_arg opt_block_args_tail */ -#line 4636 "parse.y" +#line 4646 "parse.y" { (yyval.node_args) = new_args(p, (yyvsp[-5].node_args_aux), Qnone, (yyvsp[-3].id), (yyvsp[-1].node_args_aux), (yyvsp[0].node_args), &(yyloc)); } -#line 13854 "parse.c" +#line 13864 "parse.c" break; case 435: /* block_param: f_arg opt_block_args_tail */ -#line 4640 "parse.y" +#line 4650 "parse.y" { (yyval.node_args) = new_args(p, (yyvsp[-1].node_args_aux), Qnone, Qnone, Qnone, (yyvsp[0].node_args), &(yyloc)); } -#line 13862 "parse.c" +#line 13872 "parse.c" break; case 436: /* block_param: f_block_optarg ',' f_rest_arg opt_block_args_tail */ -#line 4644 "parse.y" +#line 4654 "parse.y" { (yyval.node_args) = new_args(p, Qnone, (yyvsp[-3].node_opt_arg), (yyvsp[-1].id), Qnone, (yyvsp[0].node_args), &(yyloc)); } -#line 13870 "parse.c" +#line 13880 "parse.c" break; case 437: /* block_param: f_block_optarg ',' f_rest_arg ',' f_arg opt_block_args_tail */ -#line 4648 "parse.y" +#line 4658 "parse.y" { (yyval.node_args) = new_args(p, Qnone, (yyvsp[-5].node_opt_arg), (yyvsp[-3].id), (yyvsp[-1].node_args_aux), (yyvsp[0].node_args), &(yyloc)); } -#line 13878 "parse.c" +#line 13888 "parse.c" break; case 438: /* block_param: f_block_optarg opt_block_args_tail */ -#line 4652 "parse.y" +#line 4662 "parse.y" { (yyval.node_args) = new_args(p, Qnone, (yyvsp[-1].node_opt_arg), Qnone, Qnone, (yyvsp[0].node_args), &(yyloc)); } -#line 13886 "parse.c" +#line 13896 "parse.c" break; case 439: /* block_param: f_block_optarg ',' f_arg opt_block_args_tail */ -#line 4656 "parse.y" +#line 4666 "parse.y" { (yyval.node_args) = new_args(p, Qnone, (yyvsp[-3].node_opt_arg), Qnone, (yyvsp[-1].node_args_aux), (yyvsp[0].node_args), &(yyloc)); } -#line 13894 "parse.c" +#line 13904 "parse.c" break; case 440: /* block_param: f_rest_arg opt_block_args_tail */ -#line 4660 "parse.y" +#line 4670 "parse.y" { (yyval.node_args) = new_args(p, Qnone, Qnone, (yyvsp[-1].id), Qnone, (yyvsp[0].node_args), &(yyloc)); } -#line 13902 "parse.c" +#line 13912 "parse.c" break; case 441: /* block_param: f_rest_arg ',' f_arg opt_block_args_tail */ -#line 4664 "parse.y" +#line 4674 "parse.y" { (yyval.node_args) = new_args(p, Qnone, Qnone, (yyvsp[-3].id), (yyvsp[-1].node_args_aux), (yyvsp[0].node_args), &(yyloc)); } -#line 13910 "parse.c" +#line 13920 "parse.c" break; case 442: /* block_param: block_args_tail */ -#line 4668 "parse.y" +#line 4678 "parse.y" { (yyval.node_args) = new_args(p, Qnone, Qnone, Qnone, Qnone, (yyvsp[0].node_args), &(yyloc)); } -#line 13918 "parse.c" +#line 13928 "parse.c" break; case 444: /* opt_block_param: block_param_def */ -#line 4675 "parse.y" +#line 4685 "parse.y" { p->command_start = TRUE; } -#line 13926 "parse.c" +#line 13936 "parse.c" break; case 445: /* block_param_def: '|' opt_bv_decl '|' */ -#line 4681 "parse.y" +#line 4691 "parse.y" { p->cur_arg = 0; p->max_numparam = ORDINAL_PARAM; @@ -13937,11 +13947,11 @@ /*% ripper: params!(Qnil,Qnil,Qnil,Qnil,Qnil,Qnil,Qnil) %*/ /*% ripper: block_var!($$, $2) %*/ } -#line 13941 "parse.c" +#line 13951 "parse.c" break; case 446: /* block_param_def: '|' block_param opt_bv_decl '|' */ -#line 4692 "parse.y" +#line 4702 "parse.y" { p->cur_arg = 0; p->max_numparam = ORDINAL_PARAM; @@ -13951,83 +13961,83 @@ /*% %*/ /*% ripper: block_var!($2, $3) %*/ } -#line 13955 "parse.c" +#line 13965 "parse.c" break; case 447: /* opt_bv_decl: opt_nl */ -#line 4705 "parse.y" +#line 4715 "parse.y" { (yyval.node) = 0; } -#line 13963 "parse.c" +#line 13973 "parse.c" break; case 448: /* opt_bv_decl: opt_nl ';' bv_decls opt_nl */ -#line 4709 "parse.y" +#line 4719 "parse.y" { /*%%%*/ (yyval.node) = 0; /*% %*/ /*% ripper: $3 %*/ } -#line 13974 "parse.c" +#line 13984 "parse.c" break; case 451: /* bvar: "local variable or method" */ -#line 4724 "parse.y" +#line 4734 "parse.y" { new_bv(p, get_id((yyvsp[0].id))); /*% ripper: get_value($1) %*/ } -#line 13983 "parse.c" +#line 13993 "parse.c" break; case 452: /* bvar: f_bad_arg */ -#line 4729 "parse.y" +#line 4739 "parse.y" { (yyval.node) = 0; } -#line 13991 "parse.c" +#line 14001 "parse.c" break; case 453: /* max_numparam: %empty */ -#line 4734 "parse.y" +#line 4744 "parse.y" { (yyval.num) = p->max_numparam; p->max_numparam = 0; } -#line 14000 "parse.c" +#line 14010 "parse.c" break; case 454: /* numparam: %empty */ -#line 4740 "parse.y" +#line 4750 "parse.y" { (yyval.node) = numparam_push(p); } -#line 14008 "parse.c" +#line 14018 "parse.c" break; case 455: /* @24: %empty */ -#line 4746 "parse.y" +#line 4756 "parse.y" { token_info_push(p, "->", &(yylsp[0])); (yyvsp[0].vars) = dyna_push(p); (yyval.num) = p->lex.lpar_beg; p->lex.lpar_beg = p->lex.paren_nest; } -#line 14019 "parse.c" +#line 14029 "parse.c" break; case 456: /* $@25: %empty */ -#line 4754 "parse.y" +#line 4764 "parse.y" { CMDARG_PUSH(0); } -#line 14027 "parse.c" +#line 14037 "parse.c" break; case 457: /* lambda: "->" @24 max_numparam numparam allow_exits f_larglist $@25 lambda_body */ -#line 4758 "parse.y" +#line 4768 "parse.y" { int max_numparam = p->max_numparam; p->lex.lpar_beg = (yyvsp[-6].num); @@ -14048,11 +14058,11 @@ numparam_pop(p, (yyvsp[-4].node)); dyna_pop(p, (yyvsp[-7].vars)); } -#line 14052 "parse.c" +#line 14062 "parse.c" break; case 458: /* f_larglist: '(' f_args opt_bv_decl ')' */ -#line 4781 "parse.y" +#line 4791 "parse.y" { p->ctxt.in_argdef = 0; /*%%%*/ @@ -14061,11 +14071,11 @@ /*% %*/ /*% ripper: paren!($2) %*/ } -#line 14065 "parse.c" +#line 14075 "parse.c" break; case 459: /* f_larglist: f_args */ -#line 4790 "parse.y" +#line 4800 "parse.y" { p->ctxt.in_argdef = 0; /*%%%*/ @@ -14074,49 +14084,49 @@ /*% %*/ (yyval.node_args) = (yyvsp[0].node_args); } -#line 14078 "parse.c" +#line 14088 "parse.c" break; case 460: /* lambda_body: tLAMBEG compstmt '}' */ -#line 4801 "parse.y" +#line 4811 "parse.y" { token_info_pop(p, "}", &(yylsp[0])); (yyval.node) = (yyvsp[-1].node); } -#line 14087 "parse.c" +#line 14097 "parse.c" break; case 461: /* $@26: %empty */ -#line 4806 "parse.y" +#line 4816 "parse.y" { /*%%%*/ push_end_expect_token_locations(p, &(yylsp[0]).beg_pos); /*% %*/ } -#line 14097 "parse.c" +#line 14107 "parse.c" break; case 462: /* lambda_body: "`do' for lambda" $@26 bodystmt k_end */ -#line 4812 "parse.y" +#line 4822 "parse.y" { (yyval.node) = (yyvsp[-1].node); } -#line 14105 "parse.c" +#line 14115 "parse.c" break; case 463: /* do_block: k_do_block do_body k_end */ -#line 4818 "parse.y" +#line 4828 "parse.y" { (yyval.node) = (yyvsp[-1].node); /*%%%*/ set_embraced_location((yyval.node), &(yylsp[-2]), &(yylsp[0])); /*% %*/ } -#line 14116 "parse.c" +#line 14126 "parse.c" break; case 464: /* block_call: command do_block */ -#line 4827 "parse.y" +#line 4837 "parse.y" { /*%%%*/ if (nd_type_p((yyvsp[-1].node), NODE_YIELD)) { @@ -14130,44 +14140,44 @@ /*% %*/ /*% ripper: method_add_block!($1, $2) %*/ } -#line 14134 "parse.c" +#line 14144 "parse.c" break; case 465: /* block_call: block_call call_op2 operation2 opt_paren_args */ -#line 4841 "parse.y" +#line 4851 "parse.y" { /*%%%*/ (yyval.node) = new_qcall(p, (yyvsp[-2].id), (yyvsp[-3].node), (yyvsp[-1].id), (yyvsp[0].node), &(yylsp[-1]), &(yyloc)); /*% %*/ /*% ripper: opt_event(:method_add_arg!, call!($1, $2, $3), $4) %*/ } -#line 14145 "parse.c" +#line 14155 "parse.c" break; case 466: /* block_call: block_call call_op2 operation2 opt_paren_args brace_block */ -#line 4848 "parse.y" +#line 4858 "parse.y" { /*%%%*/ (yyval.node) = new_command_qcall(p, (yyvsp[-3].id), (yyvsp[-4].node), (yyvsp[-2].id), (yyvsp[-1].node), (yyvsp[0].node), &(yylsp[-2]), &(yyloc)); /*% %*/ /*% ripper: opt_event(:method_add_block!, command_call!($1, $2, $3, $4), $5) %*/ } -#line 14156 "parse.c" +#line 14166 "parse.c" break; case 467: /* block_call: block_call call_op2 operation2 command_args do_block */ -#line 4855 "parse.y" +#line 4865 "parse.y" { /*%%%*/ (yyval.node) = new_command_qcall(p, (yyvsp[-3].id), (yyvsp[-4].node), (yyvsp[-2].id), (yyvsp[-1].node), (yyvsp[0].node), &(yylsp[-2]), &(yyloc)); /*% %*/ /*% ripper: method_add_block!(command_call!($1, $2, $3, $4), $5) %*/ } -#line 14167 "parse.c" +#line 14177 "parse.c" break; case 468: /* method_call: fcall paren_args */ -#line 4864 "parse.y" +#line 4874 "parse.y" { /*%%%*/ (yyvsp[-1].node_fcall)->nd_args = (yyvsp[0].node); @@ -14176,11 +14186,11 @@ /*% %*/ /*% ripper: method_add_arg!(fcall!($1), $2) %*/ } -#line 14180 "parse.c" +#line 14190 "parse.c" break; case 469: /* method_call: primary_value call_op operation2 opt_paren_args */ -#line 4873 "parse.y" +#line 4883 "parse.y" { /*%%%*/ (yyval.node) = new_qcall(p, (yyvsp[-2].id), (yyvsp[-3].node), (yyvsp[-1].id), (yyvsp[0].node), &(yylsp[-1]), &(yyloc)); @@ -14188,11 +14198,11 @@ /*% %*/ /*% ripper: opt_event(:method_add_arg!, call!($1, $2, $3), $4) %*/ } -#line 14192 "parse.c" +#line 14202 "parse.c" break; case 470: /* method_call: primary_value "::" operation2 paren_args */ -#line 4881 "parse.y" +#line 4891 "parse.y" { /*%%%*/ (yyval.node) = new_qcall(p, ID2VAL(idCOLON2), (yyvsp[-3].node), (yyvsp[-1].id), (yyvsp[0].node), &(yylsp[-1]), &(yyloc)); @@ -14200,22 +14210,22 @@ /*% %*/ /*% ripper: method_add_arg!(call!($1, $2, $3), $4) %*/ } -#line 14204 "parse.c" +#line 14214 "parse.c" break; case 471: /* method_call: primary_value "::" operation3 */ -#line 4889 "parse.y" +#line 4899 "parse.y" { /*%%%*/ (yyval.node) = new_qcall(p, ID2VAL(idCOLON2), (yyvsp[-2].node), (yyvsp[0].id), Qnull, &(yylsp[0]), &(yyloc)); /*% %*/ /*% ripper: call!($1, $2, $3) %*/ } -#line 14215 "parse.c" +#line 14225 "parse.c" break; case 472: /* method_call: primary_value call_op paren_args */ -#line 4896 "parse.y" +#line 4906 "parse.y" { /*%%%*/ (yyval.node) = new_qcall(p, (yyvsp[-1].id), (yyvsp[-2].node), ID2VAL(idCall), (yyvsp[0].node), &(yylsp[-1]), &(yyloc)); @@ -14223,11 +14233,11 @@ /*% %*/ /*% ripper: method_add_arg!(call!($1, $2, ID2VAL(idCall)), $3) %*/ } -#line 14227 "parse.c" +#line 14237 "parse.c" break; case 473: /* method_call: primary_value "::" paren_args */ -#line 4904 "parse.y" +#line 4914 "parse.y" { /*%%%*/ (yyval.node) = new_qcall(p, ID2VAL(idCOLON2), (yyvsp[-2].node), ID2VAL(idCall), (yyvsp[0].node), &(yylsp[-1]), &(yyloc)); @@ -14235,33 +14245,33 @@ /*% %*/ /*% ripper: method_add_arg!(call!($1, $2, ID2VAL(idCall)), $3) %*/ } -#line 14239 "parse.c" +#line 14249 "parse.c" break; case 474: /* method_call: "`super'" paren_args */ -#line 4912 "parse.y" +#line 4922 "parse.y" { /*%%%*/ (yyval.node) = NEW_SUPER((yyvsp[0].node), &(yyloc)); /*% %*/ /*% ripper: super!($2) %*/ } -#line 14250 "parse.c" +#line 14260 "parse.c" break; case 475: /* method_call: "`super'" */ -#line 4919 "parse.y" +#line 4929 "parse.y" { /*%%%*/ (yyval.node) = NEW_ZSUPER(&(yyloc)); /*% %*/ /*% ripper: zsuper! %*/ } -#line 14261 "parse.c" +#line 14271 "parse.c" break; case 476: /* method_call: primary_value '[' opt_call_args rbracket */ -#line 4926 "parse.y" +#line 4936 "parse.y" { /*%%%*/ (yyval.node) = NEW_CALL((yyvsp[-3].node), tAREF, (yyvsp[-1].node), &(yyloc)); @@ -14269,39 +14279,39 @@ /*% %*/ /*% ripper: aref!($1, $3) %*/ } -#line 14273 "parse.c" +#line 14283 "parse.c" break; case 477: /* brace_block: '{' brace_body '}' */ -#line 4936 "parse.y" +#line 4946 "parse.y" { (yyval.node) = (yyvsp[-1].node); /*%%%*/ set_embraced_location((yyval.node), &(yylsp[-2]), &(yylsp[0])); /*% %*/ } -#line 14284 "parse.c" +#line 14294 "parse.c" break; case 478: /* brace_block: k_do do_body k_end */ -#line 4943 "parse.y" +#line 4953 "parse.y" { (yyval.node) = (yyvsp[-1].node); /*%%%*/ set_embraced_location((yyval.node), &(yylsp[-2]), &(yylsp[0])); /*% %*/ } -#line 14295 "parse.c" +#line 14305 "parse.c" break; case 479: /* @27: %empty */ -#line 4951 "parse.y" +#line 4961 "parse.y" {(yyval.vars) = dyna_push(p);} -#line 14301 "parse.c" +#line 14311 "parse.c" break; case 480: /* brace_body: @27 max_numparam numparam allow_exits opt_block_param compstmt */ -#line 4954 "parse.y" +#line 4964 "parse.y" { int max_numparam = p->max_numparam; p->max_numparam = (yyvsp[-4].num); @@ -14314,20 +14324,20 @@ numparam_pop(p, (yyvsp[-3].node)); dyna_pop(p, (yyvsp[-5].vars)); } -#line 14318 "parse.c" +#line 14328 "parse.c" break; case 481: /* @28: %empty */ -#line 4968 "parse.y" +#line 4978 "parse.y" { (yyval.vars) = dyna_push(p); CMDARG_PUSH(0); } -#line 14327 "parse.c" +#line 14337 "parse.c" break; case 482: /* do_body: @28 max_numparam numparam allow_exits opt_block_param bodystmt */ -#line 4974 "parse.y" +#line 4984 "parse.y" { int max_numparam = p->max_numparam; p->max_numparam = (yyvsp[-4].num); @@ -14341,11 +14351,11 @@ numparam_pop(p, (yyvsp[-3].node)); dyna_pop(p, (yyvsp[-5].vars)); } -#line 14345 "parse.c" +#line 14355 "parse.c" break; case 483: /* case_args: arg_value */ -#line 4990 "parse.y" +#line 5000 "parse.y" { /*%%%*/ check_literal_when(p, (yyvsp[0].node), &(yylsp[0])); @@ -14353,22 +14363,22 @@ /*% %*/ /*% ripper: args_add!(args_new!, $1) %*/ } -#line 14357 "parse.c" +#line 14367 "parse.c" break; case 484: /* case_args: "*" arg_value */ -#line 4998 "parse.y" +#line 5008 "parse.y" { /*%%%*/ (yyval.node) = NEW_SPLAT((yyvsp[0].node), &(yyloc)); /*% %*/ /*% ripper: args_add_star!(args_new!, $2) %*/ } -#line 14368 "parse.c" +#line 14378 "parse.c" break; case 485: /* case_args: case_args ',' arg_value */ -#line 5005 "parse.y" +#line 5015 "parse.y" { /*%%%*/ check_literal_when(p, (yyvsp[0].node), &(yylsp[0])); @@ -14376,22 +14386,22 @@ /*% %*/ /*% ripper: args_add!($1, $3) %*/ } -#line 14380 "parse.c" +#line 14390 "parse.c" break; case 486: /* case_args: case_args ',' "*" arg_value */ -#line 5013 "parse.y" +#line 5023 "parse.y" { /*%%%*/ (yyval.node) = rest_arg_append(p, (yyvsp[-3].node), (yyvsp[0].node), &(yyloc)); /*% %*/ /*% ripper: args_add_star!($1, $4) %*/ } -#line 14391 "parse.c" +#line 14401 "parse.c" break; case 487: /* case_body: k_when case_args then compstmt cases */ -#line 5024 "parse.y" +#line 5034 "parse.y" { /*%%%*/ (yyval.node) = NEW_WHEN((yyvsp[-3].node), (yyvsp[-1].node), (yyvsp[0].node), &(yyloc)); @@ -14399,55 +14409,55 @@ /*% %*/ /*% ripper: when!($2, $4, $5) %*/ } -#line 14403 "parse.c" +#line 14413 "parse.c" break; case 490: /* p_pvtbl: %empty */ -#line 5037 "parse.y" +#line 5047 "parse.y" {(yyval.tbl) = p->pvtbl; p->pvtbl = st_init_numtable();} -#line 14409 "parse.c" +#line 14419 "parse.c" break; case 491: /* p_pktbl: %empty */ -#line 5038 "parse.y" +#line 5048 "parse.y" {(yyval.tbl) = p->pktbl; p->pktbl = 0;} -#line 14415 "parse.c" +#line 14425 "parse.c" break; case 492: /* p_in_kwarg: %empty */ -#line 5040 "parse.y" +#line 5050 "parse.y" { (yyval.ctxt) = p->ctxt; SET_LEX_STATE(EXPR_BEG|EXPR_LABEL); p->command_start = FALSE; p->ctxt.in_kwarg = 1; } -#line 14426 "parse.c" +#line 14436 "parse.c" break; case 493: /* $@29: %empty */ -#line 5051 "parse.y" +#line 5061 "parse.y" { pop_pktbl(p, (yyvsp[-2].tbl)); pop_pvtbl(p, (yyvsp[-3].tbl)); p->ctxt.in_kwarg = (yyvsp[-4].ctxt).in_kwarg; } -#line 14436 "parse.c" +#line 14446 "parse.c" break; case 494: /* p_case_body: "`in'" p_in_kwarg p_pvtbl p_pktbl p_top_expr then $@29 compstmt p_cases */ -#line 5058 "parse.y" +#line 5068 "parse.y" { /*%%%*/ (yyval.node) = NEW_IN((yyvsp[-4].node), (yyvsp[-1].node), (yyvsp[0].node), &(yyloc)); /*% %*/ /*% ripper: in!($expr, $compstmt, $cases) %*/ } -#line 14447 "parse.c" +#line 14457 "parse.c" break; case 498: /* p_top_expr: p_top_expr_body "`if' modifier" expr_value */ -#line 5072 "parse.y" +#line 5082 "parse.y" { /*%%%*/ (yyval.node) = new_if(p, (yyvsp[0].node), (yyvsp[-2].node), 0, &(yyloc)); @@ -14455,11 +14465,11 @@ /*% %*/ /*% ripper: if_mod!($3, $1) %*/ } -#line 14459 "parse.c" +#line 14469 "parse.c" break; case 499: /* p_top_expr: p_top_expr_body "`unless' modifier" expr_value */ -#line 5080 "parse.y" +#line 5090 "parse.y" { /*%%%*/ (yyval.node) = new_unless(p, (yyvsp[0].node), (yyvsp[-2].node), 0, &(yyloc)); @@ -14467,20 +14477,20 @@ /*% %*/ /*% ripper: unless_mod!($3, $1) %*/ } -#line 14471 "parse.c" +#line 14481 "parse.c" break; case 501: /* p_top_expr_body: p_expr ',' */ -#line 5091 "parse.y" +#line 5101 "parse.y" { (yyval.node) = new_array_pattern_tail(p, Qnone, 1, Qnone, Qnone, &(yyloc)); (yyval.node) = new_array_pattern(p, Qnone, get_value((yyvsp[-1].node)), (yyval.node), &(yyloc)); } -#line 14480 "parse.c" +#line 14490 "parse.c" break; case 502: /* p_top_expr_body: p_expr ',' p_args */ -#line 5096 "parse.y" +#line 5106 "parse.y" { (yyval.node) = new_array_pattern(p, Qnone, get_value((yyvsp[-2].node)), (yyvsp[0].node), &(yyloc)); /*%%%*/ @@ -14488,35 +14498,35 @@ /*% %*/ } -#line 14492 "parse.c" +#line 14502 "parse.c" break; case 503: /* p_top_expr_body: p_find */ -#line 5104 "parse.y" +#line 5114 "parse.y" { (yyval.node) = new_find_pattern(p, Qnone, (yyvsp[0].node), &(yyloc)); } -#line 14500 "parse.c" +#line 14510 "parse.c" break; case 504: /* p_top_expr_body: p_args_tail */ -#line 5108 "parse.y" +#line 5118 "parse.y" { (yyval.node) = new_array_pattern(p, Qnone, Qnone, (yyvsp[0].node), &(yyloc)); } -#line 14508 "parse.c" +#line 14518 "parse.c" break; case 505: /* p_top_expr_body: p_kwargs */ -#line 5112 "parse.y" +#line 5122 "parse.y" { (yyval.node) = new_hash_pattern(p, Qnone, (yyvsp[0].node), &(yyloc)); } -#line 14516 "parse.c" +#line 14526 "parse.c" break; case 507: /* p_as: p_expr "=>" p_variable */ -#line 5121 "parse.y" +#line 5131 "parse.y" { /*%%%*/ NODE *n = NEW_LIST((yyvsp[-2].node), &(yyloc)); @@ -14525,34 +14535,34 @@ /*% %*/ /*% ripper: binary!($1, STATIC_ID2SYM((id_assoc)), $3) %*/ } -#line 14529 "parse.c" +#line 14539 "parse.c" break; case 509: /* p_alt: p_alt '|' p_expr_basic */ -#line 5133 "parse.y" +#line 5143 "parse.y" { /*%%%*/ (yyval.node) = NEW_OR((yyvsp[-2].node), (yyvsp[0].node), &(yyloc)); /*% %*/ /*% ripper: binary!($1, STATIC_ID2SYM(idOr), $3) %*/ } -#line 14540 "parse.c" +#line 14550 "parse.c" break; case 511: /* p_lparen: '(' p_pktbl */ -#line 5142 "parse.y" +#line 5152 "parse.y" { (yyval.tbl) = (yyvsp[0].tbl);} -#line 14546 "parse.c" +#line 14556 "parse.c" break; case 512: /* p_lbracket: '[' p_pktbl */ -#line 5143 "parse.y" +#line 5153 "parse.y" { (yyval.tbl) = (yyvsp[0].tbl);} -#line 14552 "parse.c" +#line 14562 "parse.c" break; case 515: /* p_expr_basic: p_const p_lparen p_args rparen */ -#line 5148 "parse.y" +#line 5158 "parse.y" { pop_pktbl(p, (yyvsp[-2].tbl)); (yyval.node) = new_array_pattern(p, (yyvsp[-3].node), Qnone, (yyvsp[-1].node), &(yyloc)); @@ -14561,11 +14571,11 @@ /*% %*/ } -#line 14565 "parse.c" +#line 14575 "parse.c" break; case 516: /* p_expr_basic: p_const p_lparen p_find rparen */ -#line 5157 "parse.y" +#line 5167 "parse.y" { pop_pktbl(p, (yyvsp[-2].tbl)); (yyval.node) = new_find_pattern(p, (yyvsp[-3].node), (yyvsp[-1].node), &(yyloc)); @@ -14574,11 +14584,11 @@ /*% %*/ } -#line 14578 "parse.c" +#line 14588 "parse.c" break; case 517: /* p_expr_basic: p_const p_lparen p_kwargs rparen */ -#line 5166 "parse.y" +#line 5176 "parse.y" { pop_pktbl(p, (yyvsp[-2].tbl)); (yyval.node) = new_hash_pattern(p, (yyvsp[-3].node), (yyvsp[-1].node), &(yyloc)); @@ -14587,20 +14597,20 @@ /*% %*/ } -#line 14591 "parse.c" +#line 14601 "parse.c" break; case 518: /* p_expr_basic: p_const '(' rparen */ -#line 5175 "parse.y" +#line 5185 "parse.y" { (yyval.node) = new_array_pattern_tail(p, Qnone, 0, Qnone, Qnone, &(yyloc)); (yyval.node) = new_array_pattern(p, (yyvsp[-2].node), Qnone, (yyval.node), &(yyloc)); } -#line 14600 "parse.c" +#line 14610 "parse.c" break; case 519: /* p_expr_basic: p_const p_lbracket p_args rbracket */ -#line 5180 "parse.y" +#line 5190 "parse.y" { pop_pktbl(p, (yyvsp[-2].tbl)); (yyval.node) = new_array_pattern(p, (yyvsp[-3].node), Qnone, (yyvsp[-1].node), &(yyloc)); @@ -14609,11 +14619,11 @@ /*% %*/ } -#line 14613 "parse.c" +#line 14623 "parse.c" break; case 520: /* p_expr_basic: p_const p_lbracket p_find rbracket */ -#line 5189 "parse.y" +#line 5199 "parse.y" { pop_pktbl(p, (yyvsp[-2].tbl)); (yyval.node) = new_find_pattern(p, (yyvsp[-3].node), (yyvsp[-1].node), &(yyloc)); @@ -14622,11 +14632,11 @@ /*% %*/ } -#line 14626 "parse.c" +#line 14636 "parse.c" break; case 521: /* p_expr_basic: p_const p_lbracket p_kwargs rbracket */ -#line 5198 "parse.y" +#line 5208 "parse.y" { pop_pktbl(p, (yyvsp[-2].tbl)); (yyval.node) = new_hash_pattern(p, (yyvsp[-3].node), (yyvsp[-1].node), &(yyloc)); @@ -14635,81 +14645,81 @@ /*% %*/ } -#line 14639 "parse.c" +#line 14649 "parse.c" break; case 522: /* p_expr_basic: p_const '[' rbracket */ -#line 5207 "parse.y" +#line 5217 "parse.y" { (yyval.node) = new_array_pattern_tail(p, Qnone, 0, Qnone, Qnone, &(yyloc)); (yyval.node) = new_array_pattern(p, (yyvsp[-2].node), Qnone, (yyval.node), &(yyloc)); } -#line 14648 "parse.c" +#line 14658 "parse.c" break; case 523: /* p_expr_basic: "[" p_args rbracket */ -#line 5212 "parse.y" +#line 5222 "parse.y" { (yyval.node) = new_array_pattern(p, Qnone, Qnone, (yyvsp[-1].node), &(yyloc)); } -#line 14656 "parse.c" +#line 14666 "parse.c" break; case 524: /* p_expr_basic: "[" p_find rbracket */ -#line 5216 "parse.y" +#line 5226 "parse.y" { (yyval.node) = new_find_pattern(p, Qnone, (yyvsp[-1].node), &(yyloc)); } -#line 14664 "parse.c" +#line 14674 "parse.c" break; case 525: /* p_expr_basic: "[" rbracket */ -#line 5220 "parse.y" +#line 5230 "parse.y" { (yyval.node) = new_array_pattern_tail(p, Qnone, 0, Qnone, Qnone, &(yyloc)); (yyval.node) = new_array_pattern(p, Qnone, Qnone, (yyval.node), &(yyloc)); } -#line 14673 "parse.c" +#line 14683 "parse.c" break; case 526: /* $@30: %empty */ -#line 5225 "parse.y" +#line 5235 "parse.y" { p->ctxt.in_kwarg = 0; } -#line 14681 "parse.c" +#line 14691 "parse.c" break; case 527: /* p_expr_basic: "{" p_pktbl lex_ctxt $@30 p_kwargs rbrace */ -#line 5229 "parse.y" +#line 5239 "parse.y" { pop_pktbl(p, (yyvsp[-4].tbl)); p->ctxt.in_kwarg = (yyvsp[-3].ctxt).in_kwarg; (yyval.node) = new_hash_pattern(p, Qnone, (yyvsp[-1].node), &(yyloc)); } -#line 14691 "parse.c" +#line 14701 "parse.c" break; case 528: /* p_expr_basic: "{" rbrace */ -#line 5235 "parse.y" +#line 5245 "parse.y" { (yyval.node) = new_hash_pattern_tail(p, Qnone, 0, &(yyloc)); (yyval.node) = new_hash_pattern(p, Qnone, (yyval.node), &(yyloc)); } -#line 14700 "parse.c" +#line 14710 "parse.c" break; case 529: /* p_expr_basic: "(" p_pktbl p_expr rparen */ -#line 5240 "parse.y" +#line 5250 "parse.y" { pop_pktbl(p, (yyvsp[-2].tbl)); (yyval.node) = (yyvsp[-1].node); } -#line 14709 "parse.c" +#line 14719 "parse.c" break; case 530: /* p_args: p_expr */ -#line 5247 "parse.y" +#line 5257 "parse.y" { /*%%%*/ NODE *pre_args = NEW_LIST((yyvsp[0].node), &(yyloc)); @@ -14718,19 +14728,19 @@ $$ = new_array_pattern_tail(p, rb_ary_new_from_args(1, get_value($1)), 0, Qnone, Qnone, &@$); %*/ } -#line 14722 "parse.c" +#line 14732 "parse.c" break; case 531: /* p_args: p_args_head */ -#line 5256 "parse.y" +#line 5266 "parse.y" { (yyval.node) = new_array_pattern_tail(p, (yyvsp[0].node), 1, Qnone, Qnone, &(yyloc)); } -#line 14730 "parse.c" +#line 14740 "parse.c" break; case 532: /* p_args: p_args_head p_arg */ -#line 5260 "parse.y" +#line 5270 "parse.y" { /*%%%*/ (yyval.node) = new_array_pattern_tail(p, list_concat((yyvsp[-1].node), (yyvsp[0].node)), 0, Qnone, Qnone, &(yyloc)); @@ -14739,70 +14749,70 @@ $$ = new_array_pattern_tail(p, pre_args, 0, Qnone, Qnone, &@$); %*/ } -#line 14743 "parse.c" +#line 14753 "parse.c" break; case 533: /* p_args: p_args_head p_rest */ -#line 5269 "parse.y" +#line 5279 "parse.y" { (yyval.node) = new_array_pattern_tail(p, (yyvsp[-1].node), 1, (yyvsp[0].node), Qnone, &(yyloc)); } -#line 14751 "parse.c" +#line 14761 "parse.c" break; case 534: /* p_args: p_args_head p_rest ',' p_args_post */ -#line 5273 "parse.y" +#line 5283 "parse.y" { (yyval.node) = new_array_pattern_tail(p, (yyvsp[-3].node), 1, (yyvsp[-2].node), (yyvsp[0].node), &(yyloc)); } -#line 14759 "parse.c" +#line 14769 "parse.c" break; case 536: /* p_args_head: p_arg ',' */ -#line 5280 "parse.y" +#line 5290 "parse.y" { (yyval.node) = (yyvsp[-1].node); } -#line 14767 "parse.c" +#line 14777 "parse.c" break; case 537: /* p_args_head: p_args_head p_arg ',' */ -#line 5284 "parse.y" +#line 5294 "parse.y" { /*%%%*/ (yyval.node) = list_concat((yyvsp[-2].node), (yyvsp[-1].node)); /*% %*/ /*% ripper: rb_ary_concat($1, get_value($2)) %*/ } -#line 14778 "parse.c" +#line 14788 "parse.c" break; case 538: /* p_args_tail: p_rest */ -#line 5293 "parse.y" +#line 5303 "parse.y" { (yyval.node) = new_array_pattern_tail(p, Qnone, 1, (yyvsp[0].node), Qnone, &(yyloc)); } -#line 14786 "parse.c" +#line 14796 "parse.c" break; case 539: /* p_args_tail: p_rest ',' p_args_post */ -#line 5297 "parse.y" +#line 5307 "parse.y" { (yyval.node) = new_array_pattern_tail(p, Qnone, 1, (yyvsp[-2].node), (yyvsp[0].node), &(yyloc)); } -#line 14794 "parse.c" +#line 14804 "parse.c" break; case 540: /* p_find: p_rest ',' p_args_post ',' p_rest */ -#line 5303 "parse.y" +#line 5313 "parse.y" { (yyval.node) = new_find_pattern_tail(p, (yyvsp[-4].node), (yyvsp[-2].node), (yyvsp[0].node), &(yyloc)); } -#line 14802 "parse.c" +#line 14812 "parse.c" break; case 541: /* p_rest: "*" "local variable or method" */ -#line 5310 "parse.y" +#line 5320 "parse.y" { /*%%%*/ error_duplicate_pattern_variable(p, (yyvsp[0].id), &(yylsp[0])); @@ -14810,87 +14820,87 @@ /*% %*/ /*% ripper: assignable(p, var_field(p, $2)) %*/ } -#line 14814 "parse.c" +#line 14824 "parse.c" break; case 542: /* p_rest: "*" */ -#line 5318 "parse.y" +#line 5328 "parse.y" { /*%%%*/ (yyval.node) = 0; /*% %*/ /*% ripper: var_field(p, Qnil) %*/ } -#line 14825 "parse.c" +#line 14835 "parse.c" break; case 544: /* p_args_post: p_args_post ',' p_arg */ -#line 5328 "parse.y" +#line 5338 "parse.y" { /*%%%*/ (yyval.node) = list_concat((yyvsp[-2].node), (yyvsp[0].node)); /*% %*/ /*% ripper: rb_ary_concat($1, get_value($3)) %*/ } -#line 14836 "parse.c" +#line 14846 "parse.c" break; case 545: /* p_arg: p_expr */ -#line 5337 "parse.y" +#line 5347 "parse.y" { /*%%%*/ (yyval.node) = NEW_LIST((yyvsp[0].node), &(yyloc)); /*% %*/ /*% ripper: rb_ary_new_from_args(1, get_value($1)) %*/ } -#line 14847 "parse.c" +#line 14857 "parse.c" break; case 546: /* p_kwargs: p_kwarg ',' p_any_kwrest */ -#line 5346 "parse.y" +#line 5356 "parse.y" { (yyval.node) = new_hash_pattern_tail(p, new_unique_key_hash(p, (yyvsp[-2].node), &(yyloc)), (yyvsp[0].id), &(yyloc)); } -#line 14855 "parse.c" +#line 14865 "parse.c" break; case 547: /* p_kwargs: p_kwarg */ -#line 5350 "parse.y" +#line 5360 "parse.y" { (yyval.node) = new_hash_pattern_tail(p, new_unique_key_hash(p, (yyvsp[0].node), &(yyloc)), 0, &(yyloc)); } -#line 14863 "parse.c" +#line 14873 "parse.c" break; case 548: /* p_kwargs: p_kwarg ',' */ -#line 5354 "parse.y" +#line 5364 "parse.y" { (yyval.node) = new_hash_pattern_tail(p, new_unique_key_hash(p, (yyvsp[-1].node), &(yyloc)), 0, &(yyloc)); } -#line 14871 "parse.c" +#line 14881 "parse.c" break; case 549: /* p_kwargs: p_any_kwrest */ -#line 5358 "parse.y" +#line 5368 "parse.y" { (yyval.node) = new_hash_pattern_tail(p, new_hash(p, Qnone, &(yyloc)), (yyvsp[0].id), &(yyloc)); } -#line 14879 "parse.c" +#line 14889 "parse.c" break; case 551: /* p_kwarg: p_kwarg ',' p_kw */ -#line 5366 "parse.y" +#line 5376 "parse.y" { /*%%%*/ (yyval.node) = list_concat((yyvsp[-2].node), (yyvsp[0].node)); /*% %*/ /*% ripper: rb_ary_push($1, $3) %*/ } -#line 14890 "parse.c" +#line 14900 "parse.c" break; case 552: /* p_kw: p_kw_label p_expr */ -#line 5375 "parse.y" +#line 5385 "parse.y" { error_duplicate_pattern_key(p, get_id((yyvsp[-1].id)), &(yylsp[-1])); /*%%%*/ @@ -14898,11 +14908,11 @@ /*% %*/ /*% ripper: rb_ary_new_from_args(2, get_value($1), get_value($2)) %*/ } -#line 14902 "parse.c" +#line 14912 "parse.c" break; case 553: /* p_kw: p_kw_label */ -#line 5383 "parse.y" +#line 5393 "parse.y" { error_duplicate_pattern_key(p, get_id((yyvsp[0].id)), &(yylsp[0])); if ((yyvsp[0].id) && !is_local_id(get_id((yyvsp[0].id)))) { @@ -14914,11 +14924,11 @@ /*% %*/ /*% ripper: rb_ary_new_from_args(2, get_value(assignable(p, $1)), Qnil) %*/ } -#line 14918 "parse.c" +#line 14928 "parse.c" break; case 555: /* p_kw_label: "string literal" string_contents tLABEL_END */ -#line 5398 "parse.y" +#line 5408 "parse.y" { YYLTYPE loc = code_loc_gen(&(yylsp[-2]), &(yylsp[0])); /*%%%*/ @@ -14939,41 +14949,41 @@ (yyval.id) = 0; } } -#line 14943 "parse.c" +#line 14953 "parse.c" break; case 556: /* p_kwrest: kwrest_mark "local variable or method" */ -#line 5421 "parse.y" +#line 5431 "parse.y" { (yyval.id) = (yyvsp[0].id); } -#line 14951 "parse.c" +#line 14961 "parse.c" break; case 557: /* p_kwrest: kwrest_mark */ -#line 5425 "parse.y" +#line 5435 "parse.y" { (yyval.id) = 0; } -#line 14959 "parse.c" +#line 14969 "parse.c" break; case 558: /* p_kwnorest: kwrest_mark "`nil'" */ -#line 5431 "parse.y" +#line 5441 "parse.y" { (yyval.id) = 0; } -#line 14967 "parse.c" +#line 14977 "parse.c" break; case 560: /* p_any_kwrest: p_kwnorest */ -#line 5437 "parse.y" +#line 5447 "parse.y" {(yyval.id) = ID2VAL(idNil);} -#line 14973 "parse.c" +#line 14983 "parse.c" break; case 562: /* p_value: p_primitive ".." p_primitive */ -#line 5442 "parse.y" +#line 5452 "parse.y" { /*%%%*/ value_expr((yyvsp[-2].node)); @@ -14982,11 +14992,11 @@ /*% %*/ /*% ripper: dot2!($1, $3) %*/ } -#line 14986 "parse.c" +#line 14996 "parse.c" break; case 563: /* p_value: p_primitive "..." p_primitive */ -#line 5451 "parse.y" +#line 5461 "parse.y" { /*%%%*/ value_expr((yyvsp[-2].node)); @@ -14995,11 +15005,11 @@ /*% %*/ /*% ripper: dot3!($1, $3) %*/ } -#line 14999 "parse.c" +#line 15009 "parse.c" break; case 564: /* p_value: p_primitive ".." */ -#line 5460 "parse.y" +#line 5470 "parse.y" { /*%%%*/ value_expr((yyvsp[-1].node)); @@ -15007,11 +15017,11 @@ /*% %*/ /*% ripper: dot2!($1, Qnil) %*/ } -#line 15011 "parse.c" +#line 15021 "parse.c" break; case 565: /* p_value: p_primitive "..." */ -#line 5468 "parse.y" +#line 5478 "parse.y" { /*%%%*/ value_expr((yyvsp[-1].node)); @@ -15019,11 +15029,11 @@ /*% %*/ /*% ripper: dot3!($1, Qnil) %*/ } -#line 15023 "parse.c" +#line 15033 "parse.c" break; case 569: /* p_value: "(.." p_primitive */ -#line 5479 "parse.y" +#line 5489 "parse.y" { /*%%%*/ value_expr((yyvsp[0].node)); @@ -15031,11 +15041,11 @@ /*% %*/ /*% ripper: dot2!(Qnil, $2) %*/ } -#line 15035 "parse.c" +#line 15045 "parse.c" break; case 570: /* p_value: "(..." p_primitive */ -#line 5487 "parse.y" +#line 5497 "parse.y" { /*%%%*/ value_expr((yyvsp[0].node)); @@ -15043,22 +15053,22 @@ /*% %*/ /*% ripper: dot3!(Qnil, $2) %*/ } -#line 15047 "parse.c" +#line 15057 "parse.c" break; case 579: /* p_primitive: keyword_variable */ -#line 5505 "parse.y" +#line 5515 "parse.y" { /*%%%*/ if (!((yyval.node) = gettable(p, (yyvsp[0].id), &(yyloc)))) (yyval.node) = NEW_ERROR(&(yyloc)); /*% %*/ /*% ripper: var_ref!($1) %*/ } -#line 15058 "parse.c" +#line 15068 "parse.c" break; case 581: /* p_variable: "local variable or method" */ -#line 5515 "parse.y" +#line 5525 "parse.y" { /*%%%*/ error_duplicate_pattern_variable(p, (yyvsp[0].id), &(yylsp[0])); @@ -15066,11 +15076,11 @@ /*% %*/ /*% ripper: assignable(p, var_field(p, $1)) %*/ } -#line 15070 "parse.c" +#line 15080 "parse.c" break; case 582: /* p_var_ref: '^' "local variable or method" */ -#line 5525 "parse.y" +#line 5535 "parse.y" { /*%%%*/ NODE *n = gettable(p, (yyvsp[0].id), &(yyloc)); @@ -15081,66 +15091,66 @@ /*% %*/ /*% ripper: var_ref!($2) %*/ } -#line 15085 "parse.c" +#line 15095 "parse.c" break; case 583: /* p_var_ref: '^' nonlocal_var */ -#line 5536 "parse.y" +#line 5546 "parse.y" { /*%%%*/ if (!((yyval.node) = gettable(p, (yyvsp[0].id), &(yyloc)))) (yyval.node) = NEW_BEGIN(0, &(yyloc)); /*% %*/ /*% ripper: var_ref!($2) %*/ } -#line 15096 "parse.c" +#line 15106 "parse.c" break; case 584: /* p_expr_ref: '^' "(" expr_value rparen */ -#line 5545 "parse.y" +#line 5555 "parse.y" { /*%%%*/ (yyval.node) = NEW_BLOCK((yyvsp[-1].node), &(yyloc)); /*% %*/ /*% ripper: begin!($3) %*/ } -#line 15107 "parse.c" +#line 15117 "parse.c" break; case 585: /* p_const: ":: at EXPR_BEG" cname */ -#line 5554 "parse.y" +#line 5564 "parse.y" { /*%%%*/ (yyval.node) = NEW_COLON3((yyvsp[0].id), &(yyloc)); /*% %*/ /*% ripper: top_const_ref!($2) %*/ } -#line 15118 "parse.c" +#line 15128 "parse.c" break; case 586: /* p_const: p_const "::" cname */ -#line 5561 "parse.y" +#line 5571 "parse.y" { /*%%%*/ (yyval.node) = NEW_COLON2((yyvsp[-2].node), (yyvsp[0].id), &(yyloc)); /*% %*/ /*% ripper: const_path_ref!($1, $3) %*/ } -#line 15129 "parse.c" +#line 15139 "parse.c" break; case 587: /* p_const: "constant" */ -#line 5568 "parse.y" +#line 5578 "parse.y" { /*%%%*/ (yyval.node) = gettable(p, (yyvsp[0].id), &(yyloc)); /*% %*/ /*% ripper: var_ref!($1) %*/ } -#line 15140 "parse.c" +#line 15150 "parse.c" break; case 588: /* opt_rescue: k_rescue exc_list exc_var then compstmt opt_rescue */ -#line 5579 "parse.y" +#line 5589 "parse.y" { /*%%%*/ NODE *body = (yyvsp[-1].node); @@ -15162,41 +15172,41 @@ /*% %*/ /*% ripper: rescue!($2, $3, $5, $6) %*/ } -#line 15166 "parse.c" +#line 15176 "parse.c" break; case 590: /* exc_list: arg_value */ -#line 5604 "parse.y" +#line 5614 "parse.y" { /*%%%*/ (yyval.node) = NEW_LIST((yyvsp[0].node), &(yyloc)); /*% %*/ /*% ripper: rb_ary_new3(1, get_value($1)) %*/ } -#line 15177 "parse.c" +#line 15187 "parse.c" break; case 591: /* exc_list: mrhs */ -#line 5611 "parse.y" +#line 5621 "parse.y" { /*%%%*/ if (!((yyval.node) = splat_array((yyvsp[0].node)))) (yyval.node) = (yyvsp[0].node); /*% %*/ /*% ripper: $1 %*/ } -#line 15188 "parse.c" +#line 15198 "parse.c" break; case 593: /* exc_var: "=>" lhs */ -#line 5621 "parse.y" +#line 5631 "parse.y" { (yyval.node) = (yyvsp[0].node); } -#line 15196 "parse.c" +#line 15206 "parse.c" break; case 595: /* opt_ensure: k_ensure compstmt */ -#line 5628 "parse.y" +#line 5638 "parse.y" { p->ctxt.in_rescue = (yyvsp[-1].ctxt).in_rescue; /*%%%*/ @@ -15204,11 +15214,11 @@ /*% %*/ /*% ripper: ensure!($2) %*/ } -#line 15208 "parse.c" +#line 15218 "parse.c" break; case 599: /* strings: string */ -#line 5643 "parse.y" +#line 5653 "parse.y" { /*%%%*/ NODE *node = (yyvsp[0].node); @@ -15223,22 +15233,22 @@ /*% %*/ /*% ripper: $1 %*/ } -#line 15227 "parse.c" +#line 15237 "parse.c" break; case 602: /* string: string string1 */ -#line 5662 "parse.y" +#line 5672 "parse.y" { /*%%%*/ (yyval.node) = literal_concat(p, (yyvsp[-1].node), (yyvsp[0].node), &(yyloc)); /*% %*/ /*% ripper: string_concat!($1, $2) %*/ } -#line 15238 "parse.c" +#line 15248 "parse.c" break; case 603: /* string1: "string literal" string_contents "terminator" */ -#line 5671 "parse.y" +#line 5681 "parse.y" { /*%%%*/ (yyval.node) = heredoc_dedent(p, (yyvsp[-1].node)); @@ -15246,179 +15256,179 @@ /*% %*/ /*% ripper: string_literal!(heredoc_dedent(p, $2)) %*/ } -#line 15250 "parse.c" +#line 15260 "parse.c" break; case 604: /* xstring: "backtick literal" xstring_contents "terminator" */ -#line 5681 "parse.y" +#line 5691 "parse.y" { /*%%%*/ (yyval.node) = new_xstring(p, heredoc_dedent(p, (yyvsp[-1].node)), &(yyloc)); /*% %*/ /*% ripper: xstring_literal!(heredoc_dedent(p, $2)) %*/ } -#line 15261 "parse.c" +#line 15271 "parse.c" break; case 605: /* regexp: "regexp literal" regexp_contents tREGEXP_END */ -#line 5690 "parse.y" +#line 5700 "parse.y" { (yyval.node) = new_regexp(p, (yyvsp[-1].node), (yyvsp[0].num), &(yyloc)); } -#line 15269 "parse.c" +#line 15279 "parse.c" break; case 606: /* words_sep: ' ' */ -#line 5695 "parse.y" +#line 5705 "parse.y" {} -#line 15275 "parse.c" +#line 15285 "parse.c" break; case 608: /* words: "word list" words_sep word_list "terminator" */ -#line 5700 "parse.y" +#line 5710 "parse.y" { /*%%%*/ (yyval.node) = make_list((yyvsp[-1].node), &(yyloc)); /*% %*/ /*% ripper: array!($3) %*/ } -#line 15286 "parse.c" +#line 15296 "parse.c" break; case 609: /* word_list: %empty */ -#line 5709 "parse.y" +#line 5719 "parse.y" { /*%%%*/ (yyval.node) = 0; /*% %*/ /*% ripper: words_new! %*/ } -#line 15297 "parse.c" +#line 15307 "parse.c" break; case 610: /* word_list: word_list word words_sep */ -#line 5716 "parse.y" +#line 5726 "parse.y" { /*%%%*/ (yyval.node) = list_append(p, (yyvsp[-2].node), evstr2dstr(p, (yyvsp[-1].node))); /*% %*/ /*% ripper: words_add!($1, $2) %*/ } -#line 15308 "parse.c" +#line 15318 "parse.c" break; case 612: /* word: word string_content */ -#line 5727 "parse.y" +#line 5737 "parse.y" { /*%%%*/ (yyval.node) = literal_concat(p, (yyvsp[-1].node), (yyvsp[0].node), &(yyloc)); /*% %*/ /*% ripper: word_add!($1, $2) %*/ } -#line 15319 "parse.c" +#line 15329 "parse.c" break; case 613: /* symbols: "symbol list" words_sep symbol_list "terminator" */ -#line 5736 "parse.y" +#line 5746 "parse.y" { /*%%%*/ (yyval.node) = make_list((yyvsp[-1].node), &(yyloc)); /*% %*/ /*% ripper: array!($3) %*/ } -#line 15330 "parse.c" +#line 15340 "parse.c" break; case 614: /* symbol_list: %empty */ -#line 5745 "parse.y" +#line 5755 "parse.y" { /*%%%*/ (yyval.node) = 0; /*% %*/ /*% ripper: symbols_new! %*/ } -#line 15341 "parse.c" +#line 15351 "parse.c" break; case 615: /* symbol_list: symbol_list word words_sep */ -#line 5752 "parse.y" +#line 5762 "parse.y" { /*%%%*/ (yyval.node) = symbol_append(p, (yyvsp[-2].node), evstr2dstr(p, (yyvsp[-1].node))); /*% %*/ /*% ripper: symbols_add!($1, $2) %*/ } -#line 15352 "parse.c" +#line 15362 "parse.c" break; case 616: /* qwords: "verbatim word list" words_sep qword_list "terminator" */ -#line 5761 "parse.y" +#line 5771 "parse.y" { /*%%%*/ (yyval.node) = make_list((yyvsp[-1].node), &(yyloc)); /*% %*/ /*% ripper: array!($3) %*/ } -#line 15363 "parse.c" +#line 15373 "parse.c" break; case 617: /* qsymbols: "verbatim symbol list" words_sep qsym_list "terminator" */ -#line 5770 "parse.y" +#line 5780 "parse.y" { /*%%%*/ (yyval.node) = make_list((yyvsp[-1].node), &(yyloc)); /*% %*/ /*% ripper: array!($3) %*/ } -#line 15374 "parse.c" +#line 15384 "parse.c" break; case 618: /* qword_list: %empty */ -#line 5779 "parse.y" +#line 5789 "parse.y" { /*%%%*/ (yyval.node) = 0; /*% %*/ /*% ripper: qwords_new! %*/ } -#line 15385 "parse.c" +#line 15395 "parse.c" break; case 619: /* qword_list: qword_list "literal content" words_sep */ -#line 5786 "parse.y" +#line 5796 "parse.y" { /*%%%*/ (yyval.node) = list_append(p, (yyvsp[-2].node), (yyvsp[-1].node)); /*% %*/ /*% ripper: qwords_add!($1, $2) %*/ } -#line 15396 "parse.c" +#line 15406 "parse.c" break; case 620: /* qsym_list: %empty */ -#line 5795 "parse.y" +#line 5805 "parse.y" { /*%%%*/ (yyval.node) = 0; /*% %*/ /*% ripper: qsymbols_new! %*/ } -#line 15407 "parse.c" +#line 15417 "parse.c" break; case 621: /* qsym_list: qsym_list "literal content" words_sep */ -#line 5802 "parse.y" +#line 5812 "parse.y" { /*%%%*/ (yyval.node) = symbol_append(p, (yyvsp[-2].node), (yyvsp[-1].node)); /*% %*/ /*% ripper: qsymbols_add!($1, $2) %*/ } -#line 15418 "parse.c" +#line 15428 "parse.c" break; case 622: /* string_contents: %empty */ -#line 5811 "parse.y" +#line 5821 "parse.y" { /*%%%*/ (yyval.node) = 0; @@ -15429,11 +15439,11 @@ $$ = ripper_new_yylval(p, 0, $$, 0); %*/ } -#line 15433 "parse.c" +#line 15443 "parse.c" break; case 623: /* string_contents: string_contents string_content */ -#line 5822 "parse.y" +#line 5832 "parse.y" { /*%%%*/ (yyval.node) = literal_concat(p, (yyvsp[-1].node), (yyvsp[0].node), &(yyloc)); @@ -15449,33 +15459,33 @@ } %*/ } -#line 15453 "parse.c" +#line 15463 "parse.c" break; case 624: /* xstring_contents: %empty */ -#line 5840 "parse.y" +#line 5850 "parse.y" { /*%%%*/ (yyval.node) = 0; /*% %*/ /*% ripper: xstring_new! %*/ } -#line 15464 "parse.c" +#line 15474 "parse.c" break; case 625: /* xstring_contents: xstring_contents string_content */ -#line 5847 "parse.y" +#line 5857 "parse.y" { /*%%%*/ (yyval.node) = literal_concat(p, (yyvsp[-1].node), (yyvsp[0].node), &(yyloc)); /*% %*/ /*% ripper: xstring_add!($1, $2) %*/ } -#line 15475 "parse.c" +#line 15485 "parse.c" break; case 626: /* regexp_contents: %empty */ -#line 5856 "parse.y" +#line 5866 "parse.y" { /*%%%*/ (yyval.node) = 0; @@ -15486,11 +15496,11 @@ $$ = ripper_new_yylval(p, 0, $$, 0); %*/ } -#line 15490 "parse.c" +#line 15500 "parse.c" break; case 627: /* regexp_contents: regexp_contents string_content */ -#line 5867 "parse.y" +#line 5877 "parse.y" { /*%%%*/ NODE *head = (yyvsp[-1].node), *tail = (yyvsp[0].node); @@ -15529,22 +15539,22 @@ } %*/ } -#line 15533 "parse.c" +#line 15543 "parse.c" break; case 629: /* @31: %empty */ -#line 5910 "parse.y" +#line 5920 "parse.y" { /* need to backup p->lex.strterm so that a string literal `%&foo,#$&,bar&` can be parsed */ (yyval.strterm) = p->lex.strterm; p->lex.strterm = 0; SET_LEX_STATE(EXPR_BEG); } -#line 15544 "parse.c" +#line 15554 "parse.c" break; case 630: /* string_content: tSTRING_DVAR @31 string_dvar */ -#line 5917 "parse.y" +#line 5927 "parse.y" { p->lex.strterm = (yyvsp[-1].strterm); /*%%%*/ @@ -15553,11 +15563,11 @@ /*% %*/ /*% ripper: string_dvar!($3) %*/ } -#line 15557 "parse.c" +#line 15567 "parse.c" break; case 631: /* @32: %empty */ -#line 5926 "parse.y" +#line 5936 "parse.y" { CMDARG_PUSH(0); COND_PUSH(0); @@ -15567,29 +15577,29 @@ (yyval.num) = p->lex.state; SET_LEX_STATE(EXPR_BEG); } -#line 15571 "parse.c" +#line 15581 "parse.c" break; case 632: /* @33: %empty */ -#line 5935 "parse.y" +#line 5945 "parse.y" { (yyval.num) = p->lex.brace_nest; p->lex.brace_nest = 0; } -#line 15580 "parse.c" +#line 15590 "parse.c" break; case 633: /* @34: %empty */ -#line 5939 "parse.y" +#line 5949 "parse.y" { (yyval.num) = p->heredoc_indent; p->heredoc_indent = 0; } -#line 15589 "parse.c" +#line 15599 "parse.c" break; case 634: /* string_content: tSTRING_DBEG @32 @33 @34 compstmt string_dend */ -#line 5944 "parse.y" +#line 5954 "parse.y" { COND_POP(); CMDARG_POP(); @@ -15604,22 +15614,22 @@ /*% %*/ /*% ripper: string_embexpr!($compstmt) %*/ } -#line 15608 "parse.c" +#line 15618 "parse.c" break; case 637: /* string_dvar: nonlocal_var */ -#line 5965 "parse.y" +#line 5975 "parse.y" { /*%%%*/ if (!((yyval.node) = gettable(p, (yyvsp[0].id), &(yyloc)))) (yyval.node) = NEW_ERROR(&(yyloc)); /*% %*/ /*% ripper: var_ref!($1) %*/ } -#line 15619 "parse.c" +#line 15629 "parse.c" break; case 641: /* ssym: "symbol literal" sym */ -#line 5979 "parse.y" +#line 5989 "parse.y" { SET_LEX_STATE(EXPR_END); /*%%%*/ @@ -15627,11 +15637,11 @@ /*% %*/ /*% ripper: symbol_literal!(symbol!($2)) %*/ } -#line 15631 "parse.c" +#line 15641 "parse.c" break; case 644: /* dsym: "symbol literal" string_contents "terminator" */ -#line 5993 "parse.y" +#line 6003 "parse.y" { SET_LEX_STATE(EXPR_END); /*%%%*/ @@ -15639,11 +15649,11 @@ /*% %*/ /*% ripper: dyna_symbol!($2) %*/ } -#line 15643 "parse.c" +#line 15653 "parse.c" break; case 646: /* numeric: tUMINUS_NUM simple_numeric */ -#line 6004 "parse.y" +#line 6014 "parse.y" { /*%%%*/ (yyval.node) = (yyvsp[0].node); @@ -15651,53 +15661,53 @@ /*% %*/ /*% ripper: unary!(ID2VAL(idUMinus), $2) %*/ } -#line 15655 "parse.c" +#line 15665 "parse.c" break; case 657: /* keyword_variable: "`nil'" */ -#line 6029 "parse.y" +#line 6039 "parse.y" {(yyval.id) = KWD2EID(nil, (yyvsp[0].id));} -#line 15661 "parse.c" +#line 15671 "parse.c" break; case 658: /* keyword_variable: "`self'" */ -#line 6030 "parse.y" +#line 6040 "parse.y" {(yyval.id) = KWD2EID(self, (yyvsp[0].id));} -#line 15667 "parse.c" +#line 15677 "parse.c" break; case 659: /* keyword_variable: "`true'" */ -#line 6031 "parse.y" +#line 6041 "parse.y" {(yyval.id) = KWD2EID(true, (yyvsp[0].id));} -#line 15673 "parse.c" +#line 15683 "parse.c" break; case 660: /* keyword_variable: "`false'" */ -#line 6032 "parse.y" +#line 6042 "parse.y" {(yyval.id) = KWD2EID(false, (yyvsp[0].id));} -#line 15679 "parse.c" +#line 15689 "parse.c" break; case 661: /* keyword_variable: "`__FILE__'" */ -#line 6033 "parse.y" +#line 6043 "parse.y" {(yyval.id) = KWD2EID(_FILE__, (yyvsp[0].id));} -#line 15685 "parse.c" +#line 15695 "parse.c" break; case 662: /* keyword_variable: "`__LINE__'" */ -#line 6034 "parse.y" +#line 6044 "parse.y" {(yyval.id) = KWD2EID(_LINE__, (yyvsp[0].id));} -#line 15691 "parse.c" +#line 15701 "parse.c" break; case 663: /* keyword_variable: "`__ENCODING__'" */ -#line 6035 "parse.y" +#line 6045 "parse.y" {(yyval.id) = KWD2EID(_ENCODING__, (yyvsp[0].id));} -#line 15697 "parse.c" +#line 15707 "parse.c" break; case 664: /* var_ref: user_variable */ -#line 6039 "parse.y" +#line 6049 "parse.y" { /*%%%*/ if (!((yyval.node) = gettable(p, (yyvsp[0].id), &(yyloc)))) (yyval.node) = NEW_BEGIN(0, &(yyloc)); @@ -15710,82 +15720,82 @@ } %*/ } -#line 15714 "parse.c" +#line 15724 "parse.c" break; case 665: /* var_ref: keyword_variable */ -#line 6052 "parse.y" +#line 6062 "parse.y" { /*%%%*/ if (!((yyval.node) = gettable(p, (yyvsp[0].id), &(yyloc)))) (yyval.node) = NEW_ERROR(&(yyloc)); /*% %*/ /*% ripper: var_ref!($1) %*/ } -#line 15725 "parse.c" +#line 15735 "parse.c" break; case 666: /* var_lhs: user_variable */ -#line 6061 "parse.y" +#line 6071 "parse.y" { /*%%%*/ (yyval.node) = assignable(p, (yyvsp[0].id), 0, &(yyloc)); /*% %*/ /*% ripper: assignable(p, var_field(p, $1)) %*/ } -#line 15736 "parse.c" +#line 15746 "parse.c" break; case 667: /* var_lhs: keyword_variable */ -#line 6068 "parse.y" +#line 6078 "parse.y" { /*%%%*/ (yyval.node) = assignable(p, (yyvsp[0].id), 0, &(yyloc)); /*% %*/ /*% ripper: assignable(p, var_field(p, $1)) %*/ } -#line 15747 "parse.c" +#line 15757 "parse.c" break; case 670: /* $@35: %empty */ -#line 6081 "parse.y" +#line 6091 "parse.y" { SET_LEX_STATE(EXPR_BEG); p->command_start = TRUE; } -#line 15756 "parse.c" +#line 15766 "parse.c" break; case 671: /* superclass: '<' $@35 expr_value term */ -#line 6086 "parse.y" +#line 6096 "parse.y" { (yyval.node) = (yyvsp[-1].node); } -#line 15764 "parse.c" +#line 15774 "parse.c" break; case 672: /* superclass: %empty */ -#line 6090 "parse.y" +#line 6100 "parse.y" { /*%%%*/ (yyval.node) = 0; /*% %*/ /*% ripper: Qnil %*/ } -#line 15775 "parse.c" +#line 15785 "parse.c" break; case 674: /* f_opt_paren_args: none */ -#line 6100 "parse.y" +#line 6110 "parse.y" { p->ctxt.in_argdef = 0; (yyval.node_args) = new_args_tail(p, Qnone, Qnone, Qnone, &(yylsp[-1])); (yyval.node_args) = new_args(p, Qnone, Qnone, Qnone, Qnone, (yyval.node_args), &(yylsp[-1])); } -#line 15785 "parse.c" +#line 15795 "parse.c" break; case 675: /* f_paren_args: '(' f_args rparen */ -#line 6108 "parse.y" +#line 6118 "parse.y" { /*%%%*/ (yyval.node_args) = (yyvsp[-1].node_args); @@ -15795,22 +15805,22 @@ p->command_start = TRUE; p->ctxt.in_argdef = 0; } -#line 15799 "parse.c" +#line 15809 "parse.c" break; case 677: /* @36: %empty */ -#line 6120 "parse.y" +#line 6130 "parse.y" { (yyval.ctxt) = p->ctxt; p->ctxt.in_kwarg = 1; p->ctxt.in_argdef = 1; SET_LEX_STATE(p->lex.state|EXPR_LABEL); /* force for args */ } -#line 15810 "parse.c" +#line 15820 "parse.c" break; case 678: /* f_arglist: @36 f_args term */ -#line 6127 "parse.y" +#line 6137 "parse.y" { p->ctxt.in_kwarg = (yyvsp[-2].ctxt).in_kwarg; p->ctxt.in_argdef = 0; @@ -15818,43 +15828,43 @@ SET_LEX_STATE(EXPR_BEG); p->command_start = TRUE; } -#line 15822 "parse.c" +#line 15832 "parse.c" break; case 679: /* args_tail: f_kwarg ',' f_kwrest opt_f_block_arg */ -#line 6137 "parse.y" +#line 6147 "parse.y" { (yyval.node_args) = new_args_tail(p, (yyvsp[-3].node_kw_arg), (yyvsp[-1].id), (yyvsp[0].id), &(yylsp[-1])); } -#line 15830 "parse.c" +#line 15840 "parse.c" break; case 680: /* args_tail: f_kwarg opt_f_block_arg */ -#line 6141 "parse.y" +#line 6151 "parse.y" { (yyval.node_args) = new_args_tail(p, (yyvsp[-1].node_kw_arg), Qnone, (yyvsp[0].id), &(yylsp[-1])); } -#line 15838 "parse.c" +#line 15848 "parse.c" break; case 681: /* args_tail: f_any_kwrest opt_f_block_arg */ -#line 6145 "parse.y" +#line 6155 "parse.y" { (yyval.node_args) = new_args_tail(p, Qnone, (yyvsp[-1].id), (yyvsp[0].id), &(yylsp[-1])); } -#line 15846 "parse.c" +#line 15856 "parse.c" break; case 682: /* args_tail: f_block_arg */ -#line 6149 "parse.y" +#line 6159 "parse.y" { (yyval.node_args) = new_args_tail(p, Qnone, Qnone, (yyvsp[0].id), &(yylsp[0])); } -#line 15854 "parse.c" +#line 15864 "parse.c" break; case 683: /* args_tail: args_forward */ -#line 6153 "parse.y" +#line 6163 "parse.y" { add_forwarding_args(p); (yyval.node_args) = new_args_tail(p, Qnone, (yyvsp[0].id), arg_FWD_BLOCK, &(yylsp[0])); @@ -15862,148 +15872,148 @@ (yyval.node_args)->nd_ainfo.forwarding = 1; /*% %*/ } -#line 15866 "parse.c" +#line 15876 "parse.c" break; case 684: /* opt_args_tail: ',' args_tail */ -#line 6163 "parse.y" +#line 6173 "parse.y" { (yyval.node_args) = (yyvsp[0].node_args); } -#line 15874 "parse.c" +#line 15884 "parse.c" break; case 685: /* opt_args_tail: %empty */ -#line 6167 "parse.y" +#line 6177 "parse.y" { (yyval.node_args) = new_args_tail(p, Qnone, Qnone, Qnone, &(yylsp[0])); } -#line 15882 "parse.c" +#line 15892 "parse.c" break; case 686: /* f_args: f_arg ',' f_optarg ',' f_rest_arg opt_args_tail */ -#line 6173 "parse.y" +#line 6183 "parse.y" { (yyval.node_args) = new_args(p, (yyvsp[-5].node_args_aux), (yyvsp[-3].node_opt_arg), (yyvsp[-1].id), Qnone, (yyvsp[0].node_args), &(yyloc)); } -#line 15890 "parse.c" +#line 15900 "parse.c" break; case 687: /* f_args: f_arg ',' f_optarg ',' f_rest_arg ',' f_arg opt_args_tail */ -#line 6177 "parse.y" +#line 6187 "parse.y" { (yyval.node_args) = new_args(p, (yyvsp[-7].node_args_aux), (yyvsp[-5].node_opt_arg), (yyvsp[-3].id), (yyvsp[-1].node_args_aux), (yyvsp[0].node_args), &(yyloc)); } -#line 15898 "parse.c" +#line 15908 "parse.c" break; case 688: /* f_args: f_arg ',' f_optarg opt_args_tail */ -#line 6181 "parse.y" +#line 6191 "parse.y" { (yyval.node_args) = new_args(p, (yyvsp[-3].node_args_aux), (yyvsp[-1].node_opt_arg), Qnone, Qnone, (yyvsp[0].node_args), &(yyloc)); } -#line 15906 "parse.c" +#line 15916 "parse.c" break; case 689: /* f_args: f_arg ',' f_optarg ',' f_arg opt_args_tail */ -#line 6185 "parse.y" +#line 6195 "parse.y" { (yyval.node_args) = new_args(p, (yyvsp[-5].node_args_aux), (yyvsp[-3].node_opt_arg), Qnone, (yyvsp[-1].node_args_aux), (yyvsp[0].node_args), &(yyloc)); } -#line 15914 "parse.c" +#line 15924 "parse.c" break; case 690: /* f_args: f_arg ',' f_rest_arg opt_args_tail */ -#line 6189 "parse.y" +#line 6199 "parse.y" { (yyval.node_args) = new_args(p, (yyvsp[-3].node_args_aux), Qnone, (yyvsp[-1].id), Qnone, (yyvsp[0].node_args), &(yyloc)); } -#line 15922 "parse.c" +#line 15932 "parse.c" break; case 691: /* f_args: f_arg ',' f_rest_arg ',' f_arg opt_args_tail */ -#line 6193 "parse.y" +#line 6203 "parse.y" { (yyval.node_args) = new_args(p, (yyvsp[-5].node_args_aux), Qnone, (yyvsp[-3].id), (yyvsp[-1].node_args_aux), (yyvsp[0].node_args), &(yyloc)); } -#line 15930 "parse.c" +#line 15940 "parse.c" break; case 692: /* f_args: f_arg opt_args_tail */ -#line 6197 "parse.y" +#line 6207 "parse.y" { (yyval.node_args) = new_args(p, (yyvsp[-1].node_args_aux), Qnone, Qnone, Qnone, (yyvsp[0].node_args), &(yyloc)); } -#line 15938 "parse.c" +#line 15948 "parse.c" break; case 693: /* f_args: f_optarg ',' f_rest_arg opt_args_tail */ -#line 6201 "parse.y" +#line 6211 "parse.y" { (yyval.node_args) = new_args(p, Qnone, (yyvsp[-3].node_opt_arg), (yyvsp[-1].id), Qnone, (yyvsp[0].node_args), &(yyloc)); } -#line 15946 "parse.c" +#line 15956 "parse.c" break; case 694: /* f_args: f_optarg ',' f_rest_arg ',' f_arg opt_args_tail */ -#line 6205 "parse.y" +#line 6215 "parse.y" { (yyval.node_args) = new_args(p, Qnone, (yyvsp[-5].node_opt_arg), (yyvsp[-3].id), (yyvsp[-1].node_args_aux), (yyvsp[0].node_args), &(yyloc)); } -#line 15954 "parse.c" +#line 15964 "parse.c" break; case 695: /* f_args: f_optarg opt_args_tail */ -#line 6209 "parse.y" +#line 6219 "parse.y" { (yyval.node_args) = new_args(p, Qnone, (yyvsp[-1].node_opt_arg), Qnone, Qnone, (yyvsp[0].node_args), &(yyloc)); } -#line 15962 "parse.c" +#line 15972 "parse.c" break; case 696: /* f_args: f_optarg ',' f_arg opt_args_tail */ -#line 6213 "parse.y" +#line 6223 "parse.y" { (yyval.node_args) = new_args(p, Qnone, (yyvsp[-3].node_opt_arg), Qnone, (yyvsp[-1].node_args_aux), (yyvsp[0].node_args), &(yyloc)); } -#line 15970 "parse.c" +#line 15980 "parse.c" break; case 697: /* f_args: f_rest_arg opt_args_tail */ -#line 6217 "parse.y" +#line 6227 "parse.y" { (yyval.node_args) = new_args(p, Qnone, Qnone, (yyvsp[-1].id), Qnone, (yyvsp[0].node_args), &(yyloc)); } -#line 15978 "parse.c" +#line 15988 "parse.c" break; case 698: /* f_args: f_rest_arg ',' f_arg opt_args_tail */ -#line 6221 "parse.y" +#line 6231 "parse.y" { (yyval.node_args) = new_args(p, Qnone, Qnone, (yyvsp[-3].id), (yyvsp[-1].node_args_aux), (yyvsp[0].node_args), &(yyloc)); } -#line 15986 "parse.c" +#line 15996 "parse.c" break; case 699: /* f_args: args_tail */ -#line 6225 "parse.y" +#line 6235 "parse.y" { (yyval.node_args) = new_args(p, Qnone, Qnone, Qnone, Qnone, (yyvsp[0].node_args), &(yyloc)); } -#line 15994 "parse.c" +#line 16004 "parse.c" break; case 700: /* f_args: %empty */ -#line 6229 "parse.y" +#line 6239 "parse.y" { (yyval.node_args) = new_args_tail(p, Qnone, Qnone, Qnone, &(yylsp[0])); (yyval.node_args) = new_args(p, Qnone, Qnone, Qnone, Qnone, (yyval.node_args), &(yylsp[0])); } -#line 16003 "parse.c" +#line 16013 "parse.c" break; case 701: /* args_forward: "(..." */ -#line 6236 "parse.y" +#line 6246 "parse.y" { /*%%%*/ #ifdef FORWARD_ARGS_WITH_RUBY2_KEYWORDS @@ -16014,11 +16024,11 @@ /*% %*/ /*% ripper: args_forward! %*/ } -#line 16018 "parse.c" +#line 16028 "parse.c" break; case 702: /* f_bad_arg: "constant" */ -#line 6249 "parse.y" +#line 6259 "parse.y" { static const char mesg[] = "formal argument cannot be a constant"; /*%%%*/ @@ -16027,11 +16037,11 @@ /*% %*/ /*% ripper[error]: param_error!(ERR_MESG(), $1) %*/ } -#line 16031 "parse.c" +#line 16041 "parse.c" break; case 703: /* f_bad_arg: "instance variable" */ -#line 6258 "parse.y" +#line 6268 "parse.y" { static const char mesg[] = "formal argument cannot be an instance variable"; /*%%%*/ @@ -16040,11 +16050,11 @@ /*% %*/ /*% ripper[error]: param_error!(ERR_MESG(), $1) %*/ } -#line 16044 "parse.c" +#line 16054 "parse.c" break; case 704: /* f_bad_arg: "global variable" */ -#line 6267 "parse.y" +#line 6277 "parse.y" { static const char mesg[] = "formal argument cannot be a global variable"; /*%%%*/ @@ -16053,11 +16063,11 @@ /*% %*/ /*% ripper[error]: param_error!(ERR_MESG(), $1) %*/ } -#line 16057 "parse.c" +#line 16067 "parse.c" break; case 705: /* f_bad_arg: "class variable" */ -#line 6276 "parse.y" +#line 6286 "parse.y" { static const char mesg[] = "formal argument cannot be a class variable"; /*%%%*/ @@ -16066,32 +16076,32 @@ /*% %*/ /*% ripper[error]: param_error!(ERR_MESG(), $1) %*/ } -#line 16070 "parse.c" +#line 16080 "parse.c" break; case 707: /* f_norm_arg: "local variable or method" */ -#line 6288 "parse.y" +#line 6298 "parse.y" { formal_argument(p, (yyvsp[0].id)); p->max_numparam = ORDINAL_PARAM; (yyval.id) = (yyvsp[0].id); } -#line 16080 "parse.c" +#line 16090 "parse.c" break; case 708: /* f_arg_asgn: f_norm_arg */ -#line 6296 "parse.y" +#line 6306 "parse.y" { ID id = get_id((yyvsp[0].id)); arg_var(p, id); p->cur_arg = id; (yyval.id) = (yyvsp[0].id); } -#line 16091 "parse.c" +#line 16101 "parse.c" break; case 709: /* f_arg_item: f_arg_asgn */ -#line 6305 "parse.y" +#line 6315 "parse.y" { p->cur_arg = 0; /*%%%*/ @@ -16099,11 +16109,11 @@ /*% %*/ /*% ripper: get_value($1) %*/ } -#line 16103 "parse.c" +#line 16113 "parse.c" break; case 710: /* f_arg_item: "(" f_margs rparen */ -#line 6313 "parse.y" +#line 6323 "parse.y" { /*%%%*/ ID tid = internal_id(p); @@ -16122,11 +16132,11 @@ /*% %*/ /*% ripper: mlhs_paren!($2) %*/ } -#line 16126 "parse.c" +#line 16136 "parse.c" break; case 712: /* f_arg: f_arg ',' f_arg_item */ -#line 6336 "parse.y" +#line 6346 "parse.y" { /*%%%*/ (yyval.node_args_aux) = (yyvsp[-2].node_args_aux); @@ -16136,11 +16146,11 @@ /*% %*/ /*% ripper: rb_ary_push($1, get_value($3)) %*/ } -#line 16140 "parse.c" +#line 16150 "parse.c" break; case 713: /* f_label: "label" */ -#line 6349 "parse.y" +#line 6359 "parse.y" { arg_var(p, formal_argument(p, (yyvsp[0].id))); p->cur_arg = get_id((yyvsp[0].id)); @@ -16148,11 +16158,11 @@ p->ctxt.in_argdef = 0; (yyval.id) = (yyvsp[0].id); } -#line 16152 "parse.c" +#line 16162 "parse.c" break; case 714: /* f_kw: f_label arg_value */ -#line 6359 "parse.y" +#line 6369 "parse.y" { p->cur_arg = 0; p->ctxt.in_argdef = 1; @@ -16161,11 +16171,11 @@ /*% %*/ /*% ripper: rb_assoc_new(get_value(assignable(p, $1)), get_value($2)) %*/ } -#line 16165 "parse.c" +#line 16175 "parse.c" break; case 715: /* f_kw: f_label */ -#line 6368 "parse.y" +#line 6378 "parse.y" { p->cur_arg = 0; p->ctxt.in_argdef = 1; @@ -16174,11 +16184,11 @@ /*% %*/ /*% ripper: rb_assoc_new(get_value(assignable(p, $1)), 0) %*/ } -#line 16178 "parse.c" +#line 16188 "parse.c" break; case 716: /* f_block_kw: f_label primary_value */ -#line 6379 "parse.y" +#line 6389 "parse.y" { p->ctxt.in_argdef = 1; /*%%%*/ @@ -16186,11 +16196,11 @@ /*% %*/ /*% ripper: rb_assoc_new(get_value(assignable(p, $1)), get_value($2)) %*/ } -#line 16190 "parse.c" +#line 16200 "parse.c" break; case 717: /* f_block_kw: f_label */ -#line 6387 "parse.y" +#line 6397 "parse.y" { p->ctxt.in_argdef = 1; /*%%%*/ @@ -16198,65 +16208,65 @@ /*% %*/ /*% ripper: rb_assoc_new(get_value(assignable(p, $1)), 0) %*/ } -#line 16202 "parse.c" +#line 16212 "parse.c" break; case 718: /* f_block_kwarg: f_block_kw */ -#line 6397 "parse.y" +#line 6407 "parse.y" { /*%%%*/ (yyval.node_kw_arg) = (yyvsp[0].node_kw_arg); /*% %*/ /*% ripper: rb_ary_new3(1, get_value($1)) %*/ } -#line 16213 "parse.c" +#line 16223 "parse.c" break; case 719: /* f_block_kwarg: f_block_kwarg ',' f_block_kw */ -#line 6404 "parse.y" +#line 6414 "parse.y" { /*%%%*/ (yyval.node_kw_arg) = kwd_append((yyvsp[-2].node_kw_arg), (yyvsp[0].node_kw_arg)); /*% %*/ /*% ripper: rb_ary_push($1, get_value($3)) %*/ } -#line 16224 "parse.c" +#line 16234 "parse.c" break; case 720: /* f_kwarg: f_kw */ -#line 6414 "parse.y" +#line 6424 "parse.y" { /*%%%*/ (yyval.node_kw_arg) = (yyvsp[0].node_kw_arg); /*% %*/ /*% ripper: rb_ary_new3(1, get_value($1)) %*/ } -#line 16235 "parse.c" +#line 16245 "parse.c" break; case 721: /* f_kwarg: f_kwarg ',' f_kw */ -#line 6421 "parse.y" +#line 6431 "parse.y" { /*%%%*/ (yyval.node_kw_arg) = kwd_append((yyvsp[-2].node_kw_arg), (yyvsp[0].node_kw_arg)); /*% %*/ /*% ripper: rb_ary_push($1, get_value($3)) %*/ } -#line 16246 "parse.c" +#line 16256 "parse.c" break; case 724: /* f_no_kwarg: p_kwnorest */ -#line 6434 "parse.y" +#line 6444 "parse.y" { /*%%%*/ /*% %*/ /*% ripper: nokw_param!(Qnil) %*/ } -#line 16256 "parse.c" +#line 16266 "parse.c" break; case 725: /* f_kwrest: kwrest_mark "local variable or method" */ -#line 6442 "parse.y" +#line 6452 "parse.y" { arg_var(p, shadowing_lvar(p, get_id((yyvsp[0].id)))); /*%%%*/ @@ -16264,11 +16274,11 @@ /*% %*/ /*% ripper: kwrest_param!($2) %*/ } -#line 16268 "parse.c" +#line 16278 "parse.c" break; case 726: /* f_kwrest: kwrest_mark */ -#line 6450 "parse.y" +#line 6460 "parse.y" { arg_var(p, idFWD_KWREST); /*%%%*/ @@ -16276,11 +16286,11 @@ /*% %*/ /*% ripper: kwrest_param!(Qnil) %*/ } -#line 16280 "parse.c" +#line 16290 "parse.c" break; case 727: /* f_opt: f_arg_asgn f_eq arg_value */ -#line 6460 "parse.y" +#line 6470 "parse.y" { p->cur_arg = 0; p->ctxt.in_argdef = 1; @@ -16289,11 +16299,11 @@ /*% %*/ /*% ripper: rb_assoc_new(get_value(assignable(p, $1)), get_value($3)) %*/ } -#line 16293 "parse.c" +#line 16303 "parse.c" break; case 728: /* f_block_opt: f_arg_asgn f_eq primary_value */ -#line 6471 "parse.y" +#line 6481 "parse.y" { p->cur_arg = 0; p->ctxt.in_argdef = 1; @@ -16302,55 +16312,55 @@ /*% %*/ /*% ripper: rb_assoc_new(get_value(assignable(p, $1)), get_value($3)) %*/ } -#line 16306 "parse.c" +#line 16316 "parse.c" break; case 729: /* f_block_optarg: f_block_opt */ -#line 6482 "parse.y" +#line 6492 "parse.y" { /*%%%*/ (yyval.node_opt_arg) = (yyvsp[0].node_opt_arg); /*% %*/ /*% ripper: rb_ary_new3(1, get_value($1)) %*/ } -#line 16317 "parse.c" +#line 16327 "parse.c" break; case 730: /* f_block_optarg: f_block_optarg ',' f_block_opt */ -#line 6489 "parse.y" +#line 6499 "parse.y" { /*%%%*/ (yyval.node_opt_arg) = opt_arg_append((yyvsp[-2].node_opt_arg), (yyvsp[0].node_opt_arg)); /*% %*/ /*% ripper: rb_ary_push($1, get_value($3)) %*/ } -#line 16328 "parse.c" +#line 16338 "parse.c" break; case 731: /* f_optarg: f_opt */ -#line 6498 "parse.y" +#line 6508 "parse.y" { /*%%%*/ (yyval.node_opt_arg) = (yyvsp[0].node_opt_arg); /*% %*/ /*% ripper: rb_ary_new3(1, get_value($1)) %*/ } -#line 16339 "parse.c" +#line 16349 "parse.c" break; case 732: /* f_optarg: f_optarg ',' f_opt */ -#line 6505 "parse.y" +#line 6515 "parse.y" { /*%%%*/ (yyval.node_opt_arg) = opt_arg_append((yyvsp[-2].node_opt_arg), (yyvsp[0].node_opt_arg)); /*% %*/ /*% ripper: rb_ary_push($1, get_value($3)) %*/ } -#line 16350 "parse.c" +#line 16360 "parse.c" break; case 735: /* f_rest_arg: restarg_mark "local variable or method" */ -#line 6518 "parse.y" +#line 6528 "parse.y" { arg_var(p, shadowing_lvar(p, get_id((yyvsp[0].id)))); /*%%%*/ @@ -16358,11 +16368,11 @@ /*% %*/ /*% ripper: rest_param!($2) %*/ } -#line 16362 "parse.c" +#line 16372 "parse.c" break; case 736: /* f_rest_arg: restarg_mark */ -#line 6526 "parse.y" +#line 6536 "parse.y" { arg_var(p, idFWD_REST); /*%%%*/ @@ -16370,11 +16380,11 @@ /*% %*/ /*% ripper: rest_param!(Qnil) %*/ } -#line 16374 "parse.c" +#line 16384 "parse.c" break; case 739: /* f_block_arg: blkarg_mark "local variable or method" */ -#line 6540 "parse.y" +#line 6550 "parse.y" { arg_var(p, shadowing_lvar(p, get_id((yyvsp[0].id)))); /*%%%*/ @@ -16382,11 +16392,11 @@ /*% %*/ /*% ripper: blockarg!($2) %*/ } -#line 16386 "parse.c" +#line 16396 "parse.c" break; case 740: /* f_block_arg: blkarg_mark */ -#line 6548 "parse.y" +#line 6558 "parse.y" { arg_var(p, idFWD_BLOCK); /*%%%*/ @@ -16394,42 +16404,42 @@ /*% %*/ /*% ripper: blockarg!(Qnil) %*/ } -#line 16398 "parse.c" +#line 16408 "parse.c" break; case 741: /* opt_f_block_arg: ',' f_block_arg */ -#line 6558 "parse.y" +#line 6568 "parse.y" { (yyval.id) = (yyvsp[0].id); } -#line 16406 "parse.c" +#line 16416 "parse.c" break; case 742: /* opt_f_block_arg: none */ -#line 6562 "parse.y" +#line 6572 "parse.y" { (yyval.id) = Qnull; } -#line 16414 "parse.c" +#line 16424 "parse.c" break; case 743: /* singleton: var_ref */ -#line 6568 "parse.y" +#line 6578 "parse.y" { value_expr((yyvsp[0].node)); (yyval.node) = (yyvsp[0].node); } -#line 16423 "parse.c" +#line 16433 "parse.c" break; case 744: /* $@37: %empty */ -#line 6572 "parse.y" +#line 6582 "parse.y" {SET_LEX_STATE(EXPR_BEG);} -#line 16429 "parse.c" +#line 16439 "parse.c" break; case 745: /* singleton: '(' $@37 expr rparen */ -#line 6573 "parse.y" +#line 6583 "parse.y" { /*%%%*/ NODE *expr = last_expr_node((yyvsp[-1].node)); @@ -16453,22 +16463,22 @@ /*% %*/ /*% ripper: paren!($3) %*/ } -#line 16457 "parse.c" +#line 16467 "parse.c" break; case 747: /* assoc_list: assocs trailer */ -#line 6600 "parse.y" +#line 6610 "parse.y" { /*%%%*/ (yyval.node) = (yyvsp[-1].node); /*% %*/ /*% ripper: assoclist_from_args!($1) %*/ } -#line 16468 "parse.c" +#line 16478 "parse.c" break; case 749: /* assocs: assocs ',' assoc */ -#line 6611 "parse.y" +#line 6621 "parse.y" { /*%%%*/ NODE *assocs = (yyvsp[-2].node); @@ -16489,11 +16499,11 @@ /*% %*/ /*% ripper: rb_ary_push($1, get_value($3)) %*/ } -#line 16493 "parse.c" +#line 16503 "parse.c" break; case 750: /* assoc: arg_value "=>" arg_value */ -#line 6634 "parse.y" +#line 6644 "parse.y" { /*%%%*/ if (nd_type_p((yyvsp[-2].node), NODE_STR)) { @@ -16504,22 +16514,22 @@ /*% %*/ /*% ripper: assoc_new!($1, $3) %*/ } -#line 16508 "parse.c" +#line 16518 "parse.c" break; case 751: /* assoc: "label" arg_value */ -#line 6645 "parse.y" +#line 6655 "parse.y" { /*%%%*/ (yyval.node) = list_append(p, NEW_LIST(NEW_LIT(ID2SYM((yyvsp[-1].id)), &(yylsp[-1])), &(yyloc)), (yyvsp[0].node)); /*% %*/ /*% ripper: assoc_new!($1, $2) %*/ } -#line 16519 "parse.c" +#line 16529 "parse.c" break; case 752: /* assoc: "label" */ -#line 6652 "parse.y" +#line 6662 "parse.y" { /*%%%*/ NODE *val = gettable(p, (yyvsp[0].id), &(yyloc)); @@ -16528,11 +16538,11 @@ /*% %*/ /*% ripper: assoc_new!($1, Qnil) %*/ } -#line 16532 "parse.c" +#line 16542 "parse.c" break; case 753: /* assoc: "string literal" string_contents tLABEL_END arg_value */ -#line 6661 "parse.y" +#line 6671 "parse.y" { /*%%%*/ YYLTYPE loc = code_loc_gen(&(yylsp[-3]), &(yylsp[-1])); @@ -16540,11 +16550,11 @@ /*% %*/ /*% ripper: assoc_new!(dyna_symbol!($2), $4) %*/ } -#line 16544 "parse.c" +#line 16554 "parse.c" break; case 754: /* assoc: "**arg" arg_value */ -#line 6669 "parse.y" +#line 6679 "parse.y" { /*%%%*/ if (nd_type_p((yyvsp[0].node), NODE_HASH) && @@ -16561,11 +16571,11 @@ /*% %*/ /*% ripper: assoc_splat!($2) %*/ } -#line 16565 "parse.c" +#line 16575 "parse.c" break; case 755: /* assoc: "**arg" */ -#line 6686 "parse.y" +#line 6696 "parse.y" { forwarding_arg_check(p, idFWD_KWREST, idFWD_ALL, "keyword rest"); /*%%%*/ @@ -16574,40 +16584,40 @@ /*% %*/ /*% ripper: assoc_splat!(Qnil) %*/ } -#line 16578 "parse.c" +#line 16588 "parse.c" break; case 779: /* term: ';' */ -#line 6743 "parse.y" +#line 6753 "parse.y" {yyerrok;token_flush(p);} -#line 16584 "parse.c" +#line 16594 "parse.c" break; case 780: /* term: '\n' */ -#line 6745 "parse.y" +#line 6755 "parse.y" { (yyloc).end_pos = (yyloc).beg_pos; token_flush(p); } -#line 16593 "parse.c" +#line 16603 "parse.c" break; case 782: /* terms: terms ';' */ -#line 6752 "parse.y" +#line 6762 "parse.y" {yyerrok;} -#line 16599 "parse.c" +#line 16609 "parse.c" break; case 783: /* none: %empty */ -#line 6756 "parse.y" +#line 6766 "parse.y" { (yyval.node) = Qnull; } -#line 16607 "parse.c" +#line 16617 "parse.c" break; -#line 16611 "parse.c" +#line 16621 "parse.c" default: break; } @@ -16836,7 +16846,7 @@ return yyresult; } -#line 6760 "parse.y" +#line 6770 "parse.y" # undef p # undef yylex @@ -17850,7 +17860,7 @@ p->tokidx += n; if (p->tokidx >= p->toksiz) { - do {p->toksiz *= 2;} while (p->toksiz < p->tokidx); + do {p->toksiz *= 2;} while (p->toksiz <= p->tokidx); REALLOC_N(p->tokenbuf, char, p->toksiz); } return &p->tokenbuf[p->tokidx-n]; @@ -20403,7 +20413,7 @@ if (!NIL_P(peek_end_expect_token_locations(p))) { VALUE end_loc; int lineno, column; - int beg_pos = (int)(p->lex.ptok - p->lex.pbeg); + int beg_pos = parser_column(p->lex.ptok - p->lex.pbeg); end_loc = peek_end_expect_token_locations(p); lineno = NUM2INT(rb_ary_entry(end_loc, 0)); @@ -20980,6 +20990,7 @@ else { yyerror0("no . floating literal anymore; put 0 before dot"); } + set_yylval_id(idNULL); SET_LEX_STATE(EXPR_END); p->lex.ptok = p->lex.pcur; goto retry; @@ -23260,9 +23271,9 @@ rb_parser_set_location_from_strterm_heredoc(struct parser_params *p, rb_strterm_heredoc_t *here, YYLTYPE *yylloc) { int sourceline = here->sourceline; - int beg_pos = (int)here->offset - here->quote - - (rb_strlen_lit("<<-") - !(here->func & STR_FUNC_INDENT)); - int end_pos = (int)here->offset + here->length + here->quote; + int beg_pos = parser_column(here->offset - here->quote + - (rb_strlen_lit("<<-") - !(here->func & STR_FUNC_INDENT))); + int end_pos = parser_column(here->offset + here->length + here->quote); return rb_parser_set_pos(yylloc, sourceline, beg_pos, end_pos); } @@ -23282,8 +23293,8 @@ rb_parser_set_location_of_heredoc_end(struct parser_params *p, YYLTYPE *yylloc) { int sourceline = p->ruby_sourceline; - int beg_pos = (int)(p->lex.ptok - p->lex.pbeg); - int end_pos = (int)(p->lex.pend - p->lex.pbeg); + int beg_pos = parser_column(p->lex.ptok - p->lex.pbeg); + int end_pos = parser_column(p->lex.pend - p->lex.pbeg); return rb_parser_set_pos(yylloc, sourceline, beg_pos, end_pos); } @@ -23299,8 +23310,8 @@ rb_parser_set_location_of_none(struct parser_params *p, YYLTYPE *yylloc) { int sourceline = p->ruby_sourceline; - int beg_pos = (int)(p->lex.ptok - p->lex.pbeg); - int end_pos = (int)(p->lex.ptok - p->lex.pbeg); + int beg_pos = parser_column(p->lex.ptok - p->lex.pbeg); + int end_pos = parser_column(p->lex.ptok - p->lex.pbeg); return rb_parser_set_pos(yylloc, sourceline, beg_pos, end_pos); } @@ -23308,8 +23319,8 @@ rb_parser_set_location(struct parser_params *p, YYLTYPE *yylloc) { int sourceline = p->ruby_sourceline; - int beg_pos = (int)(p->lex.ptok - p->lex.pbeg); - int end_pos = (int)(p->lex.pcur - p->lex.pbeg); + int beg_pos = parser_column(p->lex.ptok - p->lex.pbeg); + int end_pos = parser_column(p->lex.pcur - p->lex.pbeg); return rb_parser_set_pos(yylloc, sourceline, beg_pos, end_pos); } #endif /* !RIPPER */ diff -Nru ruby3.3-3.3.13/parse.h ruby3.3-3.3.14/parse.h --- ruby3.3-3.3.13/parse.h 2026-10-23 03:17:43.000000000 +0000 +++ ruby3.3-3.3.14/parse.h 2026-11-18 21:52:33.000000000 +0000 @@ -190,7 +190,7 @@ #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED union YYSTYPE { -#line 1962 "parse.y" +#line 1972 "parse.y" VALUE val; NODE *node; diff -Nru ruby3.3-3.3.13/parse.y ruby3.3-3.3.14/parse.y --- ruby3.3-3.3.13/parse.y 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/parse.y 2026-11-18 21:52:31.000000000 +0000 @@ -337,10 +337,20 @@ rb_parser_set_location(p, &(Current)) #define RUBY_INIT_YYLLOC() \ { \ - {p->ruby_sourceline, (int)(p->lex.ptok - p->lex.pbeg)}, \ - {p->ruby_sourceline, (int)(p->lex.pcur - p->lex.pbeg)}, \ + {p->ruby_sourceline, parser_column(p->lex.ptok - p->lex.pbeg)}, \ + {p->ruby_sourceline, parser_column(p->lex.pcur - p->lex.pbeg)}, \ } +/* Saturate instead of wrapping to a column before the line. */ +static inline int +parser_column(long pos) +{ +#if SIZEOF_INT < SIZEOF_LONG + if (pos > INT_MAX) return INT_MAX; +#endif + return (int)pos; +} + #define IS_lex_state_for(x, ls) ((x) & (ls)) #define IS_lex_state_all_for(x, ls) (((x) & (ls)) == (ls)) #define IS_lex_state(ls) IS_lex_state_for(p->lex.state, (ls)) @@ -7770,7 +7780,7 @@ p->tokidx += n; if (p->tokidx >= p->toksiz) { - do {p->toksiz *= 2;} while (p->toksiz < p->tokidx); + do {p->toksiz *= 2;} while (p->toksiz <= p->tokidx); REALLOC_N(p->tokenbuf, char, p->toksiz); } return &p->tokenbuf[p->tokidx-n]; @@ -10323,7 +10333,7 @@ if (!NIL_P(peek_end_expect_token_locations(p))) { VALUE end_loc; int lineno, column; - int beg_pos = (int)(p->lex.ptok - p->lex.pbeg); + int beg_pos = parser_column(p->lex.ptok - p->lex.pbeg); end_loc = peek_end_expect_token_locations(p); lineno = NUM2INT(rb_ary_entry(end_loc, 0)); @@ -10900,6 +10910,7 @@ else { yyerror0("no . floating literal anymore; put 0 before dot"); } + set_yylval_id(idNULL); SET_LEX_STATE(EXPR_END); p->lex.ptok = p->lex.pcur; goto retry; @@ -13180,9 +13191,9 @@ rb_parser_set_location_from_strterm_heredoc(struct parser_params *p, rb_strterm_heredoc_t *here, YYLTYPE *yylloc) { int sourceline = here->sourceline; - int beg_pos = (int)here->offset - here->quote - - (rb_strlen_lit("<<-") - !(here->func & STR_FUNC_INDENT)); - int end_pos = (int)here->offset + here->length + here->quote; + int beg_pos = parser_column(here->offset - here->quote + - (rb_strlen_lit("<<-") - !(here->func & STR_FUNC_INDENT))); + int end_pos = parser_column(here->offset + here->length + here->quote); return rb_parser_set_pos(yylloc, sourceline, beg_pos, end_pos); } @@ -13202,8 +13213,8 @@ rb_parser_set_location_of_heredoc_end(struct parser_params *p, YYLTYPE *yylloc) { int sourceline = p->ruby_sourceline; - int beg_pos = (int)(p->lex.ptok - p->lex.pbeg); - int end_pos = (int)(p->lex.pend - p->lex.pbeg); + int beg_pos = parser_column(p->lex.ptok - p->lex.pbeg); + int end_pos = parser_column(p->lex.pend - p->lex.pbeg); return rb_parser_set_pos(yylloc, sourceline, beg_pos, end_pos); } @@ -13219,8 +13230,8 @@ rb_parser_set_location_of_none(struct parser_params *p, YYLTYPE *yylloc) { int sourceline = p->ruby_sourceline; - int beg_pos = (int)(p->lex.ptok - p->lex.pbeg); - int end_pos = (int)(p->lex.ptok - p->lex.pbeg); + int beg_pos = parser_column(p->lex.ptok - p->lex.pbeg); + int end_pos = parser_column(p->lex.ptok - p->lex.pbeg); return rb_parser_set_pos(yylloc, sourceline, beg_pos, end_pos); } @@ -13228,8 +13239,8 @@ rb_parser_set_location(struct parser_params *p, YYLTYPE *yylloc) { int sourceline = p->ruby_sourceline; - int beg_pos = (int)(p->lex.ptok - p->lex.pbeg); - int end_pos = (int)(p->lex.pcur - p->lex.pbeg); + int beg_pos = parser_column(p->lex.ptok - p->lex.pbeg); + int end_pos = parser_column(p->lex.pcur - p->lex.pbeg); return rb_parser_set_pos(yylloc, sourceline, beg_pos, end_pos); } #endif /* !RIPPER */ diff -Nru ruby3.3-3.3.13/proc.c ruby3.3-3.3.14/proc.c --- ruby3.3-3.3.13/proc.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/proc.c 2026-11-18 21:52:31.000000000 +0000 @@ -89,6 +89,12 @@ VALUE env[VM_ENV_DATA_SIZE + 1]; /* ..., envval */ } cfunc_proc_t; +static inline bool +cfunc_proc_inline_env_p(const rb_proc_t *proc) +{ + return proc->block.as.captured.ep == ((const cfunc_proc_t *)proc)->env + VM_ENV_DATA_SIZE - 1; +} + static size_t proc_memsize(const void *ptr) { @@ -1329,11 +1335,15 @@ return Qfalse; } - if (memcmp( - ((cfunc_proc_t *)self_proc)->env, - ((cfunc_proc_t *)other_proc)->env, - sizeof(((cfunc_proc_t *)self_proc)->env))) { - return Qfalse; + if (self_block->as.captured.ep != other_block->as.captured.ep) { + if (!cfunc_proc_inline_env_p(self_proc) || + !cfunc_proc_inline_env_p(other_proc) || + memcmp( + ((const cfunc_proc_t *)self_proc)->env, + ((const cfunc_proc_t *)other_proc)->env, + sizeof(((const cfunc_proc_t *)self_proc)->env))) { + return Qfalse; + } } break; case block_type_proc: diff -Nru ruby3.3-3.3.13/range.c ruby3.3-3.3.14/range.c --- ruby3.3-3.3.13/range.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/range.c 2026-11-18 21:52:31.000000000 +0000 @@ -1703,6 +1703,9 @@ * +rb_ary_aset+ and +rb_ary_fill+. * * The case of err = 2 is used in +rb_str_aset+. + * + * On success, *begp and *lenp are non-negative and + * their sum does not exceed +LONG_MAX+. */ VALUE rb_range_component_beg_len(VALUE b, VALUE e, int excl, @@ -1720,17 +1723,18 @@ } if (end < 0) end += len; - if (!excl) - end++; /* include end point */ + /* Include the end point. LONG_MAX + 1 is not representable, so + * saturate instead of overflowing. */ + if (!excl && end < LONG_MAX) + end++; if (err == 0 || err == 2) { if (beg > len) goto out_of_range; if (end > len) end = len; } - len = end - beg; - if (len < 0) - len = 0; + /* beg is non-negative here, so end - beg cannot overflow. */ + len = end > beg ? end - beg : 0; *begp = beg; *lenp = len; diff -Nru ruby3.3-3.3.13/re.c ruby3.3-3.3.14/re.c --- ruby3.3-3.3.13/re.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/re.c 2026-11-18 21:52:31.000000000 +0000 @@ -171,13 +171,16 @@ } static inline unsigned int -rb_memsearch_qs_utf8_hash(const unsigned char *x) +rb_memsearch_qs_utf8_hash(const unsigned char *x, const unsigned char *e) { register const unsigned int mix = 8353; register unsigned int h = *x; if (h < 0xC0) { return h + 256; } + else if (e - x < (h < 0xE0 ? 2 : h < 0xF0 ? 3 : 4)) { + return h + 256; + } else if (h < 0xE0) { h *= mix; h += x[1]; @@ -214,10 +217,10 @@ qstable[i] = m + 1; } for (; x < xe; ++x) { - qstable[rb_memsearch_qs_utf8_hash(x)] = xe - x; + qstable[rb_memsearch_qs_utf8_hash(x, xe)] = xe - x; } /* Searching */ - for (; y + m <= ys + n; y += qstable[rb_memsearch_qs_utf8_hash(y+m)]) { + for (; y + m <= ys + n; y += qstable[rb_memsearch_qs_utf8_hash(y+m, ys+n)]) { if (*xs == *y && memcmp(xs, y, m) == 0) return y - ys; } @@ -568,6 +571,10 @@ } static VALUE +rb_reg_preprocess(const char *p, const char *end, rb_encoding *enc, + rb_encoding **fixed_enc, onig_errmsg_buffer err, int options); + +static VALUE rb_reg_str_with_term(VALUE re, int term) { int options, opt; @@ -621,14 +628,23 @@ if (*ptr == ':' && ptr[len-1] == ')') { Regexp *rp; VALUE verbose = ruby_verbose; - ruby_verbose = Qfalse; + rb_encoding *fixed_enc = 0; + onig_errmsg_buffer errmsg = ""; + VALUE unescaped; ++ptr; len -= 2; - err = onig_new(&rp, ptr, ptr + len, options, - enc, OnigDefaultSyntax, NULL); - onig_free(rp); - ruby_verbose = verbose; + unescaped = rb_reg_preprocess((const char *)ptr, (const char *)ptr + len, + enc, &fixed_enc, errmsg, options); + if (!NIL_P(unescaped)) { + ruby_verbose = Qfalse; + err = onig_new(&rp, (UChar *)RSTRING_PTR(unescaped), + (UChar *)RSTRING_END(unescaped), options, + enc, OnigDefaultSyntax, NULL); + onig_free(rp); + ruby_verbose = verbose; + RB_GC_GUARD(unescaped); + } } if (err) { options = RREGEXP_PTR(re)->options; @@ -1519,10 +1535,6 @@ return RBOOL(FL_TEST(re, KCODE_FIXED)); } -static VALUE -rb_reg_preprocess(const char *p, const char *end, rb_encoding *enc, - rb_encoding **fixed_enc, onig_errmsg_buffer err, int options); - NORETURN(static void reg_enc_error(VALUE re, VALUE str)); static void @@ -2979,6 +2991,7 @@ *encp = enc; } } + rb_str_buf_cat(buf, "(?#)", 4); break; } rb_str_buf_cat(buf, (char *)&c, 1); @@ -3037,6 +3050,9 @@ c = '('; rb_str_buf_cat(buf, (char *)&c, 1); } + else { + rb_str_buf_cat(buf, "(?#)", 4); + } break; } else { diff -Nru ruby3.3-3.3.13/regcomp.c ruby3.3-3.3.14/regcomp.c --- ruby3.3-3.3.13/regcomp.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/regcomp.c 2026-11-18 21:52:31.000000000 +0000 @@ -220,13 +220,26 @@ #endif /* USE_SUBEXP_CALL */ +/* Reject a write that would push the compiled program past the size its + offset type (int) can address. This must run before every write to the + program buffer, not only in add_opcode(): the bulk writers below emit + class bodies and exact strings in a single BBUF_ADD, which never revisits + the per-instruction guard. The arithmetic stays unsigned so a multi-GiB + payload cannot wrap the accounting and copy past the allocation. */ static int -add_opcode(regex_t* reg, int opcode) +check_compiled_program_size(regex_t* reg, OnigDistance add_len) { - /* Every instruction passes here, so this is where a program that would - outgrow its offset type is stopped, while it is still being emitted. */ - if (reg->used > MAX_COMPILED_PROGRAM_SIZE) + if (reg->used > MAX_COMPILED_PROGRAM_SIZE || + add_len > (OnigDistance )(MAX_COMPILED_PROGRAM_SIZE - reg->used)) return ONIGERR_TOO_BIG_COMPILED_PROGRAM; + return 0; +} + +static int +add_opcode(regex_t* reg, int opcode) +{ + int r = check_compiled_program_size(reg, 1); + if (r) return r; BBUF_ADD1(reg, opcode); return 0; } @@ -310,6 +323,8 @@ static int add_bytes(regex_t* reg, UChar* bytes, OnigDistance len) { + int r = check_compiled_program_size(reg, len); + if (r) return r; BBUF_ADD(reg, bytes, len); return 0; } @@ -317,6 +332,8 @@ static int add_bitset(regex_t* reg, BitSetRef bs) { + int r = check_compiled_program_size(reg, SIZE_BITSET); + if (r) return r; BBUF_ADD(reg, bs, SIZE_BITSET); return 0; } @@ -467,21 +484,25 @@ add_compile_string(UChar* s, int mb_len, OnigDistance byte_len, regex_t* reg, int ignore_case) { + int r; int op = select_str_opcode(mb_len, byte_len, ignore_case); - add_opcode(reg, op); + r = add_opcode(reg, op); + if (r) return r; - if (op == OP_EXACTMBN) - add_length(reg, mb_len); + if (op == OP_EXACTMBN) { + r = add_length(reg, mb_len); + if (r) return r; + } if (IS_NEED_STR_LEN_OP_EXACT(op)) { if (op == OP_EXACTN_IC) - add_length(reg, byte_len); + r = add_length(reg, byte_len); else - add_length(reg, byte_len / mb_len); + r = add_length(reg, byte_len / mb_len); + if (r) return r; } - add_bytes(reg, s, byte_len); - return 0; + return add_bytes(reg, s, byte_len); } @@ -585,21 +606,27 @@ add_multi_byte_cclass(BBuf* mbuf, regex_t* reg) { #ifdef PLATFORM_UNALIGNED_WORD_ACCESS - add_length(reg, mbuf->used); + int r = add_length(reg, mbuf->used); + if (r) return r; return add_bytes(reg, mbuf->p, mbuf->used); #else int r, pad_size; UChar* p = BBUF_GET_ADD_ADDRESS(reg) + SIZE_LENGTH; GET_ALIGNMENT_PAD_SIZE(p, pad_size); - add_length(reg, mbuf->used + (WORD_ALIGNMENT_SIZE - 1)); - if (pad_size != 0) add_bytes(reg, PadBuf, pad_size); + r = add_length(reg, mbuf->used + (WORD_ALIGNMENT_SIZE - 1)); + if (r) return r; + if (pad_size != 0) { + r = add_bytes(reg, PadBuf, pad_size); + if (r) return r; + } r = add_bytes(reg, mbuf->p, mbuf->used); + if (r) return r; /* padding for return value from compile_length_cclass_node() to be fix. */ pad_size = (WORD_ALIGNMENT_SIZE - 1) - pad_size; - if (pad_size != 0) add_bytes(reg, PadBuf, pad_size); + if (pad_size != 0) r = add_bytes(reg, PadBuf, pad_size); return r; #endif } @@ -636,26 +663,29 @@ if (IS_NULL(cc->mbuf)) { if (IS_NCCLASS_NOT(cc)) - add_opcode(reg, OP_CCLASS_NOT); + r = add_opcode(reg, OP_CCLASS_NOT); else - add_opcode(reg, OP_CCLASS); + r = add_opcode(reg, OP_CCLASS); + if (r) return r; r = add_bitset(reg, cc->bs); } else { if (ONIGENC_MBC_MINLEN(reg->enc) > 1 || bitset_is_empty(cc->bs)) { if (IS_NCCLASS_NOT(cc)) - add_opcode(reg, OP_CCLASS_MB_NOT); + r = add_opcode(reg, OP_CCLASS_MB_NOT); else - add_opcode(reg, OP_CCLASS_MB); + r = add_opcode(reg, OP_CCLASS_MB); + if (r) return r; r = add_multi_byte_cclass(cc->mbuf, reg); } else { if (IS_NCCLASS_NOT(cc)) - add_opcode(reg, OP_CCLASS_MIX_NOT); + r = add_opcode(reg, OP_CCLASS_MIX_NOT); else - add_opcode(reg, OP_CCLASS_MIX); + r = add_opcode(reg, OP_CCLASS_MIX); + if (r) return r; r = add_bitset(reg, cc->bs); if (r) return r; @@ -1119,7 +1149,8 @@ r = add_opcode_rel_addr(reg, OP_PUSH_OR_JUMP_EXACT1, mod_tlen + SIZE_OP_JUMP); if (r) return r; - add_bytes(reg, NSTR(qn->head_exact)->s, 1); + r = add_bytes(reg, NSTR(qn->head_exact)->s, 1); + if (r) return r; r = compile_tree_empty_check(qn->target, reg, empty_info); if (r) return r; r = add_opcode_rel_addr(reg, OP_JUMP, @@ -1131,7 +1162,8 @@ r = add_opcode_rel_addr(reg, OP_PUSH_IF_PEEK_NEXT, mod_tlen + SIZE_OP_JUMP); if (r) return r; - add_bytes(reg, NSTR(qn->next_head_exact)->s, 1); + r = add_bytes(reg, NSTR(qn->next_head_exact)->s, 1); + if (r) return r; r = compile_tree_empty_check(qn->target, reg, empty_info); if (r) return r; r = add_opcode_rel_addr(reg, OP_JUMP, @@ -1356,6 +1388,7 @@ r = add_abs_addr(reg, (int )node->call_addr); if (r) return r; len = compile_length_tree(node->target, reg); + if (len < 0) return len; len += (SIZE_OP_MEMORY_START_PUSH + SIZE_OP_RETURN); if (BIT_STATUS_AT(reg->bt_mem_end, node->regnum)) len += (IS_ENCLOSE_RECURSION(node) @@ -1604,6 +1637,7 @@ { int n; len = compile_length_tree(node->target, reg); + if (len < 0) return ONIGERR_PARSER_BUG; r = add_opcode_rel_addr(reg, OP_PUSH_LOOK_BEHIND_NOT, len + SIZE_OP_FAIL_LOOK_BEHIND_NOT); if (r) return r; @@ -1642,23 +1676,24 @@ r = compile_length_tree(NCAR(node), reg); if (r < 0) return r; len += r; + if (len > (int )MAX_COMPILED_PROGRAM_SIZE) + return ONIGERR_TOO_BIG_COMPILED_PROGRAM; } while (IS_NOT_NULL(node = NCDR(node))); r = len; break; case NT_ALT: - { - int n = 0; - len = 0; - do { - r = compile_length_tree(NCAR(node), reg); - if (r < 0) return r; - len += r; - n++; - } while (IS_NOT_NULL(node = NCDR(node))); - r = len; - r += (SIZE_OP_PUSH + SIZE_OP_JUMP) * (n - 1); - } + len = 0; + do { + r = compile_length_tree(NCAR(node), reg); + if (r < 0) return r; + len += r; + if (IS_NOT_NULL(NCDR(node))) + len += SIZE_OP_PUSH + SIZE_OP_JUMP; + if (len > (int )MAX_COMPILED_PROGRAM_SIZE) + return ONIGERR_TOO_BIG_COMPILED_PROGRAM; + } while (IS_NOT_NULL(node = NCDR(node))); + r = len; break; case NT_STR: @@ -1721,6 +1756,8 @@ break; } + if (r > (int )MAX_COMPILED_PROGRAM_SIZE) + return ONIGERR_TOO_BIG_COMPILED_PROGRAM; return r; } @@ -1742,15 +1779,20 @@ Node* x = node; len = 0; do { - len += compile_length_tree(NCAR(x), reg); + r = compile_length_tree(NCAR(x), reg); + if (r < 0) return r; + len += r; if (NCDR(x) != NULL) { len += SIZE_OP_PUSH + SIZE_OP_JUMP; } + if (len > (int )MAX_COMPILED_PROGRAM_SIZE) + return ONIGERR_TOO_BIG_COMPILED_PROGRAM; } while (IS_NOT_NULL(x = NCDR(x))); pos = reg->used + len; /* goal position */ do { len = compile_length_tree(NCAR(node), reg); + if (len < 0) return ONIGERR_PARSER_BUG; if (IS_NOT_NULL(NCDR(node))) { r = add_opcode_rel_addr(reg, OP_PUSH, len + SIZE_OP_JUMP); if (r) break; @@ -5783,7 +5825,11 @@ UnsetAddrList uslist; #endif - if (IS_NOT_NULL(einfo)) einfo->par = (UChar* )NULL; + if (IS_NOT_NULL(einfo)) { + einfo->enc = reg->enc; + einfo->par = (UChar* )NULL; + einfo->par_end = (UChar* )NULL; + } #ifdef RUBY scan_env.sourcefile = sourcefile; @@ -5982,6 +6028,14 @@ if (IS_NULL(reg)) return ONIGERR_INVALID_ARGUMENT; + (reg)->exact = (UChar* )NULL; + (reg)->int_map = (int* )NULL; + (reg)->int_map_backward = (int* )NULL; + (reg)->chain = (regex_t* )NULL; + (reg)->p = (UChar* )NULL; + (reg)->name_table = (void* )NULL; + (reg)->repeat_range = (OnigRepeatRange* )NULL; + if (ONIGENC_IS_UNDEF(enc)) return ONIGERR_DEFAULT_ENCODING_IS_NOT_SET; @@ -6001,15 +6055,9 @@ (reg)->options = option; (reg)->syntax = syntax; (reg)->optimize = 0; - (reg)->exact = (UChar* )NULL; - (reg)->int_map = (int* )NULL; - (reg)->int_map_backward = (int* )NULL; - (reg)->chain = (regex_t* )NULL; - (reg)->p = (UChar* )NULL; (reg)->alloc = 0; (reg)->used = 0; - (reg)->name_table = (void* )NULL; (reg)->case_fold_flag = case_fold_flag; diff -Nru ruby3.3-3.3.13/regenc.c ruby3.3-3.3.14/regenc.c --- ruby3.3-3.3.13/regenc.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/regenc.c 2026-11-18 21:52:31.000000000 +0000 @@ -640,18 +640,23 @@ } extern int -onigenc_single_byte_code_to_mbclen(OnigCodePoint code ARG_UNUSED, OnigEncoding enc ARG_UNUSED) +onigenc_single_byte_code_to_mbclen(OnigCodePoint code, OnigEncoding enc ARG_UNUSED) { + if (code > 0xff) + return ONIGERR_INVALID_CODE_POINT_VALUE; return 1; } extern int onigenc_single_byte_code_to_mbc(OnigCodePoint code, UChar *buf, OnigEncoding enc ARG_UNUSED) { + if (code > 0xff) { #ifdef RUBY - if (code > 0xff) rb_raise(rb_eRangeError, "%u out of char range", code); +#else + return ONIGERR_INVALID_CODE_POINT_VALUE; #endif + } *buf = (UChar )(code & 0xff); return 1; } diff -Nru ruby3.3-3.3.13/regexec.c ruby3.3-3.3.14/regexec.c --- ruby3.3-3.3.13/regexec.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/regexec.c 2026-11-18 21:52:31.000000000 +0000 @@ -400,14 +400,20 @@ } GET_MEMNUM_INC(repeat_mem, p); p += SIZE_RELADDR; - if (reg->repeat_range[repeat_mem].lower == 0) { - num_cache_opcodes++; - } - result = count_num_cache_opcodes_inner(reg, repeat_mem, lookaround_nesting, &p, &num_cache_opcodes); - if (result < 0 || num_cache_opcodes < 0) { - goto fail; - } - { + if (reg->repeat_range[repeat_mem].lower == 0 && reg->repeat_range[repeat_mem].upper == 0) { + long dummy_num_cache_opcodes = 0; + result = count_num_cache_opcodes_inner(reg, repeat_mem, lookaround_nesting, &p, &dummy_num_cache_opcodes); + if (result < 0 || dummy_num_cache_opcodes < 0) { + goto fail; + } + } else { + if (reg->repeat_range[repeat_mem].lower == 0) { + num_cache_opcodes++; + } + result = count_num_cache_opcodes_inner(reg, repeat_mem, lookaround_nesting, &p, &num_cache_opcodes); + if (result < 0 || num_cache_opcodes < 0) { + goto fail; + } OnigRepeatRange *repeat_range = ®->repeat_range[repeat_mem]; if (repeat_range->lower < repeat_range->upper) { num_cache_opcodes++; @@ -565,7 +571,7 @@ OnigCacheOpcode *cache_opcodes = *cache_opcodes_ptr; OnigPosition result; -# define INC_CACHE_OPCODES do {\ +# define INC_CACHE_OPCODES if (cache_opcodes != NULL) {\ cache_opcodes->addr = pbegin;\ cache_opcodes->cache_point = cache_point;\ cache_opcodes->outer_repeat_mem = current_repeat_mem;\ @@ -575,7 +581,7 @@ cache_opcodes->match_addr = NULL;\ cache_point += lookaround_nesting != 0 ? 2 : 1;\ cache_opcodes++;\ - } while (0) + } while (p < pend) { pbegin = p; @@ -706,27 +712,36 @@ case OP_REPEAT_NG: GET_MEMNUM_INC(repeat_mem, p); p += SIZE_RELADDR; - if (reg->repeat_range[repeat_mem].lower == 0) { - INC_CACHE_OPCODES; - } - { - long num_cache_points_in_repeat = 0; - long num_cache_points_at_repeat = cache_point; - OnigCacheOpcode* cache_opcodes_in_repeat = cache_opcodes; - result = init_cache_opcodes_inner(reg, repeat_mem, lookaround_nesting, &cache_opcodes, &p, &num_cache_points_in_repeat); + if (reg->repeat_range[repeat_mem].lower == 0 && reg->repeat_range[repeat_mem].upper == 0) { + long dummy_num_cache_points = 0; + OnigCacheOpcode* dummy_cache_opcodes = NULL; + result = init_cache_opcodes_inner(reg, repeat_mem, lookaround_nesting, &dummy_cache_opcodes, &p, &dummy_num_cache_points); if (result != 0) { goto fail; } - OnigRepeatRange *repeat_range = ®->repeat_range[repeat_mem]; - if (repeat_range->lower < repeat_range->upper) { + } else { + if (reg->repeat_range[repeat_mem].lower == 0) { INC_CACHE_OPCODES; - cache_point -= lookaround_nesting != 0 ? 2 : 1; } - int repeat_bounds = repeat_range->upper == 0x7fffffff ? 1 : repeat_range->upper - repeat_range->lower; - cache_point += num_cache_points_in_repeat * repeat_range->lower + (num_cache_points_in_repeat + (lookaround_nesting != 0 ? 2 : 1)) * repeat_bounds; - for (; cache_opcodes_in_repeat < cache_opcodes; cache_opcodes_in_repeat++) { - cache_opcodes_in_repeat->num_cache_points_at_outer_repeat = num_cache_points_at_repeat; - cache_opcodes_in_repeat->num_cache_points_in_outer_repeat = num_cache_points_in_repeat; + { + long num_cache_points_in_repeat = 0; + long num_cache_points_at_repeat = cache_point; + OnigCacheOpcode* cache_opcodes_in_repeat = cache_opcodes; + result = init_cache_opcodes_inner(reg, repeat_mem, lookaround_nesting, &cache_opcodes, &p, &num_cache_points_in_repeat); + if (result != 0) { + goto fail; + } + OnigRepeatRange *repeat_range = ®->repeat_range[repeat_mem]; + if (repeat_range->lower < repeat_range->upper) { + INC_CACHE_OPCODES; + cache_point -= lookaround_nesting != 0 ? 2 : 1; + } + int repeat_bounds = repeat_range->upper == 0x7fffffff ? 1 : repeat_range->upper - repeat_range->lower; + cache_point += num_cache_points_in_repeat * repeat_range->lower + (num_cache_points_in_repeat + (lookaround_nesting != 0 ? 2 : 1)) * repeat_bounds; + for (; cache_opcodes_in_repeat < cache_opcodes; cache_opcodes_in_repeat++) { + cache_opcodes_in_repeat->num_cache_points_at_outer_repeat = num_cache_points_at_repeat; + cache_opcodes_in_repeat->num_cache_points_in_outer_repeat = num_cache_points_in_repeat; + } } } break; @@ -1893,6 +1908,7 @@ s2 = *ps2; end1 = s1 + mblen; while (s1 < end1) { + if (s2 >= text_end) return 0; len1 = ONIGENC_MBC_CASE_FOLD(enc, case_fold_flag, &s1, text_end, buf1); len2 = ONIGENC_MBC_CASE_FOLD(enc, case_fold_flag, &s2, text_end, buf2); if (len1 != len2) return 0; @@ -2734,6 +2750,7 @@ case_fold_flag, &s, end, lowbuf); DATA_ENSURE(0); + if (len != enclen(encode, p, reg->p + reg->used)) goto fail; q = lowbuf; while (len-- > 0) { if (*p != *q) { @@ -2823,6 +2840,7 @@ case_fold_flag, &s, end, lowbuf); DATA_ENSURE(0); + if (len > endp - p) goto fail; q = lowbuf; while (len-- > 0) { if (*p != *q) goto fail; @@ -4121,7 +4139,7 @@ msa->match_cache_status = MATCH_CACHE_STATUS_ENABLED; OnigCacheOpcode* cache_opcodes = (OnigCacheOpcode*)xmalloc(msa->num_cache_opcodes * sizeof(OnigCacheOpcode)); if (cache_opcodes == NULL) { - return ONIGERR_MEMORY; + goto memory_error; } OnigPosition r = init_cache_opcodes(reg, cache_opcodes, &msa->num_cache_points); if (r < 0) { @@ -4146,15 +4164,15 @@ #endif /* Overflow check */ if (num_match_cache_points / length != (size_t)msa->num_cache_points) { - return ONIGERR_MEMORY; + goto memory_error; } if (num_match_cache_points >= LONG_MAX_LIMIT) { - return ONIGERR_MEMORY; + goto memory_error; } size_t match_cache_buf_length = (num_match_cache_points >> 3) + (num_match_cache_points & 7 ? 1 : 0) + 1; uint8_t* match_cache_buf = (uint8_t*)xmalloc(match_cache_buf_length * sizeof(uint8_t)); if (match_cache_buf == NULL) { - return ONIGERR_MEMORY; + goto memory_error; } xmemset(match_cache_buf, 0, match_cache_buf_length * sizeof(uint8_t)); msa->match_cache_buf = match_cache_buf; @@ -4204,6 +4222,13 @@ STACK_SAVE; xfree(xmalloc_base); return ONIGERR_TIMEOUT; + +#ifdef USE_MATCH_CACHE + memory_error: + STACK_SAVE; + xfree(xmalloc_base); + return ONIGERR_MEMORY; +#endif } @@ -4257,6 +4282,7 @@ while (t < tend) { lowlen = ONIGENC_MBC_CASE_FOLD(enc, case_fold_flag, &p, end, lowbuf); + if (tend - t < lowlen) return 0; q = lowbuf; while (lowlen > 0) { if (*t++ != *q++) return 0; diff -Nru ruby3.3-3.3.13/regint.h ruby3.3-3.3.14/regint.h --- ruby3.3-3.3.13/regint.h 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/regint.h 2026-11-18 21:52:31.000000000 +0000 @@ -480,38 +480,52 @@ (buf)->p = tmp;\ } while (0) +/* A BBuf addresses its contents with unsigned int used/alloc fields, so it + cannot hold more than this. Every size below is computed in size_t and + checked against it, so neither "pos + n" nor the alloc doubling can wrap + and send a write or an infinite grow loop past the buffer. */ +#define ONIG_MAX_BBUF_SIZE ((size_t )INT_MAX_LIMIT) + #define BBUF_EXPAND(buf,low) do{\ UChar *tmp;\ - do { (buf)->alloc *= 2; } while ((buf)->alloc < (unsigned int )low);\ - tmp = (UChar* )xrealloc((buf)->p, (buf)->alloc);\ + size_t new_alloc = ((buf)->alloc == 0) ? 1 : (size_t )(buf)->alloc;\ + if ((size_t )(low) > ONIG_MAX_BBUF_SIZE) return(ONIGERR_MEMORY);\ + do { new_alloc *= 2; } while (new_alloc < (size_t )(low));\ + if (new_alloc > ONIG_MAX_BBUF_SIZE) new_alloc = ONIG_MAX_BBUF_SIZE;\ + tmp = (UChar* )xrealloc((buf)->p, new_alloc);\ if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\ (buf)->p = tmp;\ + (buf)->alloc = (unsigned int )new_alloc;\ } while (0) #define BBUF_ENSURE_SIZE(buf,size) do{\ - unsigned int new_alloc = (buf)->alloc;\ - while (new_alloc < (unsigned int )(size)) { new_alloc *= 2; }\ - if ((buf)->alloc != new_alloc) {\ + size_t new_alloc = ((buf)->alloc == 0) ? 1 : (size_t )(buf)->alloc;\ + if ((size_t )(size) > ONIG_MAX_BBUF_SIZE) return(ONIGERR_MEMORY);\ + while (new_alloc < (size_t )(size)) { new_alloc *= 2; }\ + if (new_alloc > ONIG_MAX_BBUF_SIZE) new_alloc = ONIG_MAX_BBUF_SIZE;\ + if ((buf)->alloc != (unsigned int )new_alloc) {\ UChar *tmp;\ tmp = (UChar* )xrealloc((buf)->p, new_alloc);\ if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\ (buf)->p = tmp;\ - (buf)->alloc = new_alloc;\ + (buf)->alloc = (unsigned int )new_alloc;\ }\ } while (0) #define BBUF_WRITE(buf,pos,bytes,n) do{\ - int used = (pos) + (int )(n);\ - if ((buf)->alloc < (unsigned int )used) BBUF_EXPAND((buf),used);\ + size_t used = (size_t )(pos) + (size_t )(n);\ + if (used > ONIG_MAX_BBUF_SIZE) return(ONIGERR_MEMORY);\ + if ((size_t )(buf)->alloc < used) BBUF_EXPAND((buf),used);\ xmemcpy((buf)->p + (pos), (bytes), (n));\ - if ((buf)->used < (unsigned int )used) (buf)->used = used;\ + if ((size_t )(buf)->used < used) (buf)->used = (unsigned int )used;\ } while (0) #define BBUF_WRITE1(buf,pos,byte) do{\ - int used = (pos) + 1;\ - if ((buf)->alloc < (unsigned int )used) BBUF_EXPAND((buf),used);\ + size_t used = (size_t )(pos) + 1;\ + if (used > ONIG_MAX_BBUF_SIZE) return(ONIGERR_MEMORY);\ + if ((size_t )(buf)->alloc < used) BBUF_EXPAND((buf),used);\ (buf)->p[(pos)] = (UChar )(byte);\ - if ((buf)->used < (unsigned int )used) (buf)->used = used;\ + if ((size_t )(buf)->used < used) (buf)->used = (unsigned int )used;\ } while (0) #define BBUF_ADD(buf,bytes,n) BBUF_WRITE((buf),(buf)->used,(bytes),(n)) @@ -521,9 +535,11 @@ /* from < to */ #define BBUF_MOVE_RIGHT(buf,from,to,n) do {\ - if ((unsigned int )((to)+(n)) > (buf)->alloc) BBUF_EXPAND((buf),(to) + (n));\ + size_t end = (size_t )(to) + (size_t )(n);\ + if (end > ONIG_MAX_BBUF_SIZE) return(ONIGERR_MEMORY);\ + if (end > (size_t )(buf)->alloc) BBUF_EXPAND((buf),end);\ xmemmove((buf)->p + (to), (buf)->p + (from), (n));\ - if ((unsigned int )((to)+(n)) > (buf)->used) (buf)->used = (to) + (n);\ + if (end > (size_t )(buf)->used) (buf)->used = (unsigned int )end;\ } while (0) /* from > to */ diff -Nru ruby3.3-3.3.13/regparse.c ruby3.3-3.3.14/regparse.c --- ruby3.3-3.3.13/regparse.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/regparse.c 2026-11-18 21:52:31.000000000 +0000 @@ -1571,6 +1571,15 @@ return onig_node_str_cat(node, buf, buf + num); } +static int +check_code_point(OnigCodePoint code, OnigEncoding enc) +{ + if (ONIGENC_IS_UNICODE(enc) && + (code > 0x10ffff || (code >= 0xd800 && code <= 0xdfff))) + return ONIGERR_INVALID_CODE_POINT_VALUE; + return 0; +} + #if 0 extern void onig_node_conv_to_str_node(Node* node, int flag) @@ -4045,7 +4054,11 @@ if (c == 'R' || c == '0') { PINC; /* skip 'R' / '0' */ - if (!PPEEK_IS(')')) return ONIGERR_INVALID_GROUP_NAME; + if (!PPEEK_IS(')')) { + r = ONIGERR_INVALID_GROUP_NAME; + onig_scan_env_set_error_string(env, r, p - 1, p + 1); + return r; + } PINC; /* skip ')' */ name_end = name = p; gnum = 0; @@ -4768,7 +4781,6 @@ /* tok->base != 0 : octal or hexadec. */ if (! ONIGENC_IS_SINGLEBYTE(env->enc) && tok->base != 0) { UChar buf[ONIGENC_CODE_TO_MBC_MAXLEN]; - UChar* bufe = buf + ONIGENC_CODE_TO_MBC_MAXLEN; UChar* psave = p; int i, base = tok->base; @@ -4788,9 +4800,10 @@ goto err; } - len = enclen(env->enc, buf, buf + i); - if (i < len) { - r = ONIGERR_TOO_SHORT_MULTI_BYTE_STRING; + len = ONIGENC_PRECISE_MBC_ENC_LEN(env->enc, buf, buf + i); + if (! ONIGENC_MBCLEN_CHARFOUND_P(len)) { + r = ONIGENC_MBCLEN_NEEDMORE_P(len) ? + ONIGERR_TOO_SHORT_MULTI_BYTE_STRING : ONIGERR_INVALID_CODE_POINT_VALUE; goto err; } else if (i > len) { /* fetch back */ @@ -4807,7 +4820,7 @@ goto raw_single; } else { - v = ONIGENC_MBC_TO_CODE(env->enc, buf, bufe); + v = ONIGENC_MBC_TO_CODE(env->enc, buf, buf + len); in_type = CCV_CODE_POINT; } } @@ -4822,6 +4835,8 @@ case TK_CODE_POINT: v = tok->u.code; + r = check_code_point(v, env->enc); + if (r != 0) goto err; in_israw = 1; val_entry: len = ONIGENC_CODE_TO_MBCLEN(env->enc, v); @@ -4852,12 +4867,12 @@ case TK_CHAR_TYPE: r = add_ctype_to_cc(cc, tok->u.prop.ctype, tok->u.prop.not, IS_ASCII_RANGE(env->option), env); - if (r != 0) return r; + if (r != 0) goto err; if (IS_NOT_NULL(asc_cc)) { if (tok->u.prop.ctype != ONIGENC_CTYPE_WORD) r = add_ctype_to_cc(asc_cc, tok->u.prop.ctype, tok->u.prop.not, IS_ASCII_RANGE(env->option), env); - if (r != 0) return r; + if (r != 0) goto err; } next_class: @@ -4870,13 +4885,16 @@ int ctype; ctype = fetch_char_property_to_ctype(&p, end, env); - if (ctype < 0) return ctype; + if (ctype < 0) { + r = ctype; + goto err; + } r = add_ctype_to_cc(cc, ctype, tok->u.prop.not, 0, env); - if (r != 0) return r; + if (r != 0) goto err; if (IS_NOT_NULL(asc_cc)) { if (ctype != ONIGENC_CTYPE_ASCII) r = add_ctype_to_cc(asc_cc, ctype, tok->u.prop.not, 0, env); - if (r != 0) return r; + if (r != 0) goto err; } goto next_class; } @@ -4977,6 +4995,7 @@ r = and_cclass(prev_cc, cc, env); if (r != 0) goto err; bbuf_free(cc->mbuf); + cc->mbuf = NULL; if (IS_NOT_NULL(asc_cc)) { r = and_cclass(asc_prev_cc, asc_cc, env); if (r != 0) goto err; @@ -6253,11 +6272,14 @@ int r, len, group = 0; Node* qn; Node** targetp; + unsigned int parse_depth; *np = NULL; if (tok->type == (enum TokenSyms )term) goto end_of_token; + parse_depth = env->parse_depth; + switch (tok->type) { case TK_ALT: case TK_EOT: @@ -6329,6 +6351,8 @@ } #ifndef NUMBERED_CHAR_IS_NOT_CASE_AMBIG else if (r == TK_CODE_POINT) { + r = check_code_point(tok->u.code, env->enc); + if (r != 0) return r; r = node_str_cat_codepoint(*np, env->enc, tok->u.code); } #endif @@ -6352,11 +6376,15 @@ len = 1; while (1) { if (len >= ONIGENC_MBC_MINLEN(env->enc)) { - if (len == enclen(env->enc, NSTR(*np)->s, NSTR(*np)->end)) { + int n = ONIGENC_IS_SINGLEBYTE(env->enc) ? 1 : + ONIGENC_PRECISE_MBC_ENC_LEN(env->enc, NSTR(*np)->s, NSTR(*np)->end); + if (n == len) { r = fetch_token(tok, src, end, env); NSTRING_CLEAR_RAW(*np); goto string_end; } + if (! ONIGENC_MBCLEN_NEEDMORE_P(n)) + return ONIGERR_INVALID_CODE_POINT_VALUE; } r = fetch_token(tok, src, end, env); @@ -6387,6 +6415,8 @@ case TK_CODE_POINT: { + r = check_code_point(tok->u.code, env->enc); + if (r != 0) return r; *np = node_new_empty(); CHECK_NULL_RETURN_MEMERR(*np); r = node_str_cat_codepoint(*np, env->enc, tok->u.code); @@ -6568,6 +6598,10 @@ if (is_invalid_quantifier_target(*targetp)) return ONIGERR_TARGET_OF_REPEAT_OPERATOR_INVALID; + parse_depth++; + if (parse_depth > ParseDepthLimit) + return ONIGERR_PARSE_DEPTH_LIMIT_OVER; + qn = node_new_quantifier(tok->u.repeat.lower, tok->u.repeat.upper, (r == TK_INTERVAL ? 1 : 0)); CHECK_NULL_RETURN_MEMERR(qn); diff -Nru ruby3.3-3.3.13/revision.h ruby3.3-3.3.14/revision.h --- ruby3.3-3.3.13/revision.h 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/revision.h 2026-11-18 21:52:31.000000000 +0000 @@ -1,5 +1,5 @@ -#define RUBY_REVISION "af48f08f21" -#define RUBY_FULL_REVISION "af48f08f2113db1cc4ee171f34e399d7a902151b" +#define RUBY_REVISION "f4c37f481b" +#define RUBY_FULL_REVISION "f4c37f481b434fd34a132bdb91992bfde162aef8" #define RUBY_RELEASE_YEAR 2026 -#define RUBY_RELEASE_MONTH 10 -#define RUBY_RELEASE_DAY 23 +#define RUBY_RELEASE_MONTH 11 +#define RUBY_RELEASE_DAY 19 diff -Nru ruby3.3-3.3.13/sprintf.c ruby3.3-3.3.14/sprintf.c --- ruby3.3-3.3.13/sprintf.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/sprintf.c 2026-11-18 21:52:31.000000000 +0000 @@ -76,6 +76,11 @@ buf = RSTRING_PTR(result);\ } while (0) +#define CHECK_WIDTH(l, w) do { \ + if ((l) > INT_MAX - (w)) rb_raise(rb_eArgError, "width too big");\ + CHECK((l)+(w));\ +} while (0) + #define PUSH(s, l) do { \ CHECK(l);\ PUSH_(s, l);\ @@ -97,15 +102,26 @@ blen += (l);\ } while (0) +static void +format_args_check(VALUE ary, int argc, const VALUE *argv) +{ + if (!RTEST(ary)) return; + if (RARRAY_LEN(ary) != argc || RARRAY_CONST_PTR(ary) != argv) { + rb_raise(rb_eRuntimeError, "array modified during formatting"); + } +} + #define GETARG() (!UNDEF_P(nextvalue) ? nextvalue : \ GETNEXTARG()) #define GETNEXTARG() ( \ check_next_arg(posarg, nextarg), \ + (RTEST(ary) ? (format_args_check(ary, argc0, argv0), 0) : 0), \ (posarg = nextarg++, GETNTHARG(posarg))) #define GETPOSARG(n) ( \ check_pos_arg(posarg, (n)), \ + (RTEST(ary) ? (format_args_check(ary, argc0, argv0), 0) : 0), \ (posarg = -1, GETNTHARG(n))) #define GETNTHARG(nth) \ @@ -210,8 +226,20 @@ return rb_str_format(argc - 1, argv + 1, GETNTHARG(0)); } +static char * +reassoc_enc(VALUE result, rb_encoding *enc) +{ + return RSTRING_PTR(rb_enc_associate(result, enc)); +} + +static char * +reassoc_enc_index(VALUE result, int encidx) +{ + return RSTRING_PTR(rb_enc_associate_index(result, encidx)); +} + VALUE -rb_str_format(int argc, const VALUE *argv, VALUE fmt) +rb_str_format_ary(int argc, const VALUE *argv, VALUE fmt, VALUE ary) { enum {default_float_precision = 6}; rb_encoding *enc; @@ -255,6 +283,10 @@ ENC_CODERANGE_BROKEN : (coderange = cr))); \ } \ } while (0) + + const int argc0 = argc; + const VALUE *argv0 = argv; + ++argc; --argv; StringValue(fmt); @@ -267,8 +299,7 @@ blen = 0; bsiz = 120; result = rb_str_buf_new(bsiz); - rb_enc_associate(result, enc); - buf = RSTRING_PTR(result); + buf = reassoc_enc(result, enc); memset(buf, 0, bsiz); ENC_CODERANGE_SET(result, coderange); @@ -402,8 +433,8 @@ GETASTER(width); if (width < 0) { flags |= FMINUS; + if (width == INT_MIN) rb_raise(rb_eArgError, "width too big"); width = -width; - if (width < 0) rb_raise(rb_eArgError, "width too big"); } p++; goto retry; @@ -444,7 +475,7 @@ VALUE val = GETARG(); VALUE tmp; unsigned int c; - int n; + int n, encidx; tmp = rb_check_string_type(val); if (!NIL_P(tmp)) { @@ -454,14 +485,16 @@ goto format_s1; } n = NUM2INT(val); - if (n >= 0) n = rb_enc_codelen((c = n), enc); + if (n >= 0) { + n = rb_enc_codelen((c = n), enc); + encidx = rb_ascii8bit_appendable_encoding_index(enc, c); + } if (n <= 0) { rb_raise(rb_eArgError, "invalid character"); } - int encidx = rb_ascii8bit_appendable_encoding_index(enc, c); if (encidx >= 0 && encidx != rb_enc_to_index(enc)) { /* special case */ - rb_enc_associate_index(result, encidx); + buf = reassoc_enc_index(result, encidx); enc = rb_enc_from_index(encidx); coderange = ENC_CODERANGE_VALID; } @@ -470,19 +503,13 @@ rb_enc_mbcput(c, &buf[blen], enc); blen += n; } - else if ((flags & FMINUS)) { - --width; - CHECK(n + (width > 0 ? width : 0)); - rb_enc_mbcput(c, &buf[blen], enc); - blen += n; - if (width > 0) FILL_(' ', width); - } else { --width; - CHECK(n + (width > 0 ? width : 0)); - if (width > 0) FILL_(' ', width); + CHECK_WIDTH(n, (width > 0 ? width : 0)); + if (!(flags & FMINUS) && (width > 0)) FILL_(' ', width); rb_enc_mbcput(c, &buf[blen], enc); blen += n; + if ((flags & FMINUS) && (width > 0)) FILL_(' ', width); } } break; @@ -519,7 +546,7 @@ /* need to adjust multi-byte string pos */ if ((flags&FWIDTH) && (width > slen)) { width -= (int)slen; - CHECK(len + width); + CHECK_WIDTH(len, width); if (!(flags&FMINUS)) { FILL_(' ', width); width = 0; @@ -530,13 +557,13 @@ if (flags&FMINUS) { FILL_(' ', width); } - rb_enc_associate(result, enc); + buf = reassoc_enc(result, enc); break; } } PUSH(RSTRING_PTR(str), len); RB_GC_GUARD(str); - rb_enc_associate(result, enc); + buf = reassoc_enc(result, enc); } break; @@ -833,7 +860,7 @@ if (sign || (flags&FSPACE)) ++len; if (prec > 0) ++len; /* period */ fill = width > len ? width - len : 0; - CHECK(fill + len); + CHECK(fill + len); /* max(width, len) */ if (fill && !(flags&(FMINUS|FZERO))) { FILL_(' ', fill); } @@ -940,6 +967,7 @@ rb_str_tmp_frozen_release(orig, fmt); /* XXX - We cannot validate the number of arguments if (digit)$ style used. */ + format_args_check(ary, argc0, argv0); if (posarg >= 0 && nextarg < argc) { const char *mesg = "too many arguments for format string"; if (RTEST(ruby_debug)) rb_raise(rb_eArgError, "%s", mesg); @@ -950,6 +978,12 @@ return result; } +VALUE +rb_str_format(int argc, const VALUE *argv, VALUE fmt) +{ + return rb_str_format_ary(argc, argv, fmt, Qfalse); +} + static char * fmt_setup(char *buf, size_t size, int c, int flags, int width, int prec) { diff -Nru ruby3.3-3.3.13/strftime.c ruby3.3-3.3.14/strftime.c --- ruby3.3-3.3.13/strftime.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/strftime.c 2026-11-18 21:52:31.000000000 +0000 @@ -555,34 +555,35 @@ else { sign = +1; } - switch (colons) { +#define NEEDS_FOR_ZONE(fmt) do { \ + const int zone_size = rb_strlen_lit(fmt); \ + if (precision < zone_size) precision = zone_size; \ + NEEDS(precision); \ + precision -= zone_size - rb_strlen_lit("hh"); \ + } while (0) + + switch (colons) { case 0: /* %z -> +hhmm */ - precision = precision <= 5 ? 2 : precision-3; - NEEDS(precision + 3); + NEEDS_FOR_ZONE("+hhmm"); break; case 1: /* %:z -> +hh:mm */ - precision = precision <= 6 ? 2 : precision-4; - NEEDS(precision + 4); + NEEDS_FOR_ZONE("+hh:mm"); break; case 2: /* %::z -> +hh:mm:ss */ - precision = precision <= 9 ? 2 : precision-7; - NEEDS(precision + 7); + NEEDS_FOR_ZONE("+hh:mm:ss"); break; case 3: /* %:::z -> +hh[:mm[:ss]] */ if (off % 3600 == 0) { - precision = precision <= 3 ? 2 : precision-1; - NEEDS(precision + 3); + NEEDS_FOR_ZONE("+hh"); } else if (off % 60 == 0) { - precision = precision <= 6 ? 2 : precision-4; - NEEDS(precision + 4); + NEEDS_FOR_ZONE("+hh:mm"); } else { - precision = precision <= 9 ? 2 : precision-7; - NEEDS(precision + 9); + NEEDS_FOR_ZONE("+hh:mm:ss"); } break; diff -Nru ruby3.3-3.3.13/string.c ruby3.3-3.3.14/string.c --- ruby3.3-3.3.13/string.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/string.c 2026-11-18 21:52:31.000000000 +0000 @@ -148,7 +148,7 @@ if (str_embed_capa(str) < capacity + termlen) {\ char *const tmp = ALLOC_N(char, (size_t)(capacity) + (termlen));\ const long tlen = RSTRING_LEN(str);\ - memcpy(tmp, RSTRING_PTR(str), tlen);\ + memcpy(tmp, RSTRING_PTR(str), str_embed_capa(str));\ RSTRING(str)->as.heap.ptr = tmp;\ RSTRING(str)->len = tlen;\ STR_SET_NOEMBED(str);\ @@ -714,6 +714,9 @@ static inline void str_enc_copy_direct(VALUE str1, VALUE str2) { + RUBY_ASSERT(TERM_LEN(str2) <= TERM_LEN(str1) || str_dependent_p(str1) || + (STR_EMBED_P(str1) && + str_embed_capa(str1) >= RSTRING_LEN(str1) + TERM_LEN(str2))); int inlined_encoding = RB_ENCODING_GET_INLINED(str2); if (inlined_encoding == ENCODING_INLINE_MAX) { rb_enc_set_index(str1, rb_enc_get_index(str2)); @@ -1365,7 +1368,7 @@ * allocated. If the string is shared then the shared root must be * embedded, so we want to create a copy. If the string is a shared root * then it must be embedded, so we want to create a copy. */ - if (STR_EMBED_P(orig) || FL_TEST_RAW(orig, STR_SHARED | STR_SHARED_ROOT)) { + if (STR_EMBED_P(orig) || FL_TEST_RAW(orig, STR_SHARED | STR_SHARED_ROOT | RSTRING_FSTR)) { RSTRING(str)->as.heap.ptr = rb_xmalloc_mul_add_mul(sizeof(char), capa, sizeof(char), TERM_LEN(orig)); memcpy(RSTRING(str)->as.heap.ptr, RSTRING_PTR(orig), capa); } @@ -1379,7 +1382,7 @@ } RSTRING(str)->len = RSTRING(orig)->len; - RSTRING(str)->as.heap.aux.capa = capa; + RSTRING(str)->as.heap.aux.capa = capa + (TERM_LEN(orig) - TERM_LEN(str)); return str; } @@ -2409,7 +2412,7 @@ VALUE tmp = rb_check_array_type(arg); if (!NIL_P(tmp)) { - VALUE result = rb_str_format(RARRAY_LENINT(tmp), RARRAY_CONST_PTR(tmp), str); + VALUE result = rb_str_format_ary(RARRAY_LENINT(tmp), RARRAY_CONST_PTR(tmp), str, tmp); RB_GC_GUARD(tmp); return result; } @@ -2500,7 +2503,7 @@ if (expand < 0) { rb_raise(rb_eArgError, "negative expanding string size"); } - if (expand >= LONG_MAX - len) { + if (expand > LONG_MAX - termlen - len) { rb_raise(rb_eArgError, "string size too big"); } @@ -2859,7 +2862,7 @@ const int termlen = TERM_LEN(str); if (!SHARABLE_SUBSTRING_P(beg, len, RSTRING_LEN(str))) { - str2 = rb_str_new(RSTRING_PTR(str) + beg, len); + str2 = rb_enc_str_new(RSTRING_PTR(str) + beg, len, STR_ENC_GET(str)); RB_GC_GUARD(str); return str2; } @@ -2905,7 +2908,7 @@ char *p, *s = RSTRING_PTR(str), *e = s + blen; if (len < 0) return 0; - if (beg < 0 && -beg < 0) return 0; + if (beg == LONG_MIN) return 0; if (!blen) { len = 0; } @@ -3147,6 +3150,9 @@ int independent = str_independent(str); long slen = RSTRING_LEN(str); + if (len > LONG_MAX - TERM_LEN(str)) { + rb_raise(rb_eArgError, "string size too big"); + } if (slen > len && ENC_CODERANGE(str) != ENC_CODERANGE_7BIT) { ENC_CODERANGE_CLEAR(str); @@ -3435,7 +3441,7 @@ for (i = 0; i < num; ++i) { len += RSTRING_LEN(strary[i]); } str = rb_str_buf_new(len); - str_enc_copy_direct(str, strary[0]); + rb_enc_associate_index(str, ENCODING_GET(strary[0])); for (i = s; i < num; ++i) { const VALUE v = strary[i]; @@ -3444,7 +3450,7 @@ rb_str_buf_append(str, v); if (encidx != ENCINDEX_US_ASCII) { if (ENCODING_GET_INLINED(str) == ENCINDEX_US_ASCII) - rb_enc_set_index(str, encidx); + rb_enc_associate_index(str, encidx); } } return str; @@ -4139,8 +4145,8 @@ long pos; if (rb_scan_args(argc, argv, "11", &sub, &initpos) == 2) { - long slen = RSTRING_LEN(str); pos = NUM2LONG(initpos); + long slen = RSTRING_LEN(str); if (pos < 0 ? (pos += slen) < 0 : pos > slen) { if (RB_TYPE_P(sub, T_REGEXP)) { rb_backref_set(Qnil); @@ -4195,7 +4201,7 @@ searchlen = adjusted - sbeg; continue; } - if (memcmp(hit, t, slen) == 0) + if (hit + slen <= e && memcmp(hit, t, slen) == 0) return hit - sbeg; searchlen = adjusted - sbeg; } while (searchlen > 0); @@ -4215,7 +4221,7 @@ slen = RSTRING_LEN(sub); while (s) { - if (memcmp(s, t, slen) == 0) { + if (s + slen <= e && memcmp(s, t, slen) == 0) { return s - sbeg; } if (s <= sbeg) break; @@ -4243,16 +4249,20 @@ /* substring longer than string */ if (len < slen) return -1; + /* character counts, so the byte tail can still be shorter than sub */ if (len - pos < slen) pos = len - slen; if (len == 0) return pos; sbeg = RSTRING_PTR(str); if (pos == 0) { - if (memcmp(sbeg, RSTRING_PTR(sub), RSTRING_LEN(sub)) == 0) + if (RSTRING_LEN(sub) <= RSTRING_LEN(str) && + memcmp(sbeg, RSTRING_PTR(sub), RSTRING_LEN(sub)) == 0) { return 0; - else + } + else { return -1; + } } s = str_nth(sbeg, RSTRING_END(str), pos, enc, singlebyte); @@ -4457,10 +4467,11 @@ { VALUE sub; VALUE initpos; - long pos, len = RSTRING_LEN(str); + long pos; if (rb_scan_args(argc, argv, "11", &sub, &initpos) == 2) { pos = NUM2LONG(initpos); + long len = RSTRING_LEN(str); if (pos < 0 && (pos += len) < 0) { if (RB_TYPE_P(sub, T_REGEXP)) { rb_backref_set(Qnil); @@ -4470,7 +4481,7 @@ if (pos > len) pos = len; } else { - pos = len; + pos = RSTRING_LEN(str); } str_ensure_byte_pos(str, pos); @@ -4868,7 +4879,7 @@ rb_str_succ(VALUE orig) { VALUE str; - str = rb_str_new(RSTRING_PTR(orig), RSTRING_LEN(orig)); + str = rb_enc_str_new(RSTRING_PTR(orig), RSTRING_LEN(orig), STR_ENC_GET(orig)); rb_enc_cr_str_copy_for_substr(str, orig); return str_succ(str); } @@ -5428,8 +5439,8 @@ } match = rb_backref_get(); nth = rb_reg_backref_number(match, backref); - regs = RMATCH_REGS(match); - if ((nth >= regs->num_regs) || ((nth < 0) && (-nth >= regs->num_regs))) { + regs = RMATCH_REGS(match); /* 1 <= regs->num_regs <= ONIG_MAX_CAPTURE_GROUP_NUM (= 32767) */ + if (nth >= regs->num_regs || nth + regs->num_regs <= 0) { rb_raise(rb_eIndexError, "index %d out of regexp", nth); } if (nth < 0) { @@ -5442,7 +5453,12 @@ } end = END(nth); len = end - start; + StringValue(val); + if (start + len > RSTRING_LEN(str)) { + rb_raise(rb_eRuntimeError, "string modified"); + } + enc = rb_enc_check_str(str, val); rb_str_update_0(str, start, len, val); rb_enc_associate(str, enc); @@ -5606,6 +5622,9 @@ else if (nth >= regs->num_regs) return Qnil; beg = BEG(nth); len = END(nth) - beg; + /* Converting the backref may have modified the string. */ + if (beg > RSTRING_LEN(str)) return Qnil; + if (len > RSTRING_LEN(str) - beg) len = RSTRING_LEN(str) - beg; goto subseq; } else if (argc == 2) { @@ -5647,7 +5666,7 @@ beg = p - RSTRING_PTR(str); subseq: - result = rb_str_new(RSTRING_PTR(str)+beg, len); + result = rb_enc_str_new(RSTRING_PTR(str)+beg, len, STR_ENC_GET(str)); rb_enc_cr_str_copy_for_substr(result, str); squash: @@ -6166,20 +6185,20 @@ rb_str_setbyte(VALUE str, VALUE index, VALUE value) { long pos = NUM2LONG(index); - long len = RSTRING_LEN(str); char *ptr, *head, *left = 0; rb_encoding *enc; int cr = ENC_CODERANGE_UNKNOWN, width, nlen; + VALUE v = rb_to_int(value); + VALUE w = rb_int_and(v, INT2FIX(0xff)); + char byte = (char)(NUM2INT(w) & 0xFF); + + long len = RSTRING_LEN(str); if (pos < -len || len <= pos) rb_raise(rb_eIndexError, "index %ld out of string", pos); if (pos < 0) pos += len; - VALUE v = rb_to_int(value); - VALUE w = rb_int_and(v, INT2FIX(0xff)); - char byte = (char)(NUM2INT(w) & 0xFF); - if (!str_independent(str)) str_make_independent(str); enc = STR_ENC_GET(str); @@ -6461,7 +6480,7 @@ if (RSTRING_LEN(str) <= 1) return str_duplicate(rb_cString, str); enc = STR_ENC_GET(str); - rev = rb_str_new(0, RSTRING_LEN(str)); + rev = rb_enc_str_new(0, RSTRING_LEN(str), enc); s = RSTRING_PTR(str); e = RSTRING_END(str); p = RSTRING_END(rev); cr = ENC_CODERANGE(str); @@ -6495,7 +6514,6 @@ } } STR_SET_LEN(rev, RSTRING_LEN(str)); - str_enc_copy_direct(rev, str); ENC_CODERANGE_SET(rev, cr); return rev; @@ -7370,7 +7388,7 @@ while (current_buffer) { previous_buffer = current_buffer; current_buffer = current_buffer->next; - ruby_sized_xfree(previous_buffer, previous_buffer->capa); + ruby_sized_xfree(previous_buffer, offsetof(mapping_buffer, space) + previous_buffer->capa); } } @@ -7386,7 +7404,7 @@ VALUE target; const OnigUChar *source_current, *source_end; - int target_length = 0; + long target_length = 0; VALUE buffer_anchor; mapping_buffer *current_buffer = 0; mapping_buffer **pre_buffer; @@ -7394,6 +7412,8 @@ int buffer_length_or_invalid; if (RSTRING_LEN(source) == 0) return str_duplicate(rb_cString, source); + if (RSTRING_LEN(source) > INT_MAX - CASE_MAPPING_ADDITIONAL_LENGTH) + rb_raise(rb_eArgError, "string size too big"); source_current = (OnigUChar*)RSTRING_PTR(source); source_end = (OnigUChar*)RSTRING_END(source); @@ -7402,7 +7422,11 @@ pre_buffer = (mapping_buffer **)&DATA_PTR(buffer_anchor); while (source_current < source_end) { /* increase multiplier using buffer count to converge quickly */ - size_t capa = (size_t)(source_end-source_current)*++buffer_count + CASE_MAPPING_ADDITIONAL_LENGTH; + size_t capa = (size_t)(source_end-source_current); + if (capa > (INT_MAX - CASE_MAPPING_ADDITIONAL_LENGTH) / ++buffer_count) + capa = INT_MAX; + else + capa = capa * buffer_count + CASE_MAPPING_ADDITIONAL_LENGTH; if (CASEMAP_DEBUG) { fprintf(stderr, "Buffer allocation, capa is %"PRIuSIZE"\n", capa); /* for tuning */ } @@ -7416,11 +7440,13 @@ current_buffer->space, current_buffer->space+current_buffer->capa, enc); - if (buffer_length_or_invalid < 0) { + if (buffer_length_or_invalid < 0 || buffer_length_or_invalid > LONG_MAX - target_length) { current_buffer = DATA_PTR(buffer_anchor); DATA_PTR(buffer_anchor) = 0; mapping_buffer_free(current_buffer); - rb_raise(rb_eArgError, "input string invalid"); + if (buffer_length_or_invalid < 0) + rb_raise(rb_eArgError, "input string invalid"); + rb_raise(rb_eArgError, "string size too big"); } target_length += current_buffer->used = buffer_length_or_invalid; } @@ -7429,12 +7455,12 @@ } if (buffer_count==1) { - target = rb_str_new((const char*)current_buffer->space, target_length); + target = rb_enc_str_new((const char*)current_buffer->space, target_length, enc); } else { char *target_current; - target = rb_str_new(0, target_length); + target = rb_enc_str_new(0, target_length, enc); target_current = RSTRING_PTR(target); current_buffer = DATA_PTR(buffer_anchor); while (current_buffer) { @@ -7449,8 +7475,6 @@ RB_GC_GUARD(buffer_anchor); - /* TODO: check about string terminator character */ - str_enc_copy_direct(target, source); /*ENC_CODERANGE_SET(mapped, cr);*/ return target; @@ -7489,7 +7513,7 @@ "; old_length=%ld, new_length=%d\n", old_length, length_or_invalid); } - str_enc_copy(target, source); + rb_enc_associate_index(target, ENCODING_GET(source)); return target; } @@ -9147,11 +9171,12 @@ line = rb_str_subseq(str, subptr - ptr, subend - subptr); if (ENUM_ELEM(ary, line)) { str_mod_check(str, ptr, len); + str_mod_check(rs, rsptr, rslen); } subptr = hit; } - if (subptr != pend) { + if (subptr < pend) { if (chomp) { if (rsnewline) { pend = chomp_newline(subptr, pend, enc); @@ -9620,6 +9645,8 @@ { rb_encoding *enc = rb_enc_get(str); if (rb_enc_mbminlen(enc) > 1) { + /* a receiver shorter than one character has nothing to chomp */ + if (e - p < rb_enc_mbminlen(enc)) return e - p; const char *pp = rb_enc_left_char_head(p, e-rb_enc_mbminlen(enc), e, enc); if (rb_enc_is_newline(pp, e, enc)) { e = pp; @@ -9667,7 +9694,7 @@ RSTRING_GETMEM(rs, rsptr, rslen); if (rslen == 0) { if (rb_enc_mbminlen(enc) > 1) { - while (e > p) { + while (e - p >= rb_enc_mbminlen(enc)) { pp = rb_enc_left_char_head(p, e-rb_enc_mbminlen(enc), e, enc); if (!rb_enc_is_newline(pp, e, enc)) break; e = pp; @@ -10436,7 +10463,6 @@ rb_scan_args(argc, argv, "11", &w, &pad); enc = STR_ENC_GET(str); - termlen = rb_enc_mbminlen(enc); width = NUM2LONG(w); if (argc == 2) { StringValue(pad); @@ -10449,6 +10475,7 @@ rb_raise(rb_eArgError, "zero width padding"); } } + termlen = rb_enc_mbminlen(enc); len = str_strlen(str, enc); /* rb_enc_check */ if (width < 0 || len >= width) return str_duplicate(rb_cString, str); n = width - len; @@ -10590,10 +10617,12 @@ pos = rb_str_index(str, sep, 0); if (pos < 0) goto failed; } + + long rpos = pos + RSTRING_LEN(sep); + if (rpos > RSTRING_LEN(str)) goto failed; return rb_ary_new3(3, rb_str_subseq(str, 0, pos), sep, - rb_str_subseq(str, pos+RSTRING_LEN(sep), - RSTRING_LEN(str)-pos-RSTRING_LEN(sep))); + rb_str_subseq(str, rpos, RSTRING_LEN(str)-rpos)); failed: return rb_ary_new3(3, str_duplicate(rb_cString, str), str_new_empty_String(str), str_new_empty_String(str)); @@ -10610,10 +10639,11 @@ static VALUE rb_str_rpartition(VALUE str, VALUE sep) { - long pos = RSTRING_LEN(str); + long pos; sep = get_pat_quoted(sep, 0); if (RB_TYPE_P(sep, T_REGEXP)) { + pos = RSTRING_LEN(str); if (rb_reg_search(sep, str, pos, 1) < 0) { goto failed; } @@ -10624,17 +10654,19 @@ sep = rb_str_subseq(str, pos, END(0) - pos); } else { - pos = rb_str_sublen(str, pos); + /* str may have been modified by #to_str above */ + pos = rb_str_sublen(str, RSTRING_LEN(str)); pos = rb_str_rindex(str, sep, pos); if (pos < 0) { goto failed; } } + long rpos = pos + RSTRING_LEN(sep); + if (rpos > RSTRING_LEN(str)) goto failed; return rb_ary_new3(3, rb_str_subseq(str, 0, pos), sep, - rb_str_subseq(str, pos+RSTRING_LEN(sep), - RSTRING_LEN(str)-pos-RSTRING_LEN(sep))); + rb_str_subseq(str, rpos, RSTRING_LEN(str)-rpos)); failed: return rb_ary_new3(3, str_new_empty_String(str), str_new_empty_String(str), str_duplicate(rb_cString, str)); } @@ -11338,7 +11370,8 @@ } cr = ENC_CODERANGE_VALID; } - ENCODING_CODERANGE_SET(buf, rb_enc_to_index(enc), cr); + rb_enc_associate(buf, enc); + ENC_CODERANGE_SET(buf, cr); return buf; } diff -Nru ruby3.3-3.3.13/test/-ext-/string/test_cstr.rb ruby3.3-3.3.14/test/-ext-/string/test_cstr.rb --- ruby3.3-3.3.13/test/-ext-/string/test_cstr.rb 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/test/-ext-/string/test_cstr.rb 2026-11-18 21:52:31.000000000 +0000 @@ -81,6 +81,50 @@ end end + # [Bug #22517] + def test_wchar_casemap + [:upcase, :downcase, :swapcase, :capitalize].each do |m| + [[], [:ascii]].each do |opts| + assert_wchars_long_term {|s| s.__send__(m, *opts)} + end + end + end + + # [Bug #22517] + def test_wchar_interpolation + assert_wchars_long_term {|s| "#{s}#{s}"} + assert_wchars_long_term do |s| + a = s.b.force_encoding("US-ASCII") + b = s[0, 0] + eval(%{# coding: us-ascii\n"\#{a}\#{b}"}) + end + end + + # [Bug #22517] + def test_wchar_reverse + assert_wchars_long_term {|s| s.reverse} + end + + # [Bug #22517] + def test_wchar_succ + assert_wchars_long_term {|s| s.succ} + end + + # [Bug #22517] + def test_wchar_scrub + assert_wchars_long_term {|s| s.b.tr("\0", "\xDC".b).force_encoding(s.encoding).scrub} + end + + # [Bug #22517] + def test_wchar_fstring + assert_wchars_long_term {|s| -Ractor.make_shareable(Bug::String.new(s))} + end + + # [Bug #22517] + def test_wchar_slice! + assert_wchars_long_term {|s| s.slice!(0, 900)} + end + def test_wchar_lstrip! assert_wchars_term_char(" a") {|s| s.lstrip!} end @@ -155,6 +199,16 @@ assert_empty(result, gh821) end + def assert_wchars_long_term + result = {} + WCHARS.each do |enc| + s = yield(("a" * 1000).encode(enc)) + c = Bug::String.cstr_term(s) + result[enc] = c unless c == 0 + end + assert_empty(result) + end + def assert_wchars_term_char(str) result = {} WCHARS.map do |enc| diff -Nru ruby3.3-3.3.13/test/-ext-/string/test_modify_expand.rb ruby3.3-3.3.14/test/-ext-/string/test_modify_expand.rb --- ruby3.3-3.3.13/test/-ext-/string/test_modify_expand.rb 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/test/-ext-/string/test_modify_expand.rb 2026-11-18 21:52:31.000000000 +0000 @@ -22,5 +22,9 @@ assert_raise(ArgumentError, bug12390) { s.modify_expand!(RbConfig::LIMITS["LONG_MAX"]) } + s = Bug::String.new("\0\0\0\0".force_encoding(Encoding::UTF_32BE)) + assert_raise(ArgumentError) { + s.modify_expand!(2 ** (RbConfig::SIZEOF['long'] * 8 - 1) - 6) + } end end diff -Nru ruby3.3-3.3.13/test/resolv/test_dns.rb ruby3.3-3.3.14/test/resolv/test_dns.rb --- ruby3.3-3.3.13/test/resolv/test_dns.rb 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/test/resolv/test_dns.rb 2026-11-18 21:52:31.000000000 +0000 @@ -64,6 +64,46 @@ end end + def with_udp_and_tcp(host, port) + if port == 0 + # Automatic port; we might need to retry until we find a port which is free on both UDP _and_ TCP. + retries_remaining = 10 + ts = [] + us = [] + begin + begin + us << UDPSocket.new + us.last.bind(host, 0) + _, udp_port, _, _ = us.last.addr + ts << TCPServer.new(host, udp_port) + ts.last.listen(1) + rescue Errno::EADDRINUSE, Errno::EACCES + # ADDRINUSE is what should get thrown if we try and bind a port which is already bound on UNIXen, + # but windows can sometimes throw EACCESS. + # See: https://stackoverflow.com/questions/48478869/cannot-bind-to-some-ports-due-to-permission-denied + retries_remaining -= 1 + retry if retries_remaining > 0 + # Windows and MinGW CI can't bind to the same port with ten retries. + omit if /mswin|mingw/ =~ RUBY_PLATFORM + raise + end + + # If we get to this point, we have a valid t & u socket + yield us.last, ts.last + ensure + ts.each { _1.close } + us.each { _1.close } + end + else + # Explicitly specified port, don't retry the bind. + with_udp(host, port) do |u| + with_tcp(host, port) do |t| + yield u, t + end + end + end + end + # [ruby-core:65836] def test_resolve_with_2_ndots conf = Resolv::DNS::Config.new :nameserver => ['127.0.0.1'], :ndots => 2 @@ -176,156 +216,154 @@ num_records = 50 - with_udp('127.0.0.1', 0) {|u| + with_udp_and_tcp('127.0.0.1', 0) {|u, t| _, server_port, _, server_address = u.addr - with_tcp('127.0.0.1', server_port) {|t| - client_thread = Thread.new { - Resolv::DNS.open(:nameserver_port => [[server_address, server_port]]) {|dns| - dns.getresources("foo.example.org", Resolv::DNS::Resource::IN::A) - } - } - udp_server_thread = Thread.new { - msg, (_, client_port, _, client_address) = Timeout.timeout(5) {u.recvfrom(4096)} - id, word2, qdcount, ancount, nscount, arcount = msg.unpack("nnnnnn") - qr = (word2 & 0x8000) >> 15 - opcode = (word2 & 0x7800) >> 11 - aa = (word2 & 0x0400) >> 10 - tc = (word2 & 0x0200) >> 9 - rd = (word2 & 0x0100) >> 8 - ra = (word2 & 0x0080) >> 7 - z = (word2 & 0x0070) >> 4 - rcode = word2 & 0x000f - rest = msg[12..-1] - assert_equal(0, qr) # 0:query 1:response - assert_equal(0, opcode) # 0:QUERY 1:IQUERY 2:STATUS - assert_equal(0, aa) # Authoritative Answer - assert_equal(0, tc) # TrunCation - assert_equal(1, rd) # Recursion Desired - assert_equal(0, ra) # Recursion Available - assert_equal(0, z) # Reserved for future use - assert_equal(0, rcode) # 0:No-error 1:Format-error 2:Server-failure 3:Name-Error 4:Not-Implemented 5:Refused - assert_equal(1, qdcount) # number of entries in the question section. - assert_equal(0, ancount) # number of entries in the answer section. - assert_equal(0, nscount) # number of entries in the authority records section. - assert_equal(0, arcount) # number of entries in the additional records section. - name = [3, "foo", 7, "example", 3, "org", 0].pack("Ca*Ca*Ca*C") - assert_operator(rest, :start_with?, name) - rest = rest[name.length..-1] - assert_equal(4, rest.length) - qtype, _ = rest.unpack("nn") - assert_equal(1, qtype) # A - assert_equal(1, qtype) # IN - id = id - qr = 1 - opcode = opcode - aa = 0 - tc = 1 - rd = rd - ra = 1 - z = 0 - rcode = 0 - qdcount = 0 - ancount = num_records - nscount = 0 - arcount = 0 - word2 = (qr << 15) | - (opcode << 11) | - (aa << 10) | - (tc << 9) | - (rd << 8) | - (ra << 7) | - (z << 4) | - rcode - msg = [id, word2, qdcount, ancount, nscount, arcount].pack("nnnnnn") - type = 1 - klass = 1 - ttl = 3600 - rdlength = 4 - num_records.times do |i| - rdata = [192,0,2,i].pack("CCCC") # 192.0.2.x (TEST-NET address) RFC 3330 - rr = [name, type, klass, ttl, rdlength, rdata].pack("a*nnNna*") - msg << rr - end - u.send(msg[0...512], 0, client_address, client_port) - } - tcp_server_thread = Thread.new { - ct = t.accept - msg = ct.recv(512) - msg.slice!(0..1) # Size (only for TCP) - id, word2, qdcount, ancount, nscount, arcount = msg.unpack("nnnnnn") - qr = (word2 & 0x8000) >> 15 - opcode = (word2 & 0x7800) >> 11 - aa = (word2 & 0x0400) >> 10 - tc = (word2 & 0x0200) >> 9 - rd = (word2 & 0x0100) >> 8 - ra = (word2 & 0x0080) >> 7 - z = (word2 & 0x0070) >> 4 - rcode = word2 & 0x000f - rest = msg[12..-1] - assert_equal(0, qr) # 0:query 1:response - assert_equal(0, opcode) # 0:QUERY 1:IQUERY 2:STATUS - assert_equal(0, aa) # Authoritative Answer - assert_equal(0, tc) # TrunCation - assert_equal(1, rd) # Recursion Desired - assert_equal(0, ra) # Recursion Available - assert_equal(0, z) # Reserved for future use - assert_equal(0, rcode) # 0:No-error 1:Format-error 2:Server-failure 3:Name-Error 4:Not-Implemented 5:Refused - assert_equal(1, qdcount) # number of entries in the question section. - assert_equal(0, ancount) # number of entries in the answer section. - assert_equal(0, nscount) # number of entries in the authority records section. - assert_equal(0, arcount) # number of entries in the additional records section. - name = [3, "foo", 7, "example", 3, "org", 0].pack("Ca*Ca*Ca*C") - assert_operator(rest, :start_with?, name) - rest = rest[name.length..-1] - assert_equal(4, rest.length) - qtype, _ = rest.unpack("nn") - assert_equal(1, qtype) # A - assert_equal(1, qtype) # IN - id = id - qr = 1 - opcode = opcode - aa = 0 - tc = 0 - rd = rd - ra = 1 - z = 0 - rcode = 0 - qdcount = 0 - ancount = num_records - nscount = 0 - arcount = 0 - word2 = (qr << 15) | - (opcode << 11) | - (aa << 10) | - (tc << 9) | - (rd << 8) | - (ra << 7) | - (z << 4) | - rcode - msg = [id, word2, qdcount, ancount, nscount, arcount].pack("nnnnnn") - type = 1 - klass = 1 - ttl = 3600 - rdlength = 4 - num_records.times do |i| - rdata = [192,0,2,i].pack("CCCC") # 192.0.2.x (TEST-NET address) RFC 3330 - rr = [name, type, klass, ttl, rdlength, rdata].pack("a*nnNna*") - msg << rr - end - msg = "#{[msg.bytesize].pack("n")}#{msg}" # Prefix with size - ct.send(msg, 0) - ct.close + client_thread = Thread.new { + Resolv::DNS.open(:nameserver_port => [[server_address, server_port]]) {|dns| + dns.getresources("foo.example.org", Resolv::DNS::Resource::IN::A) } - result, _ = assert_join_threads([client_thread, udp_server_thread, tcp_server_thread]) - assert_instance_of(Array, result) - assert_equal(50, result.length) - result.each_with_index do |rr, i| - assert_instance_of(Resolv::DNS::Resource::IN::A, rr) - assert_instance_of(Resolv::IPv4, rr.address) - assert_equal("192.0.2.#{i}", rr.address.to_s) - assert_equal(3600, rr.ttl) + } + udp_server_thread = Thread.new { + msg, (_, client_port, _, client_address) = Timeout.timeout(5) {u.recvfrom(4096)} + id, word2, qdcount, ancount, nscount, arcount = msg.unpack("nnnnnn") + qr = (word2 & 0x8000) >> 15 + opcode = (word2 & 0x7800) >> 11 + aa = (word2 & 0x0400) >> 10 + tc = (word2 & 0x0200) >> 9 + rd = (word2 & 0x0100) >> 8 + ra = (word2 & 0x0080) >> 7 + z = (word2 & 0x0070) >> 4 + rcode = word2 & 0x000f + rest = msg[12..-1] + assert_equal(0, qr) # 0:query 1:response + assert_equal(0, opcode) # 0:QUERY 1:IQUERY 2:STATUS + assert_equal(0, aa) # Authoritative Answer + assert_equal(0, tc) # TrunCation + assert_equal(1, rd) # Recursion Desired + assert_equal(0, ra) # Recursion Available + assert_equal(0, z) # Reserved for future use + assert_equal(0, rcode) # 0:No-error 1:Format-error 2:Server-failure 3:Name-Error 4:Not-Implemented 5:Refused + assert_equal(1, qdcount) # number of entries in the question section. + assert_equal(0, ancount) # number of entries in the answer section. + assert_equal(0, nscount) # number of entries in the authority records section. + assert_equal(0, arcount) # number of entries in the additional records section. + name = [3, "foo", 7, "example", 3, "org", 0].pack("Ca*Ca*Ca*C") + assert_operator(rest, :start_with?, name) + rest = rest[name.length..-1] + assert_equal(4, rest.length) + qtype, _ = rest.unpack("nn") + assert_equal(1, qtype) # A + assert_equal(1, qtype) # IN + id = id + qr = 1 + opcode = opcode + aa = 0 + tc = 1 + rd = rd + ra = 1 + z = 0 + rcode = 0 + qdcount = 0 + ancount = num_records + nscount = 0 + arcount = 0 + word2 = (qr << 15) | + (opcode << 11) | + (aa << 10) | + (tc << 9) | + (rd << 8) | + (ra << 7) | + (z << 4) | + rcode + msg = [id, word2, qdcount, ancount, nscount, arcount].pack("nnnnnn") + type = 1 + klass = 1 + ttl = 3600 + rdlength = 4 + num_records.times do |i| + rdata = [192,0,2,i].pack("CCCC") # 192.0.2.x (TEST-NET address) RFC 3330 + rr = [name, type, klass, ttl, rdlength, rdata].pack("a*nnNna*") + msg << rr end + u.send(msg[0...512], 0, client_address, client_port) } + tcp_server_thread = Thread.new { + ct = t.accept + msg = ct.recv(512) + msg.slice!(0..1) # Size (only for TCP) + id, word2, qdcount, ancount, nscount, arcount = msg.unpack("nnnnnn") + qr = (word2 & 0x8000) >> 15 + opcode = (word2 & 0x7800) >> 11 + aa = (word2 & 0x0400) >> 10 + tc = (word2 & 0x0200) >> 9 + rd = (word2 & 0x0100) >> 8 + ra = (word2 & 0x0080) >> 7 + z = (word2 & 0x0070) >> 4 + rcode = word2 & 0x000f + rest = msg[12..-1] + assert_equal(0, qr) # 0:query 1:response + assert_equal(0, opcode) # 0:QUERY 1:IQUERY 2:STATUS + assert_equal(0, aa) # Authoritative Answer + assert_equal(0, tc) # TrunCation + assert_equal(1, rd) # Recursion Desired + assert_equal(0, ra) # Recursion Available + assert_equal(0, z) # Reserved for future use + assert_equal(0, rcode) # 0:No-error 1:Format-error 2:Server-failure 3:Name-Error 4:Not-Implemented 5:Refused + assert_equal(1, qdcount) # number of entries in the question section. + assert_equal(0, ancount) # number of entries in the answer section. + assert_equal(0, nscount) # number of entries in the authority records section. + assert_equal(0, arcount) # number of entries in the additional records section. + name = [3, "foo", 7, "example", 3, "org", 0].pack("Ca*Ca*Ca*C") + assert_operator(rest, :start_with?, name) + rest = rest[name.length..-1] + assert_equal(4, rest.length) + qtype, _ = rest.unpack("nn") + assert_equal(1, qtype) # A + assert_equal(1, qtype) # IN + id = id + qr = 1 + opcode = opcode + aa = 0 + tc = 0 + rd = rd + ra = 1 + z = 0 + rcode = 0 + qdcount = 0 + ancount = num_records + nscount = 0 + arcount = 0 + word2 = (qr << 15) | + (opcode << 11) | + (aa << 10) | + (tc << 9) | + (rd << 8) | + (ra << 7) | + (z << 4) | + rcode + msg = [id, word2, qdcount, ancount, nscount, arcount].pack("nnnnnn") + type = 1 + klass = 1 + ttl = 3600 + rdlength = 4 + num_records.times do |i| + rdata = [192,0,2,i].pack("CCCC") # 192.0.2.x (TEST-NET address) RFC 3330 + rr = [name, type, klass, ttl, rdlength, rdata].pack("a*nnNna*") + msg << rr + end + msg = "#{[msg.bytesize].pack("n")}#{msg}" # Prefix with size + ct.send(msg, 0) + ct.close + } + result, _ = assert_join_threads([client_thread, udp_server_thread, tcp_server_thread]) + assert_instance_of(Array, result) + assert_equal(50, result.length) + result.each_with_index do |rr, i| + assert_instance_of(Resolv::DNS::Resource::IN::A, rr) + assert_instance_of(Resolv::IPv4, rr.address) + assert_equal("192.0.2.#{i}", rr.address.to_s) + assert_equal(3600, rr.ttl) + end } end diff -Nru ruby3.3-3.3.13/test/ruby/enc/test_case_mapping.rb ruby3.3-3.3.14/test/ruby/enc/test_case_mapping.rb --- ruby3.3-3.3.13/test/ruby/enc/test_case_mapping.rb 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/test/ruby/enc/test_case_mapping.rb 2026-11-18 21:52:31.000000000 +0000 @@ -215,6 +215,27 @@ assert_equal s, s.downcase(:ascii) end + SHARP_S_SINGLE_BYTE_ENCODINGS = %w[ + ISO-8859-1 ISO-8859-2 ISO-8859-3 ISO-8859-4 ISO-8859-9 ISO-8859-10 + ISO-8859-13 ISO-8859-14 ISO-8859-15 ISO-8859-16 + Windows-1250 Windows-1252 Windows-1254 Windows-1257 + ] + + def test_single_byte_sharp_s_expansion + SHARP_S_SINGLE_BYTE_ENCODINGS.each do |name| + enc = Encoding.find(name) + (1..64).each do |n| + s = ("\xDF".b * n).force_encoding(enc) + assert_equal "SS" * n, s.upcase, "#{name} upcase #{n}" + assert_equal "ss" * n, s.downcase(:fold), "#{name} fold #{n}" + assert_equal "SS" * n, s.swapcase, "#{name} swapcase #{n}" + assert_equal ("Ss" + "\xDF".b * (n - 1)).force_encoding(enc), s.capitalize, "#{name} capitalize #{n}" + assert_equal "SS" * n, ("a".b + "\xDF".b * n).force_encoding(enc).upcase[1..], "#{name} upcase a+#{n}" + assert_equal true, s.casecmp?(("ss" * n).force_encoding(enc)), "#{name} casecmp? #{n}" + end + end + end + def test_shift_jis_upcase_ascii s = ("a".."z").map {|c| "\x89#{c}"}.join("").force_encoding("Shift_JIS") assert_equal s, s.upcase(:ascii) diff -Nru ruby3.3-3.3.13/test/ruby/test_array.rb ruby3.3-3.3.14/test/ruby/test_array.rb --- ruby3.3-3.3.13/test/ruby/test_array.rb 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/test/ruby/test_array.rb 2026-11-18 21:52:31.000000000 +0000 @@ -1315,6 +1315,20 @@ assert_equal(@cls[], a) end + def test_pop_frozen_in_to_int + a = @cls[1, 2, 3, 4, 5] + n = Object.new + n.define_singleton_method(:to_int) { a.freeze; 2 } + assert_raise(FrozenError) { a.pop(n) } + assert_equal(@cls[1, 2, 3, 4, 5], a) + + a = @cls[1, 2, 3, 4, 5] + n = Object.new + n.define_singleton_method(:to_int) { a.freeze; 2 } + assert_raise(FrozenError) { a.shift(n) } + assert_equal(@cls[1, 2, 3, 4, 5], a) + end + def test_prepend a = @cls[] assert_equal(@cls['cat'], a.prepend('cat')) @@ -1702,6 +1716,33 @@ assert_equal([100], a.slice(-1, 1_000_000_000)) end + def test_range_with_len_max_end + max = 2 ** (RbConfig::SIZEOF['long'] * 8 - 1) - 1 + + a = @cls[1, 2] + assert_equal(@cls[1, 2], a[0..max]) + assert_equal(@cls[2], a[1..max]) + assert_equal(@cls[2], a[-1..max]) + assert_equal(@cls[1, 2], a[(0..max) % 1]) + assert_raise(RangeError) { a[(0..max) % 2] } + + a = @cls[1, 2] + assert_equal(@cls[1, 2], a.slice!(0..max)) + assert_equal(@cls[], a) + + a = @cls[1, 2] + assert_equal(@cls[2], a.slice!(1..max)) + assert_equal(@cls[1], a) + + a = @cls[1, 2] + a[0..max] = 9 + assert_equal(@cls[9], a) + + # Same as with 0...max + assert_raise(ArgumentError) { @cls[1, 2].fill(0, 0..max) } + assert_raise(IndexError) { @cls[1, 2].values_at(0..max) } + end + def test_slice_gc_compact_stress omit "compaction doesn't work well on s390x" if RUBY_PLATFORM =~ /s390x/ # https://github.com/ruby/ruby/pull/5077 EnvUtil.under_gc_compact_stress { assert_equal([1, 2, 3, 4, 5], (0..10).to_a[1, 5]) } @@ -2472,6 +2513,17 @@ assert_equal(b, @cls[0, 1, 2, 3, 4][1, 4].permutation.to_a, bug3708) end + def test_permutation_array_modified + ary = @cls[*(1..1000)] + cls = @cls + obj = Object.new + obj.define_singleton_method(:to_int) do + ary.replace(cls[1, 2]) + 2 + end + assert_equal(@cls[[1, 2], [2, 1]], ary.permutation(obj).to_a) + end + def test_permutation_stack_error bug9932 = '[ruby-core:63103] [Bug #9932]' assert_separately([], "#{<<~"begin;"}\n#{<<~'end;'}", timeout: 30) @@ -2515,6 +2567,17 @@ assert_empty(a.reject {|x| !x.include?(0)}) end + def test_repeated_permutation_array_modified + ary = @cls[*(1..1000)] + cls = @cls + obj = Object.new + obj.define_singleton_method(:to_int) do + ary.replace(cls[1, 2]) + 2 + end + assert_equal(@cls[[1, 1], [1, 2], [2, 1], [2, 2]], ary.repeated_permutation(obj).to_a) + end + def test_repeated_permutation_stack_error assert_separately([], "#{<<-"begin;"}\n#{<<~'end;'}", timeout: 30) begin; @@ -2619,6 +2682,7 @@ assert_equal([1, 1, 1], Array.new(3, 1)) assert_equal([1, 1, 1], Array.new(3) { 1 }) assert_equal([1, 1, 1], assert_warning(/block supersedes default value argument/) {Array.new(3, 1) { 1 }}) + assert_equal([], [1].instance_eval { initialize(0) }) end def test_aset_error diff -Nru ruby3.3-3.3.13/test/ruby/test_econv.rb ruby3.3-3.3.14/test/ruby/test_econv.rb --- ruby3.3-3.3.13/test/ruby/test_econv.rb 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/test/ruby/test_econv.rb 2026-11-18 21:52:31.000000000 +0000 @@ -940,4 +940,21 @@ EOS end end + + def test_primitive_convert_same_buffer + ec = Encoding::Converter.new("UTF-8", "ISO-8859-1") + s = +"abc" + assert_raise(ArgumentError) { ec.primitive_convert(s, s) } + assert_raise(ArgumentError) { ec.primitive_convert(s, s, 0, 64) } + + obj = Object.new + obj.define_singleton_method(:to_str) { s } + assert_raise(ArgumentError) { ec.primitive_convert(obj, s) } + + src = +"abc" * 50 + dst = src.dup + assert_equal(:finished, ec.primitive_convert(src, dst)) + assert_equal("", src) + assert_equal("abc" * 100, dst) + end end diff -Nru ruby3.3-3.3.13/test/ruby/test_enum.rb ruby3.3-3.3.14/test/ruby/test_enum.rb --- ruby3.3-3.3.13/test/ruby/test_enum.rb 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/test/ruby/test_enum.rb 2026-11-18 21:52:31.000000000 +0000 @@ -890,6 +890,19 @@ assert_operator(i, :<=, 5, "infinite loop") c.call end + + assert_raise_with_message(RuntimeError, /reentered/) do + c = nil + cmp = Object.new + cmp.define_singleton_method(:>) do |other| + callcc {|c2| c ||= c2} + true + end + o = Object.new + o.define_singleton_method(:<=>) {|x| cmp} + [o, o].min(1) + c.call + end end def test_reverse_each diff -Nru ruby3.3-3.3.13/test/ruby/test_exception.rb ruby3.3-3.3.14/test/ruby/test_exception.rb --- ruby3.3-3.3.13/test/ruby/test_exception.rb 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/test/ruby/test_exception.rb 2026-11-18 21:52:31.000000000 +0000 @@ -683,6 +683,18 @@ assert_equal(level, e.backtrace.size, feature6216) end + def test_stackoverflow_during_optional_arg_setup + # Filling in missing optional arguments of a block call must not + # clobber the caller's control frame when the VM stack is exhausted. + assert_separately([], "#{<<~"begin;"}\n#{<<~'end;'}", timeout: 60) + begin; + pr = proc {|a=1,b=1,c=1,d=1,e=1,f=1,g=1,h=1,i=1,j=1| pr.call } + 40.times do |k| + eval((0...k).map { "v#{_1}=0;" }.join + "begin; pr.call; rescue SystemStackError => e; e.backtrace; end") + end + end; + end + def test_machine_stackoverflow bug9109 = '[ruby-dev:47804] [Bug #9109]' assert_separately([], <<-SRC) diff -Nru ruby3.3-3.3.13/test/ruby/test_io.rb ruby3.3-3.3.14/test/ruby/test_io.rb --- ruby3.3-3.3.13/test/ruby/test_io.rb 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/test/ruby/test_io.rb 2026-11-18 21:52:31.000000000 +0000 @@ -10,6 +10,7 @@ require 'timeout' require 'tempfile' require 'weakref' +require "rbconfig/sizeof" class TestIO < Test::Unit::TestCase module Feature @@ -340,6 +341,27 @@ end) end + def test_gets_ff + pipe(proc do |w| + w.print "ab""\xff""cd".b + w.close + end, proc do |r| + assert_equal "ab\xFFcd", r.gets(nil, 100).b + assert_nil r.gets + r.close + end) + + pipe(proc do |w| + w.print "ab\u{1f41e}cd".b + w.close + end, proc do |r| + r.set_encoding(Encoding::UTF_8) + assert_equal "ab\u{1f41e}", r.gets(nil, 3) + assert_equal "cd", r.gets + r.close + end) + end + # This test cause SEGV. def test_ungetc pipe(proc do |w| @@ -1144,6 +1166,32 @@ end end + def test_copy_stream_write_tries_to_modify_buffer + IO.pipe do |r, w| + buffers = Thread::Queue.new + chunks = [] + dst = Object.new + dst.define_singleton_method(:write) do |data| + chunks << data.dup + buffers << data + data.bytesize + end + th = Thread.new { IO.copy_stream(r, dst) } + w.write("a" * 6) + buf = buffers.pop + Thread.pass until th.stop? + begin + buf.replace("c" * 100_000) + rescue RuntimeError + # buf may be STR_TMPLOCK + end + w.write("b" * 6) + w.close + assert_equal(12, th.value) + assert_equal("a" * 6, chunks[0]) + end + end + def test_copy_stream_write_in_binmode bug8767 = '[ruby-core:56518] [Bug #8767]' mkcdtmpdir { @@ -1555,6 +1603,17 @@ end end + def test_read_with_too_big_length + pipe(proc do |w| + w.write "foo\n" + "bar" * 100 + w.close + end, proc do |r| + r.gets + max = 2 ** (RbConfig::SIZEOF['long'] * 8 - 1) - 1 + assert_raise(ArgumentError) {r.read(max - 1, String.new(encoding: Encoding::UTF_16LE))} + end) + end + def test_readpartial_buffer_error with_pipe do |r, w| s = "" @@ -1566,6 +1625,16 @@ end end if /cygwin/ !~ RUBY_PLATFORM + def test_read_interrupted_by_wakeup + with_pipe do |r, w| + t = Thread.new { r.read } + Thread.pass until t.stop? + 100_000.times { t.wakeup; w.write("x") } + w.close + assert_equal(100_000, t.value.size) + end + end + def test_read pipe(proc do |w| w.write "foobarbaz" @@ -2435,6 +2504,11 @@ make_tempfile {|t| open(t.path) do |f| assert_raise(ArgumentError) { f.sysread(-1) } + assert_raise(ArgumentError) { f.sysread(-1, String.new) } + buf = +"abc" + assert_raise(ArgumentError) { f.pread(-1, 0) } + assert_raise(ArgumentError) { f.pread(-1, 0, buf) } + assert_equal("abc", buf) end } end @@ -3055,6 +3129,8 @@ def test_uninitialized assert_raise(IOError) { IO.allocate.print "" } + assert_raise(IOError) { IO.allocate.external_encoding } + assert_raise(IOError) { IO.allocate.internal_encoding } end def test_nofollow diff -Nru ruby3.3-3.3.13/test/ruby/test_io_m17n.rb ruby3.3-3.3.14/test/ruby/test_io_m17n.rb --- ruby3.3-3.3.13/test/ruby/test_io_m17n.rb 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/test/ruby/test_io_m17n.rb 2026-11-18 21:52:31.000000000 +0000 @@ -2311,6 +2311,28 @@ } end + def test_read_utf16le_invalid_surrogate_split_across_reads + # The converter may hold readagain bytes from the previous fill; + # fill_cbuf must not put those back into rbuf. + with_pipe("UTF-16LE:UTF-8") {|r, w| + w.write("\x00\xD8\x41".b) + t = Thread.new { + sleep 0.1 + w.write("\x00\x42\x00\x0a\x00".b) + w.close + } + begin + e = assert_raise(Encoding::InvalidByteSequenceError) { r.gets } + assert_equal("\x00\xD8".b, e.error_bytes) + assert_equal("\x41\x00".b, e.readagain_bytes) + assert_equal("AB\n", r.gets) + assert_nil(r.gets) + ensure + t.join + end + } + end + def test_cbuf with_tmpdir { fn = "tst" diff -Nru ruby3.3-3.3.13/test/ruby/test_marshal.rb ruby3.3-3.3.14/test/ruby/test_marshal.rb --- ruby3.3-3.3.13/test/ruby/test_marshal.rb 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/test/ruby/test_marshal.rb 2026-11-18 21:52:31.000000000 +0000 @@ -186,6 +186,24 @@ assert_raise(RuntimeError) { Marshal.dump(a) } end + def test_modify_string_during_dump + str = "a" * 100 + writer = Object.new + writer.define_singleton_method(:write) do |s| + str.replace("") + s.bytesize + end + # The padding tunes the dump buffer level so that the flush (which calls + # the write method above) happens while the length of str is being + # written, right before its payload is copied from its buffer. + assert_raise(RuntimeError) do + (0..10_000).each do |i| + str.replace("a" * 100) + Marshal.dump(["x" * i, str], writer) + end + end + end + def test_change_class_name self.class.__send__(:remove_const, :C3) if self.class.const_defined?(:C3) eval("class C3; def _dump(s); 'foo'; end; end") @@ -212,6 +230,19 @@ self.class.__send__(:remove_const, :C3) if self.class.const_defined?(:C3) end + UserClassWideStruct = Struct.new(:a, :b, :c, :d, :e) + UserClassNarrowStruct = Struct.new(:a) + + def test_user_class_struct_size + wide = Marshal.dump(UserClassWideStruct.new(1, 2, 3, 4, 5)).byteslice(2..) + narrow = Marshal.dump(UserClassNarrowStruct.new(6)).byteslice(2..) + # An array of both structs, then a user class marker relabelling the + # narrow struct (object link "@\a") as the wide class (symbol link ";\0"). + data = "\x04\b[\b".b + wide + narrow + "C;\0@\a".b + message = /\Astruct #{UserClassWideStruct.name} not compatible \(struct size differs\)/ + assert_raise_with_message(TypeError, message) {Marshal.load(data)} + end + class C4 def initialize(gc) @gc = gc @@ -904,6 +935,57 @@ end end + def test_load_overread + input = Struct.new(:bytes, :used) do + def initialize + super("\x04\x08[\x07".bytes, false) + end + + def getbyte + bytes.shift + end + + def read(_len, _outbuf = nil) + return nil if used + self.used = true + "0" * (1024 * 128) + end + end.new + + assert_equal([nil, nil], Marshal.load(input)) + end + + def test_load_overread_string_body + input = Struct.new(:bytes, :count) do + def initialize + super("\x04\x08[\x07".bytes, 0) + end + + def getbyte + bytes.shift + end + + def read(_len, _outbuf = nil) + self.count += 1 + case count + when 1 then "\"\x06" # TYPE_STRING, length 1 + when 2 then "a" + "0" * (1024 * 128) + end + end + end.new + + assert_equal(["a", nil], Marshal.load(input)) + end + + def test_bignum_len_overflow + assert_raise(ArgumentError) do + Marshal.load("\x04\x08l+\x04\x00\x00\x00\x40") + end + assert_raise(ArgumentError) do + Marshal.load("\x04\x08l+\xfc\x00\x00\x00\x80") + end + end + class TestMarshalFreezeProc < Test::Unit::TestCase include MarshalTestLib diff -Nru ruby3.3-3.3.13/test/ruby/test_memory_view.rb ruby3.3-3.3.14/test/ruby/test_memory_view.rb --- ruby3.3-3.3.13/test/ruby/test_memory_view.rb 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/test/ruby/test_memory_view.rb 2026-11-18 21:52:31.000000000 +0000 @@ -85,6 +85,30 @@ members) end + def test_rb_memory_view_parse_item_format_with_spaces + # Spaces between components are ignored, as in item_size_from_format. A + # repeat count still binds to the type char immediately preceding it, so the + # spaces only separate whole "cNN" tokens. The member list must be identical + # to the same format without spaces; a space must not produce an extra + # member. (Formerly the fill pass did not skip spaces, so each space wrote + # one rb_memory_view_item_component_t past the allocation.) + spaced, spaced_members, spaced_err = MemoryViewTestUtils.parse_item_format("c c2 f3 x2 d") + plain, plain_members, plain_err = MemoryViewTestUtils.parse_item_format("cc2f3x2d") + + assert_nil(spaced_err) + assert_nil(plain_err) + assert_equal(plain, spaced) + assert_equal(plain_members, spaced_members) + + # A lone trailing space must not add a member either. + total_size, members, err = MemoryViewTestUtils.parse_item_format("c ") + assert_nil(err) + assert_equal(1, total_size) + assert_equal( + [{format: 'c', native_size_p: false, endianness: NATIVE_ENDIAN, offset: 0, size: 1, repeat: 1}], + members) + end + def test_rb_memory_view_parse_item_format_with_alignment_signle [ ["c", false, NATIVE_ENDIAN, 1, 1, 1], diff -Nru ruby3.3-3.3.13/test/ruby/test_pack.rb ruby3.3-3.3.14/test/ruby/test_pack.rb --- ruby3.3-3.3.13/test/ruby/test_pack.rb 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/test/ruby/test_pack.rb 2026-11-18 21:52:31.000000000 +0000 @@ -853,6 +853,19 @@ assert_equal "\xDE\xAD\xBE\xEF\xBA\xBE\xF0\x0D\0\0\xBA\xAD\xFA\xCE", buf assert_equal addr, [buf].pack('p') + + assert_packing_buffer_fail("b*") + assert_packing_buffer_fail("B*") + assert_packing_buffer_fail("h*") + assert_packing_buffer_fail("H*") + assert_packing_buffer_fail("u", 16384) + assert_packing_buffer_fail("m", 16384) + assert_packing_buffer_fail("M", 16384) + end + + def assert_packing_buffer_fail(fmt, size = 8192) + s = "\x01".b * size + assert_raise(ArgumentError) {[s].pack(fmt, buffer: s)} end def test_unpack_with_block diff -Nru ruby3.3-3.3.13/test/ruby/test_parse.rb ruby3.3-3.3.14/test/ruby/test_parse.rb --- ruby3.3-3.3.13/test/ruby/test_parse.rb 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/test/ruby/test_parse.rb 2026-11-18 21:52:31.000000000 +0000 @@ -1291,6 +1291,10 @@ assert_syntax_error('1e', /expecting end-of-input/) end + def test_broken_numeric + assert_syntax_error('undef.0when', /0when/) + end + def test_truncated_source_line e = assert_syntax_error("'0123456789012345678901234567890123456789' abcdefghijklmnopqrstuvwxyz0123456789 0123456789012345678901234567890123456789", /unexpected local variable or method/) diff -Nru ruby3.3-3.3.13/test/ruby/test_proc.rb ruby3.3-3.3.14/test/ruby/test_proc.rb --- ruby3.3-3.3.13/test/ruby/test_proc.rb 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/test/ruby/test_proc.rb 2026-11-18 21:52:31.000000000 +0000 @@ -157,6 +157,9 @@ assert_not_equal(a, b, "[ruby-dev:22601]") assert_equal(*m_nest{}, "[ruby-core:84583] Feature #14627") + + c = proc { |a, b| }.curry + assert_equal(c, c) end def test_hash diff -Nru ruby3.3-3.3.13/test/ruby/test_regexp.rb ruby3.3-3.3.14/test/ruby/test_regexp.rb --- ruby3.3-3.3.13/test/ruby/test_regexp.rb 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/test/ruby/test_regexp.rb 2026-11-18 21:52:31.000000000 +0000 @@ -72,6 +72,11 @@ end end + def test_to_s_comment_in_char_class + re = EnvUtil.suppress_warning { Regexp.new('(?:[](?#\x{7FFFFFFF})])') } + assert_equal('(?-mix:[](?#\x{7FFFFFFF})])', EnvUtil.suppress_warning { re.to_s }) + end + def test_to_s_under_gc_compact_stress omit "compaction doesn't work well on s390x" if RUBY_PLATFORM =~ /s390x/ # https://github.com/ruby/ruby/pull/5077 EnvUtil.under_gc_compact_stress do @@ -615,6 +620,10 @@ assert_raise(IndexError) { m[:foo] } assert_raise(TypeError) { m[nil] } assert_equal(["baz", nil], m[-2, 3]) + + require "rbconfig/sizeof" + max = 2 ** (RbConfig::SIZEOF['long'] * 8 - 1) - 1 + assert_equal(["foo", "bar", "baz", nil], m[1..max]) end def test_match_values_at @@ -1237,6 +1246,72 @@ failcheck('(?#') end + def test_invalid_raw_byte_escape_in_utf16 + {"UTF-16LE" => ['\x00\xD8', '\x00\xD8\x00\xDC'], + "UTF-16BE" => ['\xD8\x00', '\xD8\x00\xDC\x00']}.each do |enc, (lone, pair)| + assert_raise(RegexpError) { Regexp.new(lone.encode(enc)) } + assert_raise(RegexpError) { Regexp.new("(?i)#{lone}".encode(enc)) } + assert_raise(RegexpError) { Regexp.new("[#{lone}]".encode(enc)) } + assert_raise(RegexpError) { Regexp.new("[#{lone}a]".encode(enc)) } + s = "\u{10000}".encode(enc) + assert_match(Regexp.new(pair.encode(enc)), s) + assert_match(Regexp.new("[#{pair}]".encode(enc)), s) + end + end + + def test_comment_separates_tokens + assert_raise(RegexpError) { Regexp.new('\3(?#)43') } + assert_raise(RegexpError) { Regexp.new("\\3#c\n43", Regexp::EXTENDED) } + assert_raise(RegexpError) { Regexp.new("(?x:\\3#c\n43)") } + re = Regexp.new('(a)(b)(c)\3(?#)43') + assert_match(re, "abcc43") + assert_not_match(re, "abc\u00e3") + re = Regexp.new("(a)(b)(c)\\3#c\n43", Regexp::EXTENDED) + assert_match(re, "abcc43") + assert_not_match(re, "abc\u00e3") + assert_match(/a(?#x)+b/, "aaab") + assert_match(/a #x + +b/x, "aaab") + + assert_separately([], "#{<<~"begin;"}\n#{<<~'end;'}") + begin; + assert_raise(RegexpError) { + Regexp.new('(?~.*\3(?#)43.|(?i:\u{3380}))').match?("a\u3042") + } + assert_raise(RegexpError) { + Regexp.new("(?~.*(?x:\\3#c\n43).|(?i:\\u{3380}))").match?("a\u3042") + } + end; + end + + def test_emacs_mule_case_fold_at_mid_character + assert_separately([], "#{<<~"begin;"}\n#{<<~'end;'}") + begin; + %w[Emacs-Mule stateless-ISO-2022-JP stateless-ISO-2022-JP-KDDI].each do |name| + enc = Encoding.find(name) + re = Regexp.new("(?i)(?!x)\x81\xa1{2}".b.force_encoding(enc)) + assert_nil(re.match("\x81\xa1\x9c\xf0\xa1\xa1".b.force_encoding(enc))) + assert_equal(0, re =~ "\x81\xa1\x81\xa1".b.force_encoding(enc)) + assert_equal(1, re =~ "\x81\xa2\x81\xa1\x81\xa1".b.force_encoding(enc)) + re = Regexp.new("(?i)\x81\xa1".b.force_encoding(enc)) + assert_equal(1, re =~ "\x9c\xf0\xa1\xa1\x81\xa1".b.force_encoding(enc)) + end + end; + end + + def test_invalid_code_point_escape_in_utf16 + %w[UTF-16LE UTF-16BE UTF-32LE UTF-32BE].each do |enc| + assert_raise(RegexpError) { Regexp.new("\\x{D801}".encode(enc)) } + assert_raise(RegexpError) { Regexp.new("a\\x{D801}".encode(enc)) } + assert_raise(RegexpError) { Regexp.new("a\\x{110000}".encode(enc)) } + assert_raise(RegexpError) { Regexp.new("[\\x{D801}]".encode(enc)) } + assert_raise(RegexpError) { Regexp.new("\\x{110000}".encode(enc)) } + s = "\u{1F600}".encode(enc) + assert_match(Regexp.new("\\x{1F600}".encode(enc)), s) + assert_match(Regexp.new("[\\x{1F600}]".encode(enc)), s) + end + end + def test_char_type check(/\u3042\d/, ["\u30421", "\u30422"]) @@ -1305,6 +1380,27 @@ assert_no_match(/[[:ascii:]]/, "\x80\xFF") end + def test_too_many_multibyte_ranges_in_intersection + chars = (0...9999).map {|i| (0x4e00 + 2 * i).chr("UTF-8") }.join + cc = "[[:^ascii:][^#{chars}]&&[^\u9fff]&&x]" + assert_raise(RegexpError) { Regexp.new(cc, Regexp::IGNORECASE) } + assert_raise(RegexpError) { Regexp.new("[x&&#{cc}]", Regexp::IGNORECASE) } + assert_raise(RegexpError) { Regexp.new(cc.encode("UTF-16LE"), Regexp::IGNORECASE) } + end + + def test_char_class_intersection_error_no_memory_leak + assert_no_memory_leak([], "#{<<~'begin;'}", "#{<<~'end;'}", rss: true, samples: 2..100) + chars = (0...3000).map {|i| (0x4e00 + 2 * i).chr("UTF-8") }.join + pat = "[x&&[^#{chars}]\\p{Foo}]" + code = proc do + Regexp.new(pat) rescue nil + end + + begin; + 20.times(&code) + end; + end + def test_cclass_R assert_match(/\A\R\z/, "\r") assert_match(/\A\R\z/, "\n") @@ -1402,6 +1498,10 @@ assert_match(/^\u00df$/i, "ss") #assert_match(/^(\u00df)\1$/i, "\u00dfss") # this must be bug... assert_match(/^\u00df{2}$/i, "\u00dfss") + assert_no_match(/s/i, "\u00df") + assert_no_match(/is/i, "i\u00df") + assert_no_match(/f/i, "\ufb03") + assert_match(/ss/i, "\u00df") assert_match(/^\u00c5$/i, "\u00c5") assert_match(/^\u00c5$/i, "\u00e5") assert_match(/^\u00c5$/i, "\u212b") @@ -1422,6 +1522,39 @@ assert_match(/^\u03b9\u0308\u0301$/i, "\u0390") end + def test_ignorecase_fold_longer_than_operand + %w[UTF-16LE UTF-16BE UTF-32LE UTF-32BE].each do |enc| + tail = "\u0103\u3042\u3044" + s = ("x" * 16 + "\u1E98" + "y" * 8).encode(enc) + re = Regexp.new(("x" * 16 + "(?i:w)" + tail).encode(enc)) + assert_match(re, ("x" * 16 + "W" + tail).encode(enc)) + assert_no_match(re, s) + re = Regexp.new(("(?i:" + "x" * 16 + "w)" + tail).encode(enc)) + assert_match(re, ("x" * 16 + "W" + tail).encode(enc)) + assert_no_match(re, s) + re = Regexp.new("(?-i:xyz)t(?-i:\u0103)".encode(enc), Regexp::IGNORECASE) + assert_match(re, "xyzT\u0103".encode(enc)) + assert_no_match(re, "xyz\u1E97".encode(enc)) + end + + assert_separately([], "#{<<~"begin;"}\n#{<<~'end;'}") + begin; + enc = Encoding::UTF_16LE + re = Regexp.new("(?i:w)\u6203AB".encode(enc)) + assert_match(re, "W\u6203AB".encode(enc)) + assert_no_match(re, "\u1E98\u6203AB".encode(enc)) + re = Regexp.new("(?i:xw)\u6203AB".encode(enc)) + assert_match(re, "xW\u6203AB".encode(enc)) + assert_no_match(re, "x\u1E98\u6203AB".encode(enc)) + end; + end + + def test_backref_ignorecase_at_end_of_string + assert_no_match(/(k\0)\1/i, "k\0\u212a") + assert_match(/(k)\1/i, "k\u212a") + assert_match(/(k\0)\1/i, "k\0\u212a\0") + end + def test_unicode_age assert_unicode_age("\u261c", matches: %w"6.0 1.1", unmatches: []) @@ -1783,6 +1916,15 @@ end; end + def test_invalid_condition_in_alternation_and_call + assert_raise_with_message(RegexpError, /invalid conditional pattern/) do + Regexp.new("(x)|(?(1)x|x|)") + end + assert_raise_with_message(RegexpError, /invalid conditional pattern/) do + Regexp.new("(?x)(?(?()x|x|))\\g") + end + end + def test_too_big_number_for_repeat_range assert_raise_with_message(SyntaxError, /too big number for repeat range/) do eval(%[/|{1000000}/]) @@ -2181,4 +2323,11 @@ end end; end + + def test_too_big_compiled_program_length + k, rest = (2**32 - 217).divmod(100_001) + assert_raise_with_message(RegexpError, /too big compiled program/) do + Regexp.new("(?:#{'.{100000,}' * k}.{#{rest - 1},})?") + end + end end diff -Nru ruby3.3-3.3.13/test/ruby/test_sprintf.rb ruby3.3-3.3.14/test/ruby/test_sprintf.rb --- ruby3.3-3.3.13/test/ruby/test_sprintf.rb 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/test/ruby/test_sprintf.rb 2026-11-18 21:52:31.000000000 +0000 @@ -1,5 +1,6 @@ # frozen_string_literal: false require 'test/unit' +require 'rbconfig/sizeof' class TestSprintf < Test::Unit::TestCase def test_positional @@ -289,6 +290,20 @@ $VERBOSE = verbose end + def test_modify_argument_array + count = 1_000 + obj = Object.new + ary = [obj, *Array.new(count - 1) { "x" }] + obj.define_singleton_method(:to_s) do + ary.replace([]) + "X" + end + str = "%s" * count + assert_raise_with_message(RuntimeError, /array modified during formatting/) do + str % ary + end + end + def test_float assert_equal("36893488147419111424", sprintf("%20.0f", 36893488147419107329.0)) @@ -540,6 +555,11 @@ def test_width_underflow bug = 'https://github.com/mruby/mruby/issues/3347' assert_equal("!", sprintf("%*c", 0, ?!.ord), bug) + + int_max = RbConfig::LIMITS["INT_MAX"] + assert_raise_with_message(ArgumentError, /width too big/) { + sprintf "%*c", int_max, 0x80 + } end def test_negative_width_overflow @@ -555,4 +575,16 @@ assert_equal i, str.bytesize end end + + def test_dangling_pointer_after_encoding_set + str = "\u0141" * 61 + wide_encodings = [ + Encoding::UTF_16BE, Encoding::UTF_16LE, + Encoding::UTF_32BE, Encoding::UTF_32LE, + ] + all_assertions_foreach(nil, *wide_encodings) do |enc| + s = str.encode(enc) + assert_equal(s, ("%s" % s), enc.name) + end + end end diff -Nru ruby3.3-3.3.13/test/ruby/test_string.rb ruby3.3-3.3.14/test/ruby/test_string.rb --- ruby3.3-3.3.13/test/ruby/test_string.rb 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/test/ruby/test_string.rb 2026-11-18 21:52:31.000000000 +0000 @@ -174,6 +174,27 @@ assert_equal(nil, S("\u{3042 3044 3046}")[RbConfig::LIMITS["LONG_MIN"], 1]) end + def test_range_with_len_max_end + require "rbconfig/sizeof" + max = 2 ** (RbConfig::SIZEOF['long'] * 8 - 1) - 1 + + assert_equal(S("ab"), S("ab")[0..max]) + assert_equal(S("b"), S("ab")[1..max]) + assert_equal(S("ab"), S("ab").byteslice(0..max)) + + s = S("ab") + assert_equal(S("ab"), s.slice!(0..max)) + assert_equal(S(""), s) + + s = S("ab") + s[0..max] = S("x") + assert_equal(S("x"), s) + + s = S("ab") + s.bytesplice(0..max, S("x")) + assert_equal(S("x"), s) + end + def test_AREF_invalid_encoding assert_equal(S("\x80"), S("A"*39+"\x80")[-1, 1]) end @@ -232,6 +253,8 @@ s[/([A-Z]..)([A-Z]..)/, -2] = S("Bar") assert_equal(S("BarFoo"), s) assert_raise(IndexError) { s[/([A-Z]..)([A-Z]..)/, -3] = "None" } + assert_raise(IndexError) { s[/([A-Z]..)([A-Z]..)/, RbConfig::LIMITS["INT_MIN"]] = "None" } + assert_equal(S("BarFoo"), s) end s = S("FooBar") @@ -253,6 +276,16 @@ assert_raise(IndexError) {"foo"[RbConfig::LIMITS["LONG_MIN"]] = "l"} end + def test_ASET_string_modified_during_conversion + str = S("hello" * 100) + obj = Object.new + obj.define_singleton_method(:to_str) do + str.replace("") + "x" + end + assert_raise(RuntimeError) { str[/h.l/] = obj } + end + def test_CMP # '<=>' assert_equal(1, S("abcdef") <=> S("abcde")) assert_equal(0, S("abcdef") <=> S("abcdef")) @@ -416,6 +449,9 @@ assert_equal(S(" hello "), S("hello").center(11)) assert_equal(S("ababaababa"), S("").center(10, "ab"), Bug2463) assert_equal(S("ababaababab"), S("").center(11, "ab"), Bug2463) + r = S("").force_encoding(Encoding::UTF_16BE).center(1000, "a") + assert_equal(Encoding::UTF_8, r.encoding) + assert_equal("a" * 1000, r.b) end def test_chomp @@ -484,6 +520,19 @@ assert_equal("foo", s.chomp("\n")) s = "foo\r" assert_equal("foo", s.chomp("\n")) + + # capacity forces a heap buffer, so a read before the receiver leaves it + WIDE_ENCODINGS.each do |enc| + ["A", "AB", "ABC"].each do |bytes| + s = S(capacity: 4096) + s << bytes + s.force_encoding(enc) + label = "#{enc.name} #{bytes.bytesize}" + assert_equal(bytes.b, s.chomp.b, label) + assert_equal(bytes.b, s.chomp("").b, label) + assert_nil(s.chomp!, label) + end + end ensure $/ = save $VERBOSE = verbose @@ -1020,6 +1069,17 @@ assert_equal 0x3042, s.each_codepoint.next end + def test_setbyte_shrink_during_conversion + s = S('a' * 10_000_000) + obj = Object.new + obj.define_singleton_method(:to_int) do + s.clear + s.concat("x" * 50) + 0 + end + assert_raise(IndexError) { s.setbyte(9_999_999, obj) } + end + def test_codepoints # Single byte optimization assert_equal [65, 66, 67], S("ABC").codepoints @@ -1191,6 +1251,16 @@ $VERBOSE = verbose end + def test_each_line_modified_separator + sep = S("x" * 1_000_000) + res = [] + assert_raise_with_message(RuntimeError, /string modified/) do + S("a#{sep}b#{sep}c").each_line(sep) do |x| + sep.clear + end + end + end + def test_each_line_chomp res = [] S("hello\nworld").each_line("\n", chomp: true) {|x| res << x} @@ -1255,6 +1325,11 @@ assert_equal s.object_id, s.lines {|x| res << x }.object_id assert_equal(S("hello\n"), res[0]) assert_equal(S("world"), res[1]) + + s = S("AB").force_encoding(Encoding::UTF_32LE) + sep = S("B").force_encoding(Encoding::UTF_32LE) + + assert_empty(s.lines(sep).to_a) end def test_empty? @@ -1450,6 +1525,14 @@ assert_index(nil, S("にんにちは"), ?に, 3) end + def test_index_truncated_char_at_end + s = S("a" * 2009 + "\xF0") + assert_nil(s.index("needle!!!")) + s = S("a" * 2010 + "\xE3") + assert_nil(s.index("needle!!!")) + assert_nil(s.index("needle!!\xE3")) + end + def test_insert assert_equal("Xabcd", S("abcd").insert(0, 'X')) assert_equal("abcXd", S("abcd").insert(3, 'X')) @@ -1475,6 +1558,9 @@ assert_equal(S("hello "), S("hello").ljust(11)) assert_equal(S("ababababab"), S("").ljust(10, "ab"), Bug2463) assert_equal(S("abababababa"), S("").ljust(11, "ab"), Bug2463) + r = S("").force_encoding(Encoding::UTF_16BE).ljust(1000, "a") + assert_equal(Encoding::UTF_8, r.encoding) + assert_equal("a" * 1000, r.b) end def test_next @@ -1645,6 +1731,19 @@ assert_rindex(nil, S("こんにち"), S("こんにちは")) assert_rindex(nil, S("こ"), S("こんにちは")) assert_rindex(nil, S(""), S("こんにちは")) + + assert_rindex(nil, S("A" * 1024), S("\u{3042}")) + + # exact-size allocations, so a comparison past the last byte leaves them + assert_rindex(nil, S("A" * 1020 + "\u{3042}A"), S("\u{3042}\u{3044}")) + assert_rindex(nil, S("\u{3042}" + "A" * 1021), S("\u{3042}" * 1022)) + + WIDE_ENCODINGS.each do |enc| + pattern = "A".encode(enc) + stray = pattern.b[0] + assert_nil(S(stray).force_encoding(enc).rindex(pattern), enc.name) + assert_nil(S("B".encode(enc).b * 2 + stray).force_encoding(enc).rindex(pattern), enc.name) + end end def test_rjust @@ -1652,6 +1751,9 @@ assert_equal(S(" hello"), S("hello").rjust(11)) assert_equal(S("ababababab"), S("").rjust(10, "ab"), Bug2463) assert_equal(S("abababababa"), S("").rjust(11, "ab"), Bug2463) + r = S("").force_encoding(Encoding::UTF_16BE).rjust(1000, "a") + assert_equal(Encoding::UTF_8, r.encoding) + assert_equal("a" * 1000, r.b) end def test_scan @@ -1842,6 +1944,16 @@ assert_raise(ArgumentError) { a.slice! } end + def test_slice_bang_string_modified + obj = Object.new + s = S("x" + "l" * 3999) + obj.define_singleton_method(:to_int) do + s.clear + 0 + end + assert_nil(s.slice!(/l+$/, obj)) + end + def test_split fs, $; = $;, nil assert_equal([S("a"), S("b"), S("c")], S(" a b\t c ").split) @@ -2798,6 +2910,10 @@ assert_equal(["", "", "foo"], S("foo").partition(/^=*/)) assert_equal([S("ab"), S("c"), S("dbce")], S("abcdbce").partition(/b\Kc/)) + + s = S("A").force_encoding(Encoding::UTF_16LE) + sep = S("A\x00").force_encoding(s.encoding) + assert_equal([s, "", ""], s.partition(sep)) end def test_rpartition @@ -2824,6 +2940,21 @@ assert_equal("hello", hello, bug) assert_equal([S("abcdb"), S("c"), S("e")], S("abcdbce").rpartition(/b\Kc/)) + + s = S("A").force_encoding(Encoding::UTF_16LE) + sep = S("A\x00").force_encoding(s.encoding) + assert_equal(["", "", s], s.rpartition(sep)) + end + + def test_rpartition_string_modified + str = S("héllo" * 1000) + replacement = S("hé") + obj = Object.new + obj.define_singleton_method(:to_str) do + str.replace(replacement) + "-" + end + assert_equal([S(""), S(""), replacement], str.rpartition(obj)) end def test_fs_setter @@ -3473,6 +3604,15 @@ assert_equal(false, str.frozen?) end + def test_uminus_no_embed_gc + pad = "a"*2048 + ("aa".."zz").each do |c| + fstr = -(c + pad).freeze + File.open(IO::NULL, "w").write(fstr) + end + GC.start + end + def test_ord assert_equal(97, S("a").ord) assert_equal(97, S("abc").ord) @@ -3550,6 +3690,16 @@ assert !1000.times.any? {s.byteindex("", 100_000_000)} end + def test_byteindex_modify_source + s = S("héllo" * 1000) + obj = Object.new + obj.define_singleton_method(:to_int) do + s.replace("é" * 50) + 4500 + end + assert_nil(s.byteindex("l", obj)) + end + def test_byterindex assert_byterindex(3, S("hello"), ?l) assert_byterindex(6, S("ell, hello"), S("ell")) @@ -3604,6 +3754,16 @@ assert_byterindex(nil, S(""), S("こんにちは")) end + def test_byterindex_modify_source + s = S("héllo" * 1000) + obj = Object.new + obj.define_singleton_method(:to_int) do + s.replace("é" * 50) + 4500 + end + assert_nil(s.byterindex("l", obj)) + end + def test_bytesplice assert_bytesplice_raise(IndexError, S("hello"), -6, 0, "bye") assert_bytesplice_result("byehello", S("hello"), -5, 0, "bye") diff -Nru ruby3.3-3.3.13/test/ruby/test_time.rb ruby3.3-3.3.14/test/ruby/test_time.rb --- ruby3.3-3.3.13/test/ruby/test_time.rb 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/test/ruby/test_time.rb 2026-11-18 21:52:31.000000000 +0000 @@ -3,6 +3,7 @@ require 'delegate' require 'timeout' require 'delegate' +require 'rbconfig/sizeof' class TestTime < Test::Unit::TestCase def setup @@ -89,6 +90,18 @@ assert_raise_with_message(ArgumentError, /year must be 4 or more/) { Time.new("021-12-25 00:00:00.123456 +09:00") } + assert_raise_with_message(ArgumentError, "year must be 4 or more digits: 00") { + Time.new("00") + } + assert_raise_with_message(ArgumentError, "year must be 4 or more digits: 00") { + Time.new("00 " + "x" * 1000) + } + assert_raise_with_message(ArgumentError, "year must be 4 or more digits: 000") { + Time.new("000") + } + assert_raise_with_message(ArgumentError, "year must be 4 or more digits: +00") { + Time.new("+00") + } assert_raise_with_message(ArgumentError, /fraction min is.*56\./) { Time.new("2020-12-25 00:56. +0900") } @@ -154,6 +167,18 @@ } end + def test_new_from_string_modified_by_precision + str = "2020-12-25 00:00:00" + "0" * 1_000_000 + obj = Object.new + obj.define_singleton_method(:to_int) do + str.clear + 9 + end + assert_raise_with_message(ArgumentError, /can't parse/) { + Time.new(str, precision: obj) + } + end + def test_time_add() assert_equal(Time.utc(2000, 3, 21, 3, 30) + 3 * 3600, Time.utc(2000, 3, 21, 6, 30)) @@ -1088,6 +1113,12 @@ assert_equal(" -0:55:00", t.strftime("%_10::z"), bug6323) assert_equal("-000:55:00", t.strftime("%10::z"), bug6323) assert_equal("-000000:55", t.strftime("%10:::z")) + + t = Time.at(0, in: 0) + max = RbConfig::LIMITS["INT_MAX"] + all_assertions_foreach(nil, *%W[%#{max}z %#{max}:z %#{max}::z %#{max}:::z]) do |z| + assert_raise(Errno::ERANGE) {t.strftime(z)} + end end def test_strftime_invalid_modifier diff -Nru ruby3.3-3.3.13/test/ruby/test_transcode.rb ruby3.3-3.3.14/test/ruby/test_transcode.rb --- ruby3.3-3.3.13/test/ruby/test_transcode.rb 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/test/ruby/test_transcode.rb 2026-11-18 21:52:31.000000000 +0000 @@ -1176,6 +1176,16 @@ assert_invalid_in(%w/fffeb7df/.pack("H*"), "UTF-16") end + def test_utf_16_bom_partial_output + ec = Encoding::Converter.new("UTF-8", "UTF-16") + src = "\u{1F600}" + dst = "\0" * 64 + assert_equal(:destination_buffer_full, ec.primitive_convert(src, dst, 0, 4)) + assert_equal(4, dst.bytesize) + assert_equal(:finished, ec.primitive_convert(src, dst, 4, 4)) + assert_equal("\xFE\xFF\xD8\x3D\xDE\x00", dst.b) + end + def test_utf_32_bom expected = "\u{3042}\u{3044}\u{20bb7}" assert_equal(expected, %w/fffe00004230000044300000b70b0200/.pack("H*").encode("UTF-8","UTF-32")) @@ -1183,6 +1193,16 @@ assert_invalid_in(%w/0000feff00110000/.pack("H*"), "UTF-32") end + def test_utf_32_bom_partial_output + ec = Encoding::Converter.new("UTF-8", "UTF-32") + src = "A" + dst = "\0" * 64 + assert_equal(:destination_buffer_full, ec.primitive_convert(src, dst, 0, 4)) + assert_equal(4, dst.bytesize) + assert_equal(:finished, ec.primitive_convert(src, dst, 4, 4)) + assert_equal("\x00\x00\xFE\xFF\x00\x00\x00A", dst.b) + end + def check_utf_32_both_ways(utf8, raw) copy = raw.dup 0.step(copy.length-1, 4) do |i| @@ -1617,6 +1637,27 @@ encode("cp50220", "sjis")) end + def test_to_cp50220_partial_output + # A katakana held back for a possible sound mark is flushed with its own + # designation (5 bytes) before the designation and data of the character + # that ended the hold (4 bytes). + ec = Encoding::Converter.new("CP51932", "CP50220") + src = "\x8E\xB6A" + dst = "\0" * 64 + assert_equal(:destination_buffer_full, ec.primitive_convert(src, dst, 0, 8)) + assert_equal(8, dst.bytesize) + assert_equal(:finished, ec.primitive_convert(src, dst, 8, 8)) + assert_equal("\e$B\x25\x2B\e(BA", dst.b) + + ec = Encoding::Converter.new("CP51932", "CP50220") + src = "\x8E\xB6" + dst = "\0" * 64 + assert_equal(:destination_buffer_full, ec.primitive_convert(src, dst, 0, 5)) + assert_equal(5, dst.bytesize) + assert_equal(:finished, ec.primitive_convert(src, dst, 5, 5)) + assert_equal("\e$B\x25\x2B\e(B", dst.b) + end + def test_iso_2022_jp_1 # check_both_ways("\u9299", "\x1b$(Dd!\x1b(B", "iso-2022-jp-1") # JIS X 0212 区68 点01 銙 end diff -Nru ruby3.3-3.3.13/test/ruby/test_yjit.rb ruby3.3-3.3.14/test/ruby/test_yjit.rb --- ruby3.3-3.3.13/test/ruby/test_yjit.rb 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/test/ruby/test_yjit.rb 2026-11-18 21:52:31.000000000 +0000 @@ -53,6 +53,12 @@ #assert_in_out_err('--yjit-call-threshold=', '', [], /--yjit-call-threshold needs an argument/) end + def test_exec_mem_size_rejects_sizes_that_overflow_u32 + # 4095 MiB is the largest size whose byte count fits in u32. + assert_in_out_err(%w[--yjit --yjit-exec-mem-size=4095 -e] + ['p RubyVM::YJIT.enabled?'], '', ['true'], []) + assert_in_out_err(%w[--yjit-exec-mem-size=4096 -e] + [''], '', [], /invalid YJIT option `exec-mem-size=4096'/) + end + def test_yjit_enable args = [] args << "--disable=yjit" if RubyVM::YJIT.enabled? diff -Nru ruby3.3-3.3.13/test/socket/test_ancdata.rb ruby3.3-3.3.14/test/socket/test_ancdata.rb --- ruby3.3-3.3.13/test/socket/test_ancdata.rb 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/test/socket/test_ancdata.rb 2026-11-18 21:52:31.000000000 +0000 @@ -65,4 +65,22 @@ } end end + + if /freebsd/ =~ RUBY_PLATFORM + def test_cmsgcred_inspect + cred = [0, 0, 0, 0, 9999, *Array.new(16, 0)].pack('L4I!L*') + s = Socket::AncillaryData.new(:UNIX, :SOCKET, :SCM_CREDS, cred).inspect + assert_include(s, 'groups[9999]') + assert_include(s, '(cmsgcred)') + end + end + + if /netbsd|freebsd/ =~ RUBY_PLATFORM + def test_sockcred_inspect + cred = [0, 0, 0, 0, 9999, 0].pack('L4S!L') + s = Socket::AncillaryData.new(:UNIX, :SOCKET, :SCM_CREDS, cred).inspect + assert_include(s, 'groups[9999]') + assert_include(s, '(sockcred)') + end + end end if defined? Socket::AncillaryData diff -Nru ruby3.3-3.3.13/thread.c ruby3.3-3.3.14/thread.c --- ruby3.3-3.3.13/thread.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/thread.c 2026-11-18 21:52:31.000000000 +0000 @@ -5859,7 +5859,7 @@ if (specific_key_count == 0 && vm->ractor.cnt > 1) { rb_raise(rb_eThreadError, "The first rb_internal_thread_specific_key_create() is called with multiple ractors"); } - else if (specific_key_count > RB_INTERNAL_THREAD_SPECIFIC_KEY_MAX) { + else if (specific_key_count >= RB_INTERNAL_THREAD_SPECIFIC_KEY_MAX) { rb_raise(rb_eThreadError, "rb_internal_thread_specific_key_create() is called more than %d times", RB_INTERNAL_THREAD_SPECIFIC_KEY_MAX); } else { diff -Nru ruby3.3-3.3.13/thread_pthread.c ruby3.3-3.3.14/thread_pthread.c --- ruby3.3-3.3.13/thread_pthread.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/thread_pthread.c 2026-11-18 21:52:31.000000000 +0000 @@ -60,6 +60,10 @@ static const void *const condattr_monotonic = NULL; #endif +/* A retiring shared native thread frees its own context while the threads it + * parked are still suspended with that context as their target. */ +#define COROUTINE_TARGET_MAY_BE_FREED 1 + #include COROUTINE_H #ifndef HAVE_SYS_EVENT_H diff -Nru ruby3.3-3.3.13/time.c ruby3.3-3.3.14/time.c --- ruby3.3-3.3.13/time.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/time.c 2026-11-18 21:52:31.000000000 +0000 @@ -2594,13 +2594,14 @@ rb_raise(rb_eArgError, "time string should have ASCII compatible encoding"); } + size_t prec = NIL_P(precision) ? SIZE_MAX : NUM2SIZET(precision); + const char *const begin = RSTRING_PTR(str); const char *const end = RSTRING_END(str); const char *ptr = begin; VALUE year = Qnil, subsec = Qnil; int mon = -1, mday = -1, hour = -1, min = -1, sec = -1; size_t ndigits; - size_t prec = NIL_P(precision) ? SIZE_MAX : NUM2SIZET(precision); if ((ptr < end) && (ISSPACE(*ptr) || ISSPACE(*(end-1)))) { rb_raise(rb_eArgError, "can't parse: %+"PRIsVALUE, str); diff -Nru ruby3.3-3.3.13/tool/config.guess ruby3.3-3.3.14/tool/config.guess --- ruby3.3-3.3.13/tool/config.guess 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/tool/config.guess 2026-11-18 21:52:31.000000000 +0000 @@ -1,10 +1,10 @@ #! /bin/sh # Attempt to guess a canonical system name. -# Copyright 1992-2022 Free Software Foundation, Inc. +# Copyright 1992-2024 Free Software Foundation, Inc. # shellcheck disable=SC2006,SC2268 # see below for rationale -timestamp='2022-01-09' +timestamp='2024-07-27' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -47,7 +47,7 @@ usage="\ Usage: $0 [OPTION] -Output the configuration name of the system \`$me' is run on. +Output the configuration name of the system '$me' is run on. Options: -h, --help print this help, then exit @@ -60,13 +60,13 @@ GNU config.guess ($timestamp) Originally written by Per Bothner. -Copyright 1992-2022 Free Software Foundation, Inc. +Copyright 1992-2024 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" -Try \`$me --help' for more information." +Try '$me --help' for more information." # Parse command line while test $# -gt 0 ; do @@ -102,8 +102,8 @@ # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. -# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still -# use `HOST_CC' if defined, but it is deprecated. +# Historically, 'CC_FOR_BUILD' used to be named 'HOST_CC'. We still +# use 'HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. @@ -123,7 +123,7 @@ dummy=$tmp/dummy case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in ,,) echo "int x;" > "$dummy.c" - for driver in cc gcc c89 c99 ; do + for driver in cc gcc c17 c99 c89 ; do if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then CC_FOR_BUILD=$driver break @@ -155,6 +155,9 @@ set_cc_for_build cat <<-EOF > "$dummy.c" + #if defined(__ANDROID__) + LIBC=android + #else #include #if defined(__UCLIBC__) LIBC=uclibc @@ -162,6 +165,8 @@ LIBC=dietlibc #elif defined(__GLIBC__) LIBC=gnu + #elif defined(__LLVM_LIBC__) + LIBC=llvm #else #include /* First heuristic to detect musl libc. */ @@ -169,6 +174,7 @@ LIBC=musl #endif #endif + #endif EOF cc_set_libc=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` eval "$cc_set_libc" @@ -459,7 +465,7 @@ UNAME_RELEASE=`uname -v` ;; esac - # Japanese Language versions have a version number like `4.1.3-JL'. + # Japanese Language versions have a version number like '4.1.3-JL'. SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/'` GUESS=sparc-sun-sunos$SUN_REL ;; @@ -628,7 +634,8 @@ sed 's/^ //' << EOF > "$dummy.c" #include - main() + int + main () { if (!__power_pc()) exit(1); @@ -712,7 +719,8 @@ #include #include - int main () + int + main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); @@ -904,7 +912,7 @@ fi ;; *:FreeBSD:*:*) - UNAME_PROCESSOR=`/usr/bin/uname -p` + UNAME_PROCESSOR=`uname -p` case $UNAME_PROCESSOR in amd64) UNAME_PROCESSOR=x86_64 ;; @@ -966,11 +974,37 @@ GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_MACHINE-unknown-$GNU_SYS$GNU_REL-$LIBC ;; + x86_64:[Mm]anagarm:*:*|i?86:[Mm]anagarm:*:*) + GUESS="$UNAME_MACHINE-pc-managarm-mlibc" + ;; + *:[Mm]anagarm:*:*) + GUESS="$UNAME_MACHINE-unknown-managarm-mlibc" + ;; *:Minix:*:*) GUESS=$UNAME_MACHINE-unknown-minix ;; aarch64:Linux:*:*) - GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + set_cc_for_build + CPU=$UNAME_MACHINE + LIBCABI=$LIBC + if test "$CC_FOR_BUILD" != no_compiler_found; then + ABI=64 + sed 's/^ //' << EOF > "$dummy.c" + #ifdef __ARM_EABI__ + #ifdef __ARM_PCS_VFP + ABI=eabihf + #else + ABI=eabi + #endif + #endif +EOF + cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'` + eval "$cc_set_abi" + case $ABI in + eabi | eabihf) CPU=armv8l; LIBCABI=$LIBC$ABI ;; + esac + fi + GUESS=$CPU-unknown-linux-$LIBCABI ;; aarch64_be:Linux:*:*) UNAME_MACHINE=aarch64_be @@ -1036,7 +1070,16 @@ k1om:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; - loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*) + kvx:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + kvx:cos:*:*) + GUESS=$UNAME_MACHINE-unknown-cos + ;; + kvx:mbr:*:*) + GUESS=$UNAME_MACHINE-unknown-mbr + ;; + loongarch32:Linux:*:* | loongarch64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; m32r*:Linux:*:*) @@ -1151,16 +1194,27 @@ ;; x86_64:Linux:*:*) set_cc_for_build + CPU=$UNAME_MACHINE LIBCABI=$LIBC if test "$CC_FOR_BUILD" != no_compiler_found; then - if (echo '#ifdef __ILP32__'; echo IS_X32; echo '#endif') | \ - (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ - grep IS_X32 >/dev/null - then - LIBCABI=${LIBC}x32 - fi + ABI=64 + sed 's/^ //' << EOF > "$dummy.c" + #ifdef __i386__ + ABI=x86 + #else + #ifdef __ILP32__ + ABI=x32 + #endif + #endif +EOF + cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'` + eval "$cc_set_abi" + case $ABI in + x86) CPU=i686 ;; + x32) LIBCABI=${LIBC}x32 ;; + esac fi - GUESS=$UNAME_MACHINE-pc-linux-$LIBCABI + GUESS=$CPU-pc-linux-$LIBCABI ;; xtensa*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC @@ -1180,7 +1234,7 @@ GUESS=$UNAME_MACHINE-pc-sysv4.2uw$UNAME_VERSION ;; i*86:OS/2:*:*) - # If we were able to find `uname', then EMX Unix compatibility + # If we were able to find 'uname', then EMX Unix compatibility # is probably installed. GUESS=$UNAME_MACHINE-pc-os2-emx ;; @@ -1321,7 +1375,7 @@ GUESS=ns32k-sni-sysv fi ;; - PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort + PENTIUM:*:4.0*:*) # Unisys 'ClearPath HMP IX 4000' SVR4/MP effort # says GUESS=i586-unisys-sysv4 ;; @@ -1367,8 +1421,11 @@ BePC:Haiku:*:*) # Haiku running on Intel PC compatible. GUESS=i586-pc-haiku ;; - x86_64:Haiku:*:*) - GUESS=x86_64-unknown-haiku + ppc:Haiku:*:*) # Haiku running on Apple PowerPC + GUESS=powerpc-apple-haiku + ;; + *:Haiku:*:*) # Haiku modern gcc (not bound by BeOS compat) + GUESS=$UNAME_MACHINE-unknown-haiku ;; SX-4:SUPER-UX:*:*) GUESS=sx4-nec-superux$UNAME_RELEASE @@ -1540,6 +1597,9 @@ *:Unleashed:*:*) GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE ;; + *:Ironclad:*:*) + GUESS=$UNAME_MACHINE-unknown-ironclad + ;; esac # Do we have a guess based on uname results? @@ -1563,6 +1623,7 @@ #endif #endif #endif +int main () { #if defined (sony) diff -Nru ruby3.3-3.3.13/tool/config.sub ruby3.3-3.3.14/tool/config.sub --- ruby3.3-3.3.13/tool/config.sub 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/tool/config.sub 2026-11-18 21:52:31.000000000 +0000 @@ -1,10 +1,10 @@ #! /bin/sh # Configuration validation subroutine script. -# Copyright 1992-2022 Free Software Foundation, Inc. +# Copyright 1992-2024 Free Software Foundation, Inc. -# shellcheck disable=SC2006,SC2268 # see below for rationale +# shellcheck disable=SC2006,SC2268,SC2162 # see below for rationale -timestamp='2022-01-03' +timestamp='2024-05-27' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -76,13 +76,13 @@ version="\ GNU config.sub ($timestamp) -Copyright 1992-2022 Free Software Foundation, Inc. +Copyright 1992-2024 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" -Try \`$me --help' for more information." +Try '$me --help' for more information." # Parse command line while test $# -gt 0 ; do @@ -120,7 +120,6 @@ esac # Split fields of configuration type -# shellcheck disable=SC2162 saved_IFS=$IFS IFS="-" read field1 field2 field3 field4 <&2 + echo "Invalid configuration '$1': more than four components" >&2 exit 1 ;; *-*-*-*) @@ -142,10 +141,21 @@ # parts maybe_os=$field2-$field3 case $maybe_os in - nto-qnx* | linux-* | uclinux-uclibc* \ - | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \ - | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \ - | storm-chaos* | os2-emx* | rtmk-nova*) + cloudabi*-eabi* \ + | kfreebsd*-gnu* \ + | knetbsd*-gnu* \ + | kopensolaris*-gnu* \ + | linux-* \ + | managarm-* \ + | netbsd*-eabi* \ + | netbsd*-gnu* \ + | nto-qnx* \ + | os2-emx* \ + | rtmk-nova* \ + | storm-chaos* \ + | uclinux-gnu* \ + | uclinux-uclibc* \ + | windows-* ) basic_machine=$field1 basic_os=$maybe_os ;; @@ -160,8 +170,12 @@ esac ;; *-*) - # A lone config we happen to match not fitting any pattern case $field1-$field2 in + # Shorthands that happen to contain a single dash + convex-c[12] | convex-c3[248]) + basic_machine=$field2-convex + basic_os= + ;; decstation-3100) basic_machine=mips-dec basic_os= @@ -169,28 +183,88 @@ *-*) # Second component is usually, but not always the OS case $field2 in - # Prevent following clause from handling this valid os + # Do not treat sunos as a manufacturer sun*os*) basic_machine=$field1 basic_os=$field2 ;; - zephyr*) - basic_machine=$field1-unknown - basic_os=$field2 - ;; # Manufacturers - dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \ - | att* | 7300* | 3300* | delta* | motorola* | sun[234]* \ - | unicom* | ibm* | next | hp | isi* | apollo | altos* \ - | convergent* | ncr* | news | 32* | 3600* | 3100* \ - | hitachi* | c[123]* | convex* | sun | crds | omron* | dg \ - | ultra | tti* | harris | dolphin | highlevel | gould \ - | cbm | ns | masscomp | apple | axis | knuth | cray \ - | microblaze* | sim | cisco \ - | oki | wec | wrs | winbond) + 3100* \ + | 32* \ + | 3300* \ + | 3600* \ + | 7300* \ + | acorn \ + | altos* \ + | apollo \ + | apple \ + | atari \ + | att* \ + | axis \ + | be \ + | bull \ + | cbm \ + | ccur \ + | cisco \ + | commodore \ + | convergent* \ + | convex* \ + | cray \ + | crds \ + | dec* \ + | delta* \ + | dg \ + | digital \ + | dolphin \ + | encore* \ + | gould \ + | harris \ + | highlevel \ + | hitachi* \ + | hp \ + | ibm* \ + | intergraph \ + | isi* \ + | knuth \ + | masscomp \ + | microblaze* \ + | mips* \ + | motorola* \ + | ncr* \ + | news \ + | next \ + | ns \ + | oki \ + | omron* \ + | pc533* \ + | rebel \ + | rom68k \ + | rombug \ + | semi \ + | sequent* \ + | siemens \ + | sgi* \ + | siemens \ + | sim \ + | sni \ + | sony* \ + | stratus \ + | sun \ + | sun[234]* \ + | tektronix \ + | tti* \ + | ultra \ + | unicom* \ + | wec \ + | winbond \ + | wrs) basic_machine=$field1-$field2 basic_os= ;; + zephyr*) + basic_machine=$field1-unknown + basic_os=$field2 + ;; *) basic_machine=$field1 basic_os=$field2 @@ -271,26 +345,6 @@ basic_machine=arm-unknown basic_os=cegcc ;; - convex-c1) - basic_machine=c1-convex - basic_os=bsd - ;; - convex-c2) - basic_machine=c2-convex - basic_os=bsd - ;; - convex-c32) - basic_machine=c32-convex - basic_os=bsd - ;; - convex-c34) - basic_machine=c34-convex - basic_os=bsd - ;; - convex-c38) - basic_machine=c38-convex - basic_os=bsd - ;; cray) basic_machine=j90-cray basic_os=unicos @@ -713,15 +767,26 @@ vendor=dec basic_os=tops20 ;; - delta | 3300 | motorola-3300 | motorola-delta \ - | 3300-motorola | delta-motorola) + delta | 3300 | delta-motorola | 3300-motorola | motorola-delta | motorola-3300) cpu=m68k vendor=motorola ;; - dpx2*) + # This used to be dpx2*, but that gets the RS6000-based + # DPX/20 and the x86-based DPX/2-100 wrong. See + # https://oldskool.silicium.org/stations/bull_dpx20.htm + # https://www.feb-patrimoine.com/english/bull_dpx2.htm + # https://www.feb-patrimoine.com/english/unix_and_bull.htm + dpx2 | dpx2[23]00 | dpx2[23]xx) cpu=m68k vendor=bull - basic_os=sysv3 + ;; + dpx2100 | dpx21xx) + cpu=i386 + vendor=bull + ;; + dpx20) + cpu=rs6000 + vendor=bull ;; encore | umax | mmax) cpu=ns32k @@ -836,18 +901,6 @@ next | m*-next) cpu=m68k vendor=next - case $basic_os in - openstep*) - ;; - nextstep*) - ;; - ns2*) - basic_os=nextstep2 - ;; - *) - basic_os=nextstep3 - ;; - esac ;; np1) cpu=np1 @@ -936,14 +989,13 @@ ;; *-*) - # shellcheck disable=SC2162 saved_IFS=$IFS IFS="-" read cpu vendor <&2 + echo "Invalid configuration '$1': machine '$cpu-$vendor' not recognized" 1>&2 exit 1 ;; esac @@ -1306,11 +1491,12 @@ # Decode manufacturer-specific aliases for certain operating systems. -if test x$basic_os != x +if test x"$basic_os" != x then # First recognize some ad-hoc cases, or perhaps split kernel-os, or else just # set os. +obj= case $basic_os in gnu/linux*) kernel=linux @@ -1325,7 +1511,6 @@ os=`echo "$basic_os" | sed -e 's|nto-qnx|qnx|'` ;; *-*) - # shellcheck disable=SC2162 saved_IFS=$IFS IFS="-" read kernel os <&2 + fi + ;; *) - echo Invalid configuration \`"$1"\': OS \`"$os"\' not recognized 1>&2 + echo "Invalid configuration '$1': OS '$os' not recognized" 1>&2 + exit 1 + ;; +esac + +case $obj in + aout* | coff* | elf* | pe*) + ;; + '') + # empty is fine + ;; + *) + echo "Invalid configuration '$1': Machine code format '$obj' not recognized" 1>&2 + exit 1 + ;; +esac + +# Here we handle the constraint that a (synthetic) cpu and os are +# valid only in combination with each other and nowhere else. +case $cpu-$os in + # The "javascript-unknown-ghcjs" triple is used by GHC; we + # accept it here in order to tolerate that, but reject any + # variations. + javascript-ghcjs) + ;; + javascript-* | *-ghcjs) + echo "Invalid configuration '$1': cpu '$cpu' is not valid with os '$os$obj'" 1>&2 exit 1 ;; esac # As a final step for OS-related things, validate the OS-kernel combination # (given a valid OS), if there is a kernel. -case $kernel-$os in - linux-gnu* | linux-dietlibc* | linux-android* | linux-newlib* \ - | linux-musl* | linux-relibc* | linux-uclibc* ) +case $kernel-$os-$obj in + linux-gnu*- | linux-android*- | linux-dietlibc*- | linux-llvm*- \ + | linux-mlibc*- | linux-musl*- | linux-newlib*- \ + | linux-relibc*- | linux-uclibc*- | linux-ohos*- ) + ;; + uclinux-uclibc*- | uclinux-gnu*- ) + ;; + managarm-mlibc*- | managarm-kernel*- ) ;; - uclinux-uclibc* ) + windows*-msvc*-) ;; - -dietlibc* | -newlib* | -musl* | -relibc* | -uclibc* ) + -dietlibc*- | -llvm*- | -mlibc*- | -musl*- | -newlib*- | -relibc*- \ + | -uclibc*- ) # These are just libc implementations, not actual OSes, and thus # require a kernel. - echo "Invalid configuration \`$1': libc \`$os' needs explicit kernel." 1>&2 + echo "Invalid configuration '$1': libc '$os' needs explicit kernel." 1>&2 exit 1 ;; - kfreebsd*-gnu* | kopensolaris*-gnu*) + -kernel*- ) + echo "Invalid configuration '$1': '$os' needs explicit kernel." 1>&2 + exit 1 ;; - vxworks-simlinux | vxworks-simwindows | vxworks-spe) + *-kernel*- ) + echo "Invalid configuration '$1': '$kernel' does not support '$os'." 1>&2 + exit 1 ;; - nto-qnx*) + *-msvc*- ) + echo "Invalid configuration '$1': '$os' needs 'windows'." 1>&2 + exit 1 ;; - os2-emx) + kfreebsd*-gnu*- | knetbsd*-gnu*- | netbsd*-gnu*- | kopensolaris*-gnu*-) + ;; + vxworks-simlinux- | vxworks-simwindows- | vxworks-spe-) + ;; + nto-qnx*-) ;; - *-eabi* | *-gnueabi*) + os2-emx-) ;; - -*) + rtmk-nova-) + ;; + *-eabi*- | *-gnueabi*-) + ;; + none--*) + # None (no kernel, i.e. freestanding / bare metal), + # can be paired with an machine code file format + ;; + -*-) # Blank kernel with real OS is always fine. ;; - *-*) - echo "Invalid configuration \`$1': Kernel \`$kernel' not known to work with OS \`$os'." 1>&2 + --*) + # Blank kernel and OS with real machine code file format is always fine. + ;; + *-*-*) + echo "Invalid configuration '$1': Kernel '$kernel' not known to work with OS '$os'." 1>&2 exit 1 ;; esac @@ -1809,7 +2273,7 @@ *-riscix*) vendor=acorn ;; - *-sunos*) + *-sunos* | *-solaris*) vendor=sun ;; *-cnk* | *-aix*) @@ -1879,7 +2343,7 @@ ;; esac -echo "$cpu-$vendor-${kernel:+$kernel-}$os" +echo "$cpu-$vendor${kernel:+-$kernel}${os:+-$os}${obj:+-$obj}" exit # Local variables: diff -Nru ruby3.3-3.3.13/tool/lib/core_assertions.rb ruby3.3-3.3.14/tool/lib/core_assertions.rb --- ruby3.3-3.3.13/tool/lib/core_assertions.rb 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/tool/lib/core_assertions.rb 2026-11-18 21:52:31.000000000 +0000 @@ -152,7 +152,45 @@ end end - def assert_no_memory_leak(args, prepare, code, message=nil, limit: 2.0, rss: false, **opt) + private def memory_growth_rate(points) + n_1 = (n = points.length) - 1 + mean_x = n_1 / 2.0 + mean_y = points.inject(:+).fdiv(n) + covariance = 0 + points.each_with_index {|value, i| covariance += (i - mean_x) * (value - mean_y)} + variance = (n_1 * n * (2 * n - 1) / 6) - (n_1 * n * mean_x) + (n * mean_x**2) + covariance / variance + end + + private def memory_growth_rates(points) + midpoint = (points.length - 1) / 2 + [memory_growth_rate(points[0..midpoint]), memory_growth_rate(points[midpoint..-1])] + end + + private def memory_growth_tail_rates(points) + window = [points.length / 4, 2].max + first = points[[points.length - window * 2, 0].max, window] + last = points[-window, window] + [memory_growth_rate(first), memory_growth_rate(last)] + end + + private def memory_growth_settled_in_tail?(points, growth_rate_ratio) + early_rate, late_rate = memory_growth_tail_rates(points) + memory_growth_settled?(early_rate, late_rate, growth_rate_ratio) + end + + private def memory_growth_settled?(early_rate, late_rate, growth_rate_ratio) + if early_rate <= 0 + late_rate <= 0 + else + late_rate <= early_rate * growth_rate_ratio + end + end + + # growth_rate_ratio compares late and early memory growth rates. With a + # sample range, sampling stops when the late rate is at most this ratio + # of the early rate, after collecting the minimum number of samples. + def assert_no_memory_leak(args, prepare, code, message=nil, limit: 2.0, rss: false, samples: 1, growth_rate_ratio: 0.25, **opt) # TODO: consider choosing some appropriate limit for RJIT and stop skipping this once it does not randomly fail pend 'assert_no_memory_leak may consider RJIT memory usage as leak' if defined?(RubyVM::RJIT) && RubyVM::RJIT.enabled? # For previous versions which implemented MJIT @@ -165,7 +203,28 @@ raise Test::Unit::PendedError, "unsupported platform" unless defined?(Memory::Status) token_dump, token_re = new_test_token + start_re = /^#{token_re}START=(\{.*\})\n/ + sample_re = /^#{token_re}SAMPLE=(\{.*\})\n/ + final_re = /^#{token_re}FINAL=(\{.*\})\n/ envs = args.shift if Array === args and Hash === args.first + case samples + when Integer + unless samples > 0 + raise ArgumentError, "samples must be a positive integer or a bounded range" + end + min_samples = max_samples = samples + adaptive_samples = false + when Range + min_samples = samples.begin + max_samples = samples.end + max_samples -= 1 if samples.exclude_end? && Integer === max_samples + unless Integer === min_samples and Integer === max_samples and min_samples >= 2 and max_samples >= min_samples + raise ArgumentError, "samples range must have a minimum of 2 and a bounded positive maximum" + end + adaptive_samples = true + else + raise ArgumentError, "samples must be a positive integer or a bounded range" + end args = [ "--disable=gems", "-r", File.expand_path("../memory_status", __FILE__), @@ -178,23 +237,126 @@ envs = newenvs if newenvs end args.unshift(envs) if envs - cmd = [ - 'END {STDERR.puts '"#{token_dump}"'"FINAL=#{Memory::Status.new}"}', - prepare, - 'STDERR.puts('"#{token_dump}"'"START=#{$initial_status = Memory::Status.new}")', - '$initial_size = $initial_status.size', - code, - 'GC.start', - ].join("\n") - _, err, status = EnvUtil.invoke_ruby(args, cmd, true, true, **opt) - before = err.sub!(/^#{token_re}START=(\{.*\})\n/, '') && Memory::Status.parse($1) - after = err.sub!(/^#{token_re}FINAL=(\{.*\})\n/, '') && Memory::Status.parse($1) + unless (0..1).cover?(growth_rate_ratio) + raise ArgumentError, "growth_rate_ratio must be between 0 and 1" + end + + cmd = <<~RUBY + STDERR.sync = true + #{<<~ADAPTIVE if adaptive_samples} + memory_leak_control = STDIN.dup + STDIN.reopen(File::NULL, "r") + ADAPTIVE + END {STDERR.puts #{token_dump}"FINAL=\#{Memory::Status.new}"} + #{prepare} + STDERR.puts(#{token_dump}"START=\#{$initial_status = Memory::Status.new}") + $initial_size = $initial_status.size + #{max_samples}.times do + begin + #{code.gsub(/^/, ' ')} + ensure + GC.start + STDERR.puts(#{token_dump}"SAMPLE=\#{Memory::Status.new}") + #{<<~ADAPTIVE if adaptive_samples} + break unless memory_leak_control.gets == "continue\\n" + ADAPTIVE + end + end + __END__ + RUBY + sample_statuses = [] + before = after = nil + if adaptive_samples + stdout, err, status = EnvUtil.invoke_ruby(args, "", true, true, **opt) do |in_p, out_p, err_p, pid| + out_reader = Thread.new {out_p.read} + in_p.write(cmd) + in_p.flush + err = +"" + timeout = EnvUtil.apply_timeout_scale(opt.fetch(:timeout, 10)) + timed_out = nil + begin + Timeout.timeout(timeout) do + while line = err_p.gets + case line + when start_re + before = Memory::Status.parse($1) + when sample_re + sample_statuses << Memory::Status.parse($1) + count = sample_statuses.length + settled = false + if count >= min_samples && count < max_samples + metrics = [:size, (rss && :rss)] & sample_statuses.last.members + settled = metrics.all? do |n| + values = [before[n], *sample_statuses.map {|sample| sample[n]}] + next true unless values.all? {|value| value && value > 0} + + memory_growth_settled_in_tail?(values, growth_rate_ratio) + end + end + if settled || count == max_samples + in_p.close + else + in_p.write("continue\n") + in_p.flush + end + when final_re + after = Memory::Status.parse($1) + else + err << line + end + end + in_p.close + status = Process.wait2(pid)[1] + end + rescue Timeout::Error + timed_out = Time.now + in_p.close + status = begin + EnvUtil.terminate(pid, opt.fetch(:signal, :TERM), opt[:pgroup], opt.fetch(:reprieve, 1)) + rescue Errno::ESRCH, Errno::ECHILD + warn "child not found: #{pid}: #$!" + end + end + stdout = out_reader.value + if timed_out + message = "execution of assert_no_memory_leak expired timeout (#{timeout} sec)" + message = EnvUtil.failure_description(status, timed_out, message, [stdout, err].join("\n")) if status + raise opt.fetch(:timeout_error, Timeout::Error), message + end + [stdout, err, status] + end + else + stdout, err, status = EnvUtil.invoke_ruby(args, cmd, true, true, **opt) + before = err.sub!(start_re, '') && Memory::Status.parse($1) + err.gsub!(sample_re) {sample_statuses << Memory::Status.parse($1); ''} + after = err.sub!(final_re, '') && Memory::Status.parse($1) + end assert(status.success?, FailDesc[status, message, err]) + assert_operator(sample_statuses.length, :>=, min_samples, "could not collect the minimum memory samples") + assert_operator(sample_statuses.length, :<=, max_samples, "collected more than the maximum memory samples") + assert_equal(samples, sample_statuses.length, "could not collect all memory samples") unless adaptive_samples ([:size, (rss && :rss)] & after.members).each do |n| - b = before[n] - a = after[n] - next unless a > 0 and b > 0 - assert_operator(a.fdiv(b), :<, limit, message(message) {"#{n}: #{b} => #{a}"}) + if max_samples == 1 + b = before[n] + a = after[n] + next unless a > 0 and b > 0 + assert_operator(a.fdiv(b), :<, limit, message(message) {"#{n}: #{b} => #{a}"}) + else + values = [before[n], *sample_statuses.map {|sample| sample[n]}] + next unless values.all? {|value| value && value > 0} + + if adaptive_samples + early_rate, late_rate = memory_growth_tail_rates(values) + settled = memory_growth_settled?(early_rate, late_rate, growth_rate_ratio) + else + early_rate, late_rate = memory_growth_rates(values) + settled = memory_growth_settled?(early_rate, late_rate, growth_rate_ratio) + end + assert(settled, message(message) { + "#{n} growth did not settle: #{values.inspect} " \ + "(early rate: #{early_rate}, late rate: #{late_rate})" + }) + end end rescue LoadError pend diff -Nru ruby3.3-3.3.13/transcode.c ruby3.3-3.3.14/transcode.c --- ruby3.3-3.3.13/transcode.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/transcode.c 2026-11-18 21:52:31.000000000 +0000 @@ -2215,6 +2215,8 @@ unsigned char **out_stop_ptr) { size_t len = (*out_pos - *out_start_ptr); + if (len > (size_t)(LONG_MAX / 2 - max_output)) + rb_raise(rb_eArgError, "string size too big"); size_t new_len = (len + max_output) * 2; *out_start_ptr = resize_destination(destination, len, new_len); *out_pos = *out_start_ptr + len; @@ -2377,6 +2379,7 @@ StringValue(rep); ret = rb_econv_insert_output(ec, (const unsigned char *)RSTRING_PTR(rep), RSTRING_LEN(rep), rb_enc_name(rb_enc_get(rep))); + RB_GC_GUARD(rep); // insert_output may GC while reading rep's bytes if ((int)ret == -1) { rb_raise(rb_eArgError, "too big fallback string"); } @@ -3787,6 +3790,9 @@ if (!NIL_P(input)) StringValue(input); rb_str_modify(output); + if (input == output) { + rb_raise(rb_eArgError, "cannot convert into the source string"); + } if (NIL_P(output_bytesize_v)) { output_bytesize = rb_str_capacity(output); diff -Nru ruby3.3-3.3.13/version.h ruby3.3-3.3.14/version.h --- ruby3.3-3.3.13/version.h 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/version.h 2026-11-18 21:52:31.000000000 +0000 @@ -9,9 +9,9 @@ */ # define RUBY_VERSION_MAJOR RUBY_API_VERSION_MAJOR # define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR -#define RUBY_VERSION_TEENY 13 +#define RUBY_VERSION_TEENY 14 #define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR -#define RUBY_PATCHLEVEL 207 +#define RUBY_PATCHLEVEL 208 #include "ruby/version.h" #include "ruby/internal/abi.h" diff -Nru ruby3.3-3.3.13/vm_args.c ruby3.3-3.3.14/vm_args.c --- ruby3.3-3.3.13/vm_args.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/vm_args.c 2026-11-18 21:52:31.000000000 +0000 @@ -508,6 +508,13 @@ * <- ISEQ_BODY(iseq)->param.size------------> * ^ locals ^ sp */ + if ((unsigned int)calling->argc < ISEQ_BODY(iseq)->param.size) { + /* Ensure the nil-fill below and the SP extension do not run into the + * control frame region, clobbering frames before the stack overflow + * check in vm_push_frame has a chance to raise SystemStackError. */ + CHECK_VM_STACK_OVERFLOW0(ec->cfp, locals + calling->argc, + ISEQ_BODY(iseq)->param.size - calling->argc); + } for (i=calling->argc; iparam.size; i++) { locals[i] = Qnil; } @@ -710,11 +717,12 @@ if (ISEQ_BODY(iseq)->param.flags.has_rest) { args_setup_rest_parameter(args, locals + ISEQ_BODY(iseq)->param.rest_start); VALUE ary = *(locals + ISEQ_BODY(iseq)->param.rest_start); - VALUE index = RARRAY_LEN(ary) - 1; + long index = RARRAY_LEN(ary); if (splat_flagged_keyword_hash && !ISEQ_BODY(iseq)->param.flags.ruby2_keywords && !ISEQ_BODY(iseq)->param.flags.has_kw && !ISEQ_BODY(iseq)->param.flags.has_kwrest && + index-- > 0 && RARRAY_AREF(ary, index) == splat_flagged_keyword_hash) { ((struct RHash *)rest_last)->basic.flags &= ~RHASH_PASS_AS_KEYWORDS; RARRAY_ASET(ary, index, rest_last); diff -Nru ruby3.3-3.3.13/vm_backtrace.c ruby3.3-3.3.14/vm_backtrace.c --- ruby3.3-3.3.13/vm_backtrace.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/vm_backtrace.c 2026-11-18 21:52:31.000000000 +0000 @@ -969,12 +969,13 @@ FILE *fp = (FILE *)data; if (NIL_P(name)) { - fprintf(fp, "\tfrom %s:%d:in unknown method\n", - RSTRING_PTR(file), lineno); + fprintf(fp, "\tfrom %.*s:%d:in unknown method\n", + RSTRING_LENINT(file), RSTRING_PTR(file), lineno); } else { - fprintf(fp, "\tfrom %s:%d:in `%s'\n", - RSTRING_PTR(file), lineno, RSTRING_PTR(name)); + fprintf(fp, "\tfrom %.*s:%d:in `%.*s'\n", + RSTRING_LENINT(file), RSTRING_PTR(file), lineno, + RSTRING_LENINT(name), RSTRING_PTR(name)); } } @@ -1003,16 +1004,20 @@ struct oldbt_bugreport_arg *p = arg; FILE *fp = p->fp; const char *filename = NIL_P(file) ? "ruby" : RSTRING_PTR(file); + int filename_len = NIL_P(file) ? 4 : RSTRING_LENINT(file); if (!p->count) { fprintf(fp, "-- Ruby level backtrace information " "----------------------------------------\n"); p->count = 1; } if (NIL_P(method)) { - fprintf(fp, "%s:%d:in unknown method\n", filename, line); + fprintf(fp, "%.*s:%d:in unknown method\n", + filename_len, filename, line); } else { - fprintf(fp, "%s:%d:in `%s'\n", filename, line, RSTRING_PTR(method)); + fprintf(fp, "%.*s:%d:in `%.*s'\n", + filename_len, filename, line, + RSTRING_LENINT(method), RSTRING_PTR(method)); } } diff -Nru ruby3.3-3.3.13/vm_dump.c ruby3.3-3.3.14/vm_dump.c --- ruby3.3-3.3.13/vm_dump.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/vm_dump.c 2026-11-18 21:52:31.000000000 +0000 @@ -514,10 +514,12 @@ unw_word_t ip; int n = 0; + if (size <= 0) return 0; + unw_getcontext(&uc); unw_init_local(&cursor, &uc); # if defined(__x86_64__) - while (unw_step(&cursor) > 0) { + while (n < size && unw_step(&cursor) > 0) { unw_get_reg(&cursor, UNW_REG_IP, &ip); trace[n++] = (void *)ip; { @@ -530,6 +532,7 @@ } return n; darwin_sigtramp: + if (n == size) return n; /* darwin's bundled libunwind doesn't support signal trampoline */ { ucontext_t *uctx; @@ -590,13 +593,14 @@ /* if segv is caused by invalid call or signal received in syscall */ /* the frame is invalid; skip */ trace[n++] = (void *)ip; + if (n == size) return n; ip = *(unw_word_t*)uctx->uc_mcontext->MCTX_SS_REG(rsp); } trace[n++] = (void *)ip; unw_set_reg(&cursor, UNW_REG_IP, ip); } - while (unw_step(&cursor) > 0) { + while (n < size && unw_step(&cursor) > 0) { unw_get_reg(&cursor, UNW_REG_IP, &ip); trace[n++] = (void *)ip; } @@ -607,7 +611,7 @@ * unwind can unwind frames without special code. * https://github.com/apple/darwin-libplatform/blob/215b09856ab5765b7462a91be7076183076600df/src/setjmp/generic/sigtramp.c */ - while (unw_step(&cursor) > 0) { + while (n < size && unw_step(&cursor) > 0) { unw_get_reg(&cursor, UNW_REG_IP, &ip); // Strip Arm64's pointer authentication. // https://developer.apple.com/documentation/security/preparing_your_app_to_work_with_pointer_authentication @@ -753,7 +757,7 @@ frame.AddrFrame.Offset = context.Rbp; frame.AddrStack.Mode = AddrModeFlat; frame.AddrStack.Offset = context.Rsp; -#elif defined(__aarch64__) +#elif defined(_M_ARM64) || defined(__aarch64__) mac = IMAGE_FILE_MACHINE_ARM64; frame.AddrPC.Mode = AddrModeFlat; frame.AddrPC.Offset = context.Pc; diff -Nru ruby3.3-3.3.13/win32/Makefile.sub ruby3.3-3.3.14/win32/Makefile.sub --- ruby3.3-3.3.13/win32/Makefile.sub 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/win32/Makefile.sub 2026-11-18 21:52:31.000000000 +0000 @@ -339,6 +339,9 @@ !elseif "$(ARCH)" == "i386" COROUTINE_OBJ = coroutine/win32/Context.obj COROUTINE_SRC = $(COROUTINE_OBJ:.obj=.asm) +!elseif "$(ARCH)" == "arm64" +COROUTINE_OBJ = coroutine/arm64/Context.obj +COROUTINE_SRC = $(COROUTINE_OBJ:.obj=.asm) !else COROUTINE_OBJ = coroutine/copy/Context.obj COROUTINE_SRC = $(COROUTINE_OBJ:.obj=.c) @@ -692,7 +695,7 @@ #define _INTEGRAL_MAX_BITS 64 #endif #define SIZEOF_OFF_T 8 -!if "$(ARCH)" == "x64" +!if "$(TARGET_OS)" == "mswin64" #define SIZEOF_VOIDP 8 !else #define SIZEOF_VOIDP 4 @@ -714,7 +717,7 @@ #define NUM2CLOCKID(v) NUM2INT(v) #define SIZEOF_CLOCK_T 4 #define SIZEOF_RLIM_T 0 -!if "$(ARCH)" == "x64" +!if "$(TARGET_OS)" == "mswin64" #define SIZEOF_SIZE_T 8 #define SIZEOF_PTRDIFF_T 8 #define SIZEOF_INTPTR_T 8 @@ -813,7 +816,7 @@ #define HAVE_INTPTR_T 1 #define HAVE_UINTPTR_T 1 #define HAVE_SSIZE_T 1 -!if "$(ARCH)" == "x64" +!if "$(TARGET_OS)" == "mswin64" #define ssize_t __int64 #define PRI_PTR_PREFIX "I64" !else @@ -925,9 +928,7 @@ !endif #endif #define NEED_IO_SEEK_BETWEEN_RW 1 -!if "$(MACHINE)" == "x86" || "$(ARCH)" == "x64" #define STACK_GROW_DIRECTION -1 -!endif #define COROUTINE_H "$(COROUTINE_H)" #define THREAD_IMPL_H "$(THREAD_IMPL_H)" #define THREAD_IMPL_SRC "$(THREAD_IMPL_SRC)" @@ -1292,6 +1293,9 @@ {$(srcdir)/coroutine/win64}.asm{coroutine/win64}.obj: $(ECHO) assembling $(<:\=/) $(Q) $(AS) $(ASFLAGS) $(XCFLAGS) $(CPPFLAGS) $(COUTFLAG)$@ -c $(<:\=/) +{$(srcdir)/coroutine/arm64}.asm{coroutine/arm64}.obj: + $(ECHO) assembling $(<:\=/) + $(Q) $(AS) $(ASFLAGS) -o $@ $(<:\=/) {$(srcdir)/prism}.c.obj: $(ECHO) compiling $(<:\=/) diff -Nru ruby3.3-3.3.13/win32/setup.mak ruby3.3-3.3.14/win32/setup.mak --- ruby3.3-3.3.13/win32/setup.mak 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/win32/setup.mak 2026-11-18 21:52:31.000000000 +0000 @@ -228,7 +228,9 @@ -generic-: nul @$(CPP) <nul | findstr = >>$(MAKEFILE) -#if defined _M_X64 +#if defined _M_ARM64 +MACHINE = arm64 +#elif defined _M_X64 MACHINE = x64 #else MACHINE = x86 @@ -244,6 +246,8 @@ @echo MACHINE = x64>>$(MAKEFILE) -ix86-: -osname32- @echo MACHINE = x86>>$(MAKEFILE) +-arm64-: -osname64- + @echo MACHINE = arm64>>$(MAKEFILE) -i386-: -ix86- @echo $(CPU) = 3>>$(MAKEFILE) diff -Nru ruby3.3-3.3.13/win32/win32.c ruby3.3-3.3.14/win32/win32.c --- ruby3.3-3.3.13/win32/win32.c 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/win32/win32.c 2026-11-18 21:52:31.000000000 +0000 @@ -532,7 +532,7 @@ if (GetSystemWindowsDirectoryW(path, len)) return 0; } p = translate_wchar(path, L'\\', L'/'); - if (*(p - 1) != L'/') *p++ = L'/'; + if (p == path || *(p - 1) != L'/') *p++ = L'/'; if ((UINT)(p - path + numberof(temp)) >= len) return 0; memcpy(p, temp, sizeof(temp)); return (UINT)(p - path + numberof(temp) - 1); @@ -720,8 +720,16 @@ exclusive_for_##obj; \ exclusive_for_##obj = (LeaveCriticalSection(&obj##_mutex), false)) -static CRITICAL_SECTION uenvarea_mutex; -static char *uenvarea; +/* The string w32_getenv returned last in each thread, or in each Win32 + * fiber, valid until the next call in the same thread or fiber. */ +static DWORD uenvarea_key; + +/* License: Ruby's */ +static void WINAPI +free_uenvarea(void *uenvarea) +{ + free(uenvarea); +} /* License: Ruby's */ struct constat { @@ -762,13 +770,7 @@ DeleteCriticalSection(&select_mutex); DeleteCriticalSection(&socklist_mutex); DeleteCriticalSection(&conlist_mutex); - thread_exclusive(uenvarea) { - if (uenvarea) { - free(uenvarea); - uenvarea = NULL; - } - } - DeleteCriticalSection(&uenvarea_mutex); + FlsFree(uenvarea_key); } /* License: Ruby's */ @@ -934,7 +936,8 @@ tzset(); - InitializeCriticalSection(&uenvarea_mutex); + if ((uenvarea_key = FlsAlloc(free_uenvarea)) == FLS_OUT_OF_INDEXES) + rb_bug("FlsAlloc() for uenvarea_key fails"); init_env(); init_stdhandle(); @@ -2646,7 +2649,7 @@ const uint32_t adrp_id = 0x90000000; const uint32_t adrp_mask = 0x9f000000; const uint32_t add_id = 0x11000000; - const uint32_t add_mask = 0x3fc00000; + const uint32_t add_mask = 0x7fc00000; for(; pc > start; pc--) { if (IS_INSN(pc, adrp) && IS_INSN(pc + 1, add)) { break; @@ -2666,17 +2669,14 @@ const uint32_t adrp_insn = *pc; const uint32_t adrp_immhi = (adrp_insn & 0x00ffffe0) >> 5; const uint32_t adrp_immlo = (adrp_insn & 0x60000000) >> (5 + 19 + 5); - /* imm = immhi:immlo:Zeros(12), 64 */ - const uint64_t adrp_imm = ((adrp_immhi << 2) | adrp_immlo) << 12; + const int64_t adrp_sign = (adrp_insn & 0x00800000) ? ~0x001fffff : 0; + /* imm = SignExtend(immhi:immlo:Zeros(12), 64) */ + const int64_t adrp_imm = (adrp_sign | (adrp_immhi << 2) | adrp_immlo) << 12; /* base = PC64<63:12>:Zeros(12) */ const uint64_t adrp_base = (uint64_t)pc & 0xfffffffffffff000; const uint32_t add_insn = *(pc + 1); - const uint32_t add_sh = (add_insn & 0x400000) >> (12 + 5 + 5); - /* case sh of - when '0' imm = ZeroExtend(imm12, datasize); - when '1' imm = ZeroExtend(imm12:Zeros(12), datasize); */ - const uint64_t add_imm = ((add_insn & 0x3ffc00) >> (5 + 5)) << (add_sh ? 12 : 0); + const uint64_t add_imm = (add_insn & 0x3ffc00) >> (5 + 5); __pioinfo = (ioinfo**)(adrp_base + adrp_imm + add_imm); #else /* _M_ARM64 */ @@ -4126,17 +4126,18 @@ /* License: Ruby's */ static size_t -socketpair_unix_path(struct sockaddr_un *sock_un) +socketpair_unix_path(struct sockaddr_un *sock_un, WCHAR *wpath, const int maxpath) { SOCKET listener; - WCHAR wpath[sizeof(sock_un->sun_path)/sizeof(*sock_un->sun_path)] = L""; /* AF_UNIX/SOCK_STREAM became available in Windows 10 * See https://devblogs.microsoft.com/commandline/af_unix-comes-to-windows */ listener = socket(AF_UNIX, SOCK_STREAM, 0); - if (listener == INVALID_SOCKET) + if (listener == INVALID_SOCKET) { + errno = EAFNOSUPPORT; return 0; + } memset(sock_un, 0, sizeof(*sock_un)); sock_un->sun_family = AF_UNIX; @@ -4151,38 +4152,49 @@ */ for (int try = 0; ; try++) { LARGE_INTEGER ticks; - size_t path_len = 0; - const size_t maxpath = sizeof(sock_un->sun_path)/sizeof(*sock_un->sun_path); + int path_len = 0; + static const WCHAR FALLBACK_TEMP[] = L"C:/Temp/"; // always C: exists? + static const int FALLBACK_TEMP_SIZE = numberof(FALLBACK_TEMP) - 1; switch (try) { - case 0: + case 0: /* user temp dir from TMP or TEMP env var, it ends with a backslash */ path_len = GetTempPathW(maxpath, wpath); + if (path_len == 0 || path_len >= maxpath) { + /* The env var path did not fit in wpath (GetTempPathW then + * returns the required length and leaves wpath unfilled), or + * the call failed. Skip to the next candidate directory + * instead of reading past wpath in WideCharToMultiByte. */ + continue; + } break; - case 1: - wcsncpy(wpath, L"C:/Temp/", maxpath); - path_len = lstrlenW(wpath); + case 1: + if (FALLBACK_TEMP_SIZE >= maxpath) continue; + wcsncpy(wpath, FALLBACK_TEMP, maxpath); + path_len = FALLBACK_TEMP_SIZE; break; - case 2: + case 2: /* Current directory */ path_len = 0; break; - case 3: + case 3: closesocket(listener); + errno = EADDRNOTAVAIL; return 0; } /* Windows UNIXSocket implementation expects UTF-8 instead of UTF16 */ - path_len = WideCharToMultiByte(CP_UTF8, 0, wpath, path_len, sock_un->sun_path, maxpath, NULL, NULL); + int un_len = WideCharToMultiByte(CP_UTF8, 0, wpath, path_len, sock_un->sun_path, maxpath, NULL, NULL); QueryPerformanceCounter(&ticks); - path_len += snprintf(sock_un->sun_path + path_len, - maxpath - path_len, + int base_len = snprintf(sock_un->sun_path + un_len, + maxpath - un_len, "%lld-%ld.($)", ticks.QuadPart, GetCurrentProcessId()); + if (un_len + base_len >= maxpath) continue; /* Convert to UTF16 for DeleteFileW */ - MultiByteToWideChar(CP_UTF8, 0, sock_un->sun_path, -1, wpath, sizeof(wpath)/sizeof(*wpath)); + MultiByteToWideChar(CP_UTF8, 0, sock_un->sun_path + un_len, base_len + 1, wpath + path_len, maxpath - path_len); if (bind(listener, (struct sockaddr *)sock_un, sizeof(*sock_un)) != SOCKET_ERROR) break; @@ -4236,11 +4248,9 @@ #ifdef HAVE_AFUNIX_H case AF_UNIX: addr = (struct sockaddr *)&sock_un; - len = socketpair_unix_path(&sock_un); - MultiByteToWideChar(CP_UTF8, 0, sock_un.sun_path, -1, wpath, sizeof(wpath)/sizeof(*wpath)); - if (len) - break; - /* fall through */ + len = socketpair_unix_path(&sock_un, wpath, numberof(wpath)); + if (!len) return -1; + break; #endif default: errno = EAFNOSUPPORT; @@ -5493,39 +5503,36 @@ { WCHAR *wenvarea, *wenv; int len = strlen(name); - char *env, *found = NULL; + char *uenvarea, *env, *found = NULL; int wlen; if (len == 0) return NULL; if (!NTLoginName) { - /* initialized in init_env, uenvarea_mutex should have been - * initialized before it */ + /* initialized in init_env, uenvarea_key should have been + * allocated before it */ return getenv(name); } - thread_exclusive(uenvarea) { - if (uenvarea) { - free(uenvarea); - uenvarea = NULL; - } - wenvarea = GetEnvironmentStringsW(); - if (!wenvarea) { - map_errno(GetLastError()); - continue; - } - for (wenv = wenvarea, wlen = 1; *wenv; wenv += lstrlenW(wenv) + 1) - wlen += lstrlenW(wenv) + 1; - uenvarea = wstr_to_mbstr(cp, wenvarea, wlen, NULL); - FreeEnvironmentStringsW(wenvarea); - if (!uenvarea) - continue; + free(FlsGetValue(uenvarea_key)); + FlsSetValue(uenvarea_key, NULL); + wenvarea = GetEnvironmentStringsW(); + if (!wenvarea) { + map_errno(GetLastError()); + return NULL; + } + for (wenv = wenvarea, wlen = 1; *wenv; wenv += lstrlenW(wenv) + 1) + wlen += lstrlenW(wenv) + 1; + uenvarea = wstr_to_mbstr(cp, wenvarea, wlen, NULL); + FreeEnvironmentStringsW(wenvarea); + if (!uenvarea) + return NULL; + FlsSetValue(uenvarea_key, uenvarea); - for (env = uenvarea; *env; env += strlen(env) + 1) { - if (strncasecmp(env, name, len) == 0 && *(env + len) == '=') { - found = env + len + 1; - break; - } + for (env = uenvarea; *env; env += strlen(env) + 1) { + if (strncasecmp(env, name, len) == 0 && *(env + len) == '=') { + found = env + len + 1; + break; } } @@ -7456,13 +7463,17 @@ errno = EINTR; else errno = map_errno(GetLastError()); - CloseHandle(ol.hEvent); CancelIo((HANDLE)_osfhnd(fd)); - rb_acrt_lowio_unlock_fh(fd); - return -1; + /* the read may have completed before the cancel, and the kernel + * writes ol and buf until it ends either way */ + GetOverlappedResult((HANDLE)_osfhnd(fd), &ol, &read, TRUE); + if (!read) { + CloseHandle(ol.hEvent); + rb_acrt_lowio_unlock_fh(fd); + return -1; + } } - - if (!GetOverlappedResult((HANDLE)_osfhnd(fd), &ol, &read, TRUE) && + else if (!GetOverlappedResult((HANDLE)_osfhnd(fd), &ol, &read, TRUE) && (err = GetLastError()) != ERROR_HANDLE_EOF) { int ret = 0; if (err != ERROR_BROKEN_PIPE) { @@ -7567,13 +7578,15 @@ errno = EINTR; else errno = map_errno(GetLastError()); - CloseHandle(ol.hEvent); CancelIo((HANDLE)_osfhnd(fd)); - rb_acrt_lowio_unlock_fh(fd); - return -1; + GetOverlappedResult((HANDLE)_osfhnd(fd), &ol, &written, TRUE); + if (!written) { + CloseHandle(ol.hEvent); + rb_acrt_lowio_unlock_fh(fd); + return -1; + } } - - if (!GetOverlappedResult((HANDLE)_osfhnd(fd), &ol, &written, TRUE)) { + else if (!GetOverlappedResult((HANDLE)_osfhnd(fd), &ol, &written, TRUE)) { errno = map_errno(GetLastError()); CloseHandle(ol.hEvent); CancelIo((HANDLE)_osfhnd(fd)); diff -Nru ruby3.3-3.3.13/yjit/src/options.rs ruby3.3-3.3.14/yjit/src/options.rs --- ruby3.3-3.3.13/yjit/src/options.rs 2026-10-23 03:17:41.000000000 +0000 +++ ruby3.3-3.3.14/yjit/src/options.rs 2026-11-18 21:52:31.000000000 +0000 @@ -79,6 +79,10 @@ pub perf_map: bool, } +/// Maximum value for --yjit-exec-mem-size in MiB. rb_yjit_reserve_addr_space() takes the size +/// in bytes as u32, and 4095 MiB is the largest MiB value below u32::MAX (4096 MiB is 2^32 bytes). +pub const MAX_EXEC_MEM_MIB: usize = 4095; + // Initialize the options to default values pub static mut OPTIONS: Options = Options { exec_mem_size: 48 * 1024 * 1024, @@ -167,7 +171,7 @@ ("exec-mem-size", _) => match opt_val.parse::() { Ok(n) => { - if n == 0 || n > 2 * 1024 * 1024 { + if n == 0 || n > MAX_EXEC_MEM_MIB { return None }