mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
83a9ccb0f2
commit
e35ff78985
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ loop do
|
||||||
extern_names << decl_name
|
extern_names << decl_name
|
||||||
decl[match.begin(0)...match.end(0)] = ''
|
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}'"
|
STDERR.puts "warning: a static decl inside external definition of '#{decl_name}'"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue