diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-10 03:06:15 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-10 03:06:15 +0000 |
commit | 8b218e7c33f5cfaba2e9292a46d3bdd919efff30 (patch) | |
tree | 642a6c82599486537c3136f32cac7a644c4bf4a3 /win32/mkexports.rb | |
parent | f5ed50e7f01723ad77a27501d66bca219d8810a9 (diff) | |
download | ruby-8b218e7c33f5cfaba2e9292a46d3bdd919efff30.tar.gz ruby-8b218e7c33f5cfaba2e9292a46d3bdd919efff30.tar.xz ruby-8b218e7c33f5cfaba2e9292a46d3bdd919efff30.zip |
* include/ruby: moved public headers.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/mkexports.rb')
-rwxr-xr-x | win32/mkexports.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/mkexports.rb b/win32/mkexports.rb index 2fe867eb1..7ef12cdff 100755 --- a/win32/mkexports.rb +++ b/win32/mkexports.rb @@ -40,7 +40,7 @@ class Exports syms[internal] = export winapis[$1] = internal if /^_?(rb_w32_\w+)(?:@\d+)?$/ =~ internal end - win32h = File.join(File.dirname(__FILE__), "win32.h") + win32h = File.join(File.dirname(File.dirname(__FILE__)), "include/ruby/win32.h") IO.foreach(win32h) do |line| if /^#define (\w+)\((.*?)\)\s+(?:\(void\))?(rb_w32_\w+)\((.*?)\)\s*$/ =~ line and $2.delete(" ") == $4.delete(" ") @@ -80,7 +80,7 @@ end class Exports::Mswin < Exports def each_export(objs) - noprefix = ($arch and /^sh/ !~ $arch) + noprefix = ($arch ||= nil and /^sh/ !~ $arch) objs = objs.collect {|s| s.tr('/', '\\')} filetype = nil IO.popen(%w"dumpbin -symbols -exports" + objs) do |f| |