summaryrefslogtreecommitdiff
path: root/tool/leaked-globals
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-26 21:47:57 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-27 15:50:43 +0900
commit0957814c2776a78e509ceb0aa3fe958d3dc65b2f (patch)
tree4a785c440aeb568373227498b1fae0dfa105e520 /tool/leaked-globals
parentd55d0331c703f883c4b6fd76b5a14508cc398338 (diff)
Get rid of \K for old BASERUBYs which have a bug in String#scan
Diffstat (limited to 'tool/leaked-globals')
-rwxr-xr-xtool/leaked-globals2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/leaked-globals b/tool/leaked-globals
index ab9fc99823..49791559fc 100755
--- a/tool/leaked-globals
+++ b/tool/leaked-globals
@@ -17,7 +17,7 @@ config = ARGV.shift
count = 0
col = Colorize.new
config_code = File.read(config)
-REPLACE = config_code.scan(/\bAC_(?:REPLACE|CHECK)_FUNCS?\(\K\w+/)
+REPLACE = config_code.scan(/\bAC_(?:REPLACE|CHECK)_FUNCS?\((\w+)/).flatten
REPLACE << 'memcmp' if /\bAC_FUNC_MEMCMP\b/ =~ config_code
REPLACE.push('main', 'DllMain')
print "Checking leaked global symbols..."