summaryrefslogtreecommitdiffstats
path: root/win32/mkexports.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-27 05:41:38 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-27 05:41:38 +0000
commitef4b4aaa715d9ad76d3d59d16dc37d3fcadaacb8 (patch)
tree69b226645215d2c14766c63747fbaa713ce0c69c /win32/mkexports.rb
parentd28366a8e65aac8c7f9054b3562468a15c2975b0 (diff)
downloadruby-ef4b4aaa715d9ad76d3d59d16dc37d3fcadaacb8.tar.gz
ruby-ef4b4aaa715d9ad76d3d59d16dc37d3fcadaacb8.tar.xz
ruby-ef4b4aaa715d9ad76d3d59d16dc37d3fcadaacb8.zip
* cygwin/GNUmakefile.in (RUBYDEF): needs DATA marks to export
non-function symbols. [ruby-core:21582] * win32/mkexports.rb (Exports::Mingw#each_export): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/mkexports.rb')
-rwxr-xr-xwin32/mkexports.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/mkexports.rb b/win32/mkexports.rb
index 966b602f9..4d7eeb57e 100755
--- a/win32/mkexports.rb
+++ b/win32/mkexports.rb
@@ -143,7 +143,7 @@ class Exports::Mingw < Exports
def each_export(objs)
objdump(objs) do |l|
- yield $1 if / [[:upper:]] _((?!Init_).*)$/ =~ l
+ yield $2, !$1 if /\s(?:(T)|[[:upper:]])\s_((?!Init_).*)$/ =~ l
end
yield "strcasecmp", "_stricmp"
yield "strncasecmp", "_strnicmp"