Skip to content

Commit 7be4c0a

Browse files
committed
mkexports.rb: Revert removed flip-flop
This reverts commit 63ae1e3.
1 parent 0024387 commit 7be4c0a

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

win32/mkexports.rb

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,7 @@ def each_export(objs)
106106
objs = objs.collect {|s| s.tr('/', '\\')}
107107
filetype = nil
108108
objdump(objs) do |l|
109-
if filetype
110-
if /^\f/ =~ l
111-
filetype = nil
112-
next
113-
end
109+
if (filetype = l[/^File Type: (.+)/, 1])..(/^\f/ =~ l)
114110
case filetype
115111
when /OBJECT/, /LIBRARY/
116112
l.chomp!
@@ -132,8 +128,6 @@ def each_export(objs)
132128
next
133129
end
134130
yield l.strip, is_data
135-
else
136-
filetype = l[/^File Type: (.+)/, 1]
137131
end
138132
end
139133
yield "strcasecmp", "msvcrt.stricmp"

0 commit comments

Comments
 (0)