summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-13 18:55:54 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-13 18:55:54 +0000
commitf31e0ec7fc9fa36f23078ee107c485364676bf8e (patch)
tree6176f7da97d977566380c34796f9b6fc6a379dfb /win32
parent0b95a09a71c8f296c68f87b9899d6bc0ae7ff63e (diff)
* win32/mkexports.rb: deal with __fastcall name decorations.
[ruby-list:44111] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rwxr-xr-xwin32/mkexports.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/win32/mkexports.rb b/win32/mkexports.rb
index 519ed3680e..092b349a22 100755
--- a/win32/mkexports.rb
+++ b/win32/mkexports.rb
@@ -9,8 +9,9 @@ IO.foreach("|dumpbin -symbols " + objs.join(' ')) do |l|
next if /^[0-9A-F]+ 0+ UNDEF / =~ l
next unless l.sub!(/.*?\s(\(\)\s+)?External\s+\|\s+/, "")
is_data = !$1
- if l.sub!(/^_(?!\w+@\d+$)/, '')
- next if /@.*@/ =~ l || /@[0-9a-f]{16}$/ =~ l
+ if /^[@_](?!\w+@\d+$)/ =~ l
+ next if /(?!^)@.*@/ =~ l || /@[0-9a-f]{16}$/ =~ l
+ l.sub!(/^[@_]/, '')
elsif !l.sub!(/^(\S+) \([^@?\`\']*\)$/, '\1')
next
end