mkexports.rb: Revert removed flip-flop

This reverts commit 63ae1e3cb5d302e5229143c00152328166d26780.
This commit is contained in:
Nobuyoshi Nakada 2024-11-16 22:46:26 +09:00
parent 002438767d
commit 7be4c0a88d
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

View File

@ -106,11 +106,7 @@ class Exports::Mswin < Exports
objs = objs.collect {|s| s.tr('/', '\\')}
filetype = nil
objdump(objs) do |l|
if filetype
if /^\f/ =~ l
filetype = nil
next
end
if (filetype = l[/^File Type: (.+)/, 1])..(/^\f/ =~ l)
case filetype
when /OBJECT/, /LIBRARY/
l.chomp!
@ -132,8 +128,6 @@ class Exports::Mswin < Exports
next
end
yield l.strip, is_data
else
filetype = l[/^File Type: (.+)/, 1]
end
end
yield "strcasecmp", "msvcrt.stricmp"