From 7be4c0a88d4aefe652a17e82f8b823a342809039 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 16 Nov 2024 22:46:26 +0900 Subject: [PATCH] mkexports.rb: Revert removed flip-flop This reverts commit 63ae1e3cb5d302e5229143c00152328166d26780. --- win32/mkexports.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/win32/mkexports.rb b/win32/mkexports.rb index dd0fbf6313..1a37c7ee91 100755 --- a/win32/mkexports.rb +++ b/win32/mkexports.rb @@ -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"