ruby-changes:5390
From: shyouhei <ko1@a...>
Date: Sun, 8 Jun 2008 01:33:07 +0900 (JST)
Subject: [ruby-changes:5390] Ruby:r16893 (ruby_1_8_6): merge revision(s) 13694:
shyouhei 2008-06-08 01:32:17 +0900 (Sun, 08 Jun 2008) New Revision: 16893 Modified files: branches/ruby_1_8_6/ChangeLog branches/ruby_1_8_6/bcc32/mkexports.rb branches/ruby_1_8_6/version.h branches/ruby_1_8_6/win32/mkexports.rb Log: merge revision(s) 13694: * win32/mkexports.rb: deal with __fastcall name decorations. [ruby-list:44111] http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_6/ChangeLog?r1=16893&r2=16892&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_6/version.h?r1=16893&r2=16892&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_6/win32/mkexports.rb?r1=16893&r2=16892&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_6/bcc32/mkexports.rb?r1=16893&r2=16892&diff_format=u Index: ruby_1_8_6/ChangeLog =================================================================== --- ruby_1_8_6/ChangeLog (revision 16892) +++ ruby_1_8_6/ChangeLog (revision 16893) @@ -1,3 +1,8 @@ +Sun Jun 8 01:31:17 2008 Nobuyoshi Nakada <nobu@r...> + + * win32/mkexports.rb: deal with __fastcall name decorations. + [ruby-list:44111] + Sun Jun 8 01:27:06 2008 Nobuyoshi Nakada <nobu@r...> * {bcc,win}32/mkexports.rb: explicit data. [ruby-list:44108] Index: ruby_1_8_6/version.h =================================================================== --- ruby_1_8_6/version.h (revision 16892) +++ ruby_1_8_6/version.h (revision 16893) @@ -2,7 +2,7 @@ #define RUBY_RELEASE_DATE "2008-06-08" #define RUBY_VERSION_CODE 186 #define RUBY_RELEASE_CODE 20080608 -#define RUBY_PATCHLEVEL 131 +#define RUBY_PATCHLEVEL 132 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 8 Index: ruby_1_8_6/bcc32/mkexports.rb =================================================================== --- ruby_1_8_6/bcc32/mkexports.rb (revision 16892) +++ ruby_1_8_6/bcc32/mkexports.rb (revision 16893) @@ -7,7 +7,7 @@ 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 @@ 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")} Index: ruby_1_8_6/win32/mkexports.rb =================================================================== --- ruby_1_8_6/win32/mkexports.rb (revision 16892) +++ ruby_1_8_6/win32/mkexports.rb (revision 16893) @@ -9,8 +9,9 @@ next if /^[0-9A-F]+ 0+ UNDEF / =~ l next unless l.sub!(/.*?\s(\(\)\s+)?External\s+\|\s+/, "") is_data = !$1 - if l.sub!(/^_/, '') - next if /@.*@/ =~ l || /@[0-9a-f]{16}$/ =~ l + if /^[@_](?!\w+@\d+$)/ =~ l + next if /(?!^)@.*@/ =~ l || /@[0-9a-f]{16}$/ =~ l + l.sub!(/^[@_]/, '') elsif !l.sub!(/^(\S+) \([^@?\`\']*\)$/, '\1') next end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/