aboutsummaryrefslogtreecommitdiffstats
path: root/win32/mkexports.rb
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
commit5542fe44bd31d4e844c09a75256c64ec1a337831 (patch)
treec7907b17405801887c72d4e73ef6705771ab9a1f /win32/mkexports.rb
parentc7f751025944e61118e49a51634ccc71d4e7bd43 (diff)
downloadruby-5542fe44bd31d4e844c09a75256c64ec1a337831.tar.gz
* win32/mkexports.rb: deal with __fastcall name decorations.
[ruby-list:44111] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/mkexports.rb')
-rwxr-xr-xwin32/mkexports.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/win32/mkexports.rb b/win32/mkexports.rb
index e9a81345de..0c17466e09 100755
--- a/win32/mkexports.rb
+++ b/win32/mkexports.rb
@@ -92,9 +92,9 @@ class Exports::Mswin < Exports
next if /^[[:xdigit:]]+ 0+ UNDEF / =~ l
next unless l.sub!(/.*?\s(\(\)\s+)?External\s+\|\s+/, '')
is_data = !$1
- if noprefix or l.sub!(/^_/, '')
- next if /@.*@/ =~ l || /@[[:xdigit:]]{16}$/ =~ l
- l.sub!(/^/, '_') if /@\d+$/ =~ l
+ if noprefix or /^[@_]/ =~ l
+ next if /(?!^)@.*@/ =~ l || /@[[:xdigit:]]{16}$/ =~ l
+ l.sub!(/^[@_]/, '') if /@\d+$/ !~ l
elsif !l.sub!(/^(\S+) \([^@?\`\']*\)$/, '\1')
next
end