1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* win32/mkexports.rb (each_export): VC10 support.

a patch from Charlie Savage in [ruby-core:29254]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2010-04-05 04:09:45 +00:00
parent b847ca06bf
commit f1c86c1bb2
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Mon Apr 5 13:08:24 2010 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/mkexports.rb (each_export): VC10 support.
a patch from Charlie Savage in [ruby-core:29254]
Sun Apr 4 22:18:32 2010 Tanaka Akira <akr@fsij.org> Sun Apr 4 22:18:32 2010 Tanaka Akira <akr@fsij.org>
* time.c (cmp): optimize for fixnums. * time.c (cmp): optimize for fixnums.

View file

@ -110,7 +110,7 @@ class Exports::Mswin < Exports
next unless l.sub!(/.*?\s(\(\)\s+)?External\s+\|\s+/, '') next unless l.sub!(/.*?\s(\(\)\s+)?External\s+\|\s+/, '')
is_data = !$1 is_data = !$1
if noprefix or /^[@_]/ =~ l if noprefix or /^[@_]/ =~ l
next if /(?!^)@.*@/ =~ l || /@[[:xdigit:]]{16}$/ =~ l || /^_DllMain@/ =~ l next if /(?!^)@.*@/ =~ l || /@[[:xdigit:]]{8,16}$/ =~ l || /^_DllMain@/ =~ l
l.sub!(/^[@_]/, '') if /@\d+$/ !~ l l.sub!(/^[@_]/, '') if /@\d+$/ !~ l
elsif !l.sub!(/^(\S+) \([^@?\`\']*\)$/, '\1') elsif !l.sub!(/^(\S+) \([^@?\`\']*\)$/, '\1')
next next