diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-07 16:32:17 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-07 16:32:17 +0000 |
commit | b3ee04c74650f4bc4eec6c31f2a25baad0ea531e (patch) | |
tree | bea0f51e4ae140b439a15f496e605a0983bccc09 /bcc32 | |
parent | d3f86f8abb3101f5d1ec5cfec299f9c942820e8a (diff) |
merge revision(s) 13694:
* 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_6@16893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bcc32')
-rwxr-xr-x | bcc32/mkexports.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/bcc32/mkexports.rb b/bcc32/mkexports.rb index 3cc8e535df..dc523e2541 100755 --- a/bcc32/mkexports.rb +++ b/bcc32/mkexports.rb @@ -7,7 +7,7 @@ STDIN.reopen(open("nul")) ARGV.each do |obj| IO.foreach("|tdump -q -oiPUBDEF -oiPUBD32 #{obj.tr('/', '\\')}") do |l| next unless /(?:PUBDEF|PUBD32)/ =~ l - SYM[$1] = !$2 if /'(.*?)'\s+Segment:\s+_(TEXT)?/ =~ l + SYM[$1] = true if /'(.*?)'/ =~ l end end @@ -18,10 +18,7 @@ elsif $library exports << "Library " + $library end exports << "Description " + $description.dump if $description -exports << "EXPORTS" -SYM.sort.each do |sym, is_data| - exports << (is_data ? "#{sym} DATA" : sym) -end +exports << "EXPORTS" << SYM.keys.sort if $output open($output, 'w') {|f| f.puts exports.join("\n")} |