File tree Expand file tree Collapse file tree 4 files changed +17
-6
lines changed Expand file tree Collapse file tree 4 files changed +17
-6
lines changed Original file line number Diff line number Diff line change
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
+
1
5
Sun Jun 8 01:15:50 2008 GOTOU Yuuzou <gotoyuzo@notwork.org>
2
6
3
7
* lib/net/http.rb, lib/open-uri.rb: remove
Original file line number Diff line number Diff line change 7
7
ARGV . each do |obj |
8
8
IO . foreach ( "|tdump -q -oiPUBDEF -oiPUBD32 #{ obj . tr ( '/' , '\\' ) } " ) do |l |
9
9
next unless /(?:PUBDEF|PUBD32)/ =~ l
10
- SYM [ $1] = true if /'(.*?)'/ =~ l
10
+ SYM [ $1] = !$2 if /'(.*?)'\s +Segment: \s +_(TEXT)? / =~ l
11
11
end
12
12
end
13
13
18
18
exports << "Library " + $library
19
19
end
20
20
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
22
25
23
26
if $output
24
27
open ( $output, 'w' ) { |f | f . puts exports . join ( "\n " ) }
Original file line number Diff line number Diff line change 2
2
#define RUBY_RELEASE_DATE "2008-06-08"
3
3
#define RUBY_VERSION_CODE 186
4
4
#define RUBY_RELEASE_CODE 20080608
5
- #define RUBY_PATCHLEVEL 130
5
+ #define RUBY_PATCHLEVEL 131
6
6
7
7
#define RUBY_VERSION_MAJOR 1
8
8
#define RUBY_VERSION_MINOR 8
Original file line number Diff line number Diff line change 7
7
objs = ARGV . collect { |s | s . tr ( '/' , '\\' ) }
8
8
IO . foreach ( "|dumpbin -symbols " + objs . join ( ' ' ) ) do |l |
9
9
next if /^[0-9A-F]+ 0+ UNDEF / =~ l
10
- next unless l . sub! ( /.*\s External\s +\| \s +/ , '' )
10
+ next unless l . sub! ( /.*?\s (\( \) \s +)?External\s +\| \s +/ , "" )
11
+ is_data = !$1
11
12
if l . sub! ( /^_/ , '' )
12
13
next if /@.*@/ =~ l || /@[0-9a-f]{16}$/ =~ l
13
14
elsif !l . sub! ( /^(\S +) \( [^@?\` \' ]*\) $/ , '\1' )
14
15
next
15
16
end
16
- SYM [ l . strip ] = true
17
+ SYM [ l . strip ] = is_data
17
18
end
18
19
19
20
exports = [ ]
23
24
exports << "Library " + $library
24
25
end
25
26
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
27
31
28
32
if $output
29
33
open ( $output, 'w' ) { |f | f . puts exports . join ( "\n " ) }
You can’t perform that action at this time.
0 commit comments