diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-12-26 00:53:51 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-12-27 15:50:02 +0900 |
commit | 46ab4fcf2a71cf68565dc587db6fb1497e75e854 (patch) | |
tree | 1baf67eb2eaeab2fed84ecb02e427d15d7dc6629 /tool | |
parent | b73d256f34dc46ae2b1e682c060330541463b905 (diff) |
Support AC_FUNC_MEMCMP
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/leaked-globals | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tool/leaked-globals b/tool/leaked-globals index 0fb9e657c9..3f4621a35f 100755 --- a/tool/leaked-globals +++ b/tool/leaked-globals @@ -16,7 +16,9 @@ end 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| |