ruby-changes:64622
From: Nobuyoshi <ko1@a...>
Date: Sun, 27 Dec 2020 17:51:39 +0900 (JST)
Subject: [ruby-changes:64622] 46ab4fcf2a (master): Support AC_FUNC_MEMCMP
https://git.ruby-lang.org/ruby.git/commit/?id=46ab4fcf2a From 46ab4fcf2a71cf68565dc587db6fb1497e75e854 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 26 Dec 2020 00:53:51 +0900 Subject: Support AC_FUNC_MEMCMP diff --git a/tool/leaked-globals b/tool/leaked-globals index 0fb9e65..3f4621a 100755 --- a/tool/leaked-globals +++ b/tool/leaked-globals @@ -16,7 +16,9 @@ end https://github.com/ruby/ruby/blob/trunk/tool/leaked-globals#L16 config = ARGV.shift count = 0 col = Colorize.new -REPLACE = File.read(config).scan(/\bAC_(?:REPLACE|CHECK)_FUNCS?\(\K\w+/) +config_code = File.read(config) +REPLACE = config_code.scan(/\bAC_(?:REPLACE|CHECK)_FUNCS?\(\K\w+/) +REPLACE << 'memcmp' if /\bAC_FUNC_MEMCMP\b/ =~ config_code print "Checking leaked global symbols..." STDOUT.flush IO.foreach("|#{NM} -Pgp #{ARGV.join(' ')}") do |line| -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/