mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* win32/mkexports.rb (Exports::Mswin#each_export): exclude Init_
and _threadptr_ functions, as well as mingw. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5afbff7bc2
commit
cb40b39a2f
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Aug 16 18:52:08 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* win32/mkexports.rb (Exports::Mswin#each_export): exclude Init_
|
||||
and _threadptr_ functions, as well as mingw.
|
||||
|
||||
Tue Aug 16 09:31:44 2011 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* ext/dl: Add documentation. Patch by Vincent Batts.
|
||||
|
|
|
@ -111,7 +111,8 @@ class Exports::Mswin < Exports
|
|||
next unless l.sub!(/.*?\s(\(\)\s+)?External\s+\|\s+/, '')
|
||||
is_data = !$1
|
||||
if noprefix or /^[@_]/ =~ l
|
||||
next if /(?!^)@.*@/ =~ l || /@[[:xdigit:]]{8,16}$/ =~ l || /^_DllMain@/ =~ l
|
||||
next if /(?!^)@.*@/ =~ l || /@[[:xdigit:]]{8,16}$/ =~ l ||
|
||||
/^_(?:Init_|.*_threadptr_|DllMain@)/ =~ l
|
||||
l.sub!(/^[@_]/, '') if /@\d+$/ !~ l
|
||||
elsif !l.sub!(/^(\S+) \([^@?\`\']*\)$/, '\1')
|
||||
next
|
||||
|
|
Loading…
Reference in a new issue