aboutsummaryrefslogtreecommitdiffstats
path: root/win32/mkexports.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-13 00:02:20 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-13 00:02:20 +0000
commitfc3e0bd5625c6869c9eae63179d37da207f8de30 (patch)
tree8e1498f09232361754d10c29fcc41a8eceb9f461 /win32/mkexports.rb
parent9f99bc463176fa2b0244b20af5eeb82b50eb3405 (diff)
downloadruby-fc3e0bd5625c6869c9eae63179d37da207f8de30.tar.gz
* {bcc,win}32/mkexports.rb: explicit data. [ruby-list:44108]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/mkexports.rb')
-rwxr-xr-xwin32/mkexports.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/win32/mkexports.rb b/win32/mkexports.rb
index 53a4a89c2d..e9a81345de 100755
--- a/win32/mkexports.rb
+++ b/win32/mkexports.rb
@@ -75,7 +75,7 @@ class Exports
end
def symbols()
- @syms.sort.collect {|k, v| v ? "#{k}=#{v}" : k}
+ @syms.sort.collect {|k, v| v ? v == true ? "#{k} DATA" : "#{k}=#{v}" : k}
end
end
@@ -90,7 +90,8 @@ class Exports::Mswin < Exports
case filetype
when /OBJECT/, /LIBRARY/
next if /^[[:xdigit:]]+ 0+ UNDEF / =~ l
- next unless l.sub!(/.*\sExternal\s+\|\s+/, '')
+ 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
@@ -102,7 +103,7 @@ class Exports::Mswin < Exports
else
next
end
- yield l.strip
+ yield l.strip, is_data
end
end
end