Skip to content

Commit d3f86f8

Browse files
committed
merge revision(s) 13688:
* {bcc,win}32/mkexports.rb: explicit data. [ruby-list:44108] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 0cbba01 commit d3f86f8

File tree

4 files changed

+17
-6
lines changed

4 files changed

+17
-6
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Sun Jun 8 01:27:06 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
2+
3+
* {bcc,win}32/mkexports.rb: explicit data. [ruby-list:44108]
4+
15
Sun Jun 8 01:15:50 2008 GOTOU Yuuzou <gotoyuzo@notwork.org>
26

37
* lib/net/http.rb, lib/open-uri.rb: remove

bcc32/mkexports.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
ARGV.each do |obj|
88
IO.foreach("|tdump -q -oiPUBDEF -oiPUBD32 #{obj.tr('/', '\\')}") do |l|
99
next unless /(?:PUBDEF|PUBD32)/ =~ l
10-
SYM[$1] = true if /'(.*?)'/ =~ l
10+
SYM[$1] = !$2 if /'(.*?)'\s+Segment:\s+_(TEXT)?/ =~ l
1111
end
1212
end
1313

@@ -18,7 +18,10 @@
1818
exports << "Library " + $library
1919
end
2020
exports << "Description " + $description.dump if $description
21-
exports << "EXPORTS" << SYM.keys.sort
21+
exports << "EXPORTS"
22+
SYM.sort.each do |sym, is_data|
23+
exports << (is_data ? "#{sym} DATA" : sym)
24+
end
2225

2326
if $output
2427
open($output, 'w') {|f| f.puts exports.join("\n")}

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define RUBY_RELEASE_DATE "2008-06-08"
33
#define RUBY_VERSION_CODE 186
44
#define RUBY_RELEASE_CODE 20080608
5-
#define RUBY_PATCHLEVEL 130
5+
#define RUBY_PATCHLEVEL 131
66

77
#define RUBY_VERSION_MAJOR 1
88
#define RUBY_VERSION_MINOR 8

win32/mkexports.rb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@
77
objs = ARGV.collect {|s| s.tr('/', '\\')}
88
IO.foreach("|dumpbin -symbols " + objs.join(' ')) do |l|
99
next if /^[0-9A-F]+ 0+ UNDEF / =~ l
10-
next unless l.sub!(/.*\sExternal\s+\|\s+/, '')
10+
next unless l.sub!(/.*?\s(\(\)\s+)?External\s+\|\s+/, "")
11+
is_data = !$1
1112
if l.sub!(/^_/, '')
1213
next if /@.*@/ =~ l || /@[0-9a-f]{16}$/ =~ l
1314
elsif !l.sub!(/^(\S+) \([^@?\`\']*\)$/, '\1')
1415
next
1516
end
16-
SYM[l.strip] = true
17+
SYM[l.strip] = is_data
1718
end
1819

1920
exports = []
@@ -23,7 +24,10 @@
2324
exports << "Library " + $library
2425
end
2526
exports << "Description " + $description.dump if $description
26-
exports << "EXPORTS" << SYM.keys.sort
27+
exports << "EXPORTS"
28+
SYM.sort.each do |sym, is_data|
29+
exports << (is_data ? "#{sym} DATA" : sym)
30+
end
2731

2832
if $output
2933
open($output, 'w') {|f| f.puts exports.join("\n")}

0 commit comments

Comments
 (0)