summaryrefslogtreecommitdiff
path: root/tool/transform_mjit_header.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-04 13:12:57 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-04 13:12:57 +0000
commite35ff78985b23b6e74f8f70b236d4e8644ca33cd (patch)
treed5008e94c262378927c456cca57b859871fadcfe /tool/transform_mjit_header.rb
parent83a9ccb0f2aee9f84bab7972dc1567c7a248452e (diff)
match whole word
* tool/transform_mjit_header.rb: add word boundary anchors and match whole word to get rid of false `static` declarations, e.g., rb_str_new_static. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/transform_mjit_header.rb')
-rw-r--r--tool/transform_mjit_header.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/transform_mjit_header.rb b/tool/transform_mjit_header.rb
index a58b173d7f..e2d35b741e 100644
--- a/tool/transform_mjit_header.rb
+++ b/tool/transform_mjit_header.rb
@@ -166,7 +166,7 @@ loop do
extern_names << decl_name
decl[match.begin(0)...match.end(0)] = ''
- if decl =~ /static/
+ if decl =~ /\bstatic\b/
STDERR.puts "warning: a static decl inside external definition of '#{decl_name}'"
end