summaryrefslogtreecommitdiff
path: root/bcc32
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-07 16:30:49 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-07 16:30:49 +0000
commitbf96b999c05a65ad3d4100d5055b702c5ae30138 (patch)
tree0a3f214a042acb6d91cfce6e8e1af24c886560a8 /bcc32
parentefa1e84e252842ac0b1dc4c78f4f6c6177e63604 (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_5@16891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bcc32')
-rw-r--r--bcc32/mkexports.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/bcc32/mkexports.rb b/bcc32/mkexports.rb
index d24efe4da4..e34b441e2f 100644
--- a/bcc32/mkexports.rb
+++ b/bcc32/mkexports.rb
@@ -5,7 +5,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
@@ -16,10 +16,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")}