summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-29 00:09:08 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-29 00:09:08 (GMT)
commit63ae1e3cb5d302e5229143c00152328166d26780 (patch)
tree8408626d4e933486c10a311751c506c2582e88e9 /win32
parent443f4d583c8fe78198bee791f2ac3da0be2dfb5e (diff)
mkexports.rb: flip-flop
* win32/mkexports.rb (Exports::Mswin#each_export): get rid of flip-flop warning. [ruby-core:88147] [Bug #14946] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rwxr-xr-xwin32/mkexports.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/win32/mkexports.rb b/win32/mkexports.rb
index 887b5d9..3bb7594 100755
--- a/win32/mkexports.rb
+++ b/win32/mkexports.rb
@@ -109,7 +109,11 @@ class Exports::Mswin < Exports
objs = objs.collect {|s| s.tr('/', '\\')}
filetype = nil
objdump(objs) do |l|
- if (filetype = l[/^File Type: (.+)/, 1])..(/^\f/ =~ l)
+ if filetype
+ if /^\f/ =~ l
+ filetype = nil
+ next
+ end
case filetype
when /OBJECT/, /LIBRARY/
next if /^[[:xdigit:]]+ 0+ UNDEF / =~ l
@@ -130,6 +134,8 @@ class Exports::Mswin < Exports
next
end
yield l.strip, is_data
+ else
+ filetype = l[/^File Type: (.+)/, 1]
end
end
yield "strcasecmp", "msvcrt.stricmp"