diff options
| author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-21 23:51:30 +0000 |
|---|---|---|
| committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-21 23:51:30 +0000 |
| commit | 66b06bc7866ac58960dfd7c2d1d0fd5368acbdfd (patch) | |
| tree | 870e4e9b2bcf36679baa432970df482793149178 | |
| parent | 057a5d7bf41cd9449a0562882e9f4f5d1113d82f (diff) | |
| download | ruby-66b06bc7866ac58960dfd7c2d1d0fd5368acbdfd.tar.gz ruby-66b06bc7866ac58960dfd7c2d1d0fd5368acbdfd.tar.xz ruby-66b06bc7866ac58960dfd7c2d1d0fd5368acbdfd.zip | |
* ext/dl/lib/dl/win32.rb: seems that dl doesn't accept void argument.
fixed [ruby-bugs:PR#5489].
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@13144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | ext/dl/lib/dl/win32.rb | 2 | ||||
| -rw-r--r-- | version.h | 2 |
3 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Wed Aug 22 08:51:20 2007 NAKAMURA Usaku <usa@ruby-lang.org> + + * ext/dl/lib/dl/win32.rb: seems that dl doesn't accept void argument. + fixed [ruby-bugs:PR#5489]. + Wed Aug 22 08:49:47 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> * configure.in (darwin): prohibit loading extension libraries to diff --git a/ext/dl/lib/dl/win32.rb b/ext/dl/lib/dl/win32.rb index 92f473d39..0fed47c32 100644 --- a/ext/dl/lib/dl/win32.rb +++ b/ext/dl/lib/dl/win32.rb @@ -6,7 +6,7 @@ class Win32API DLL = {} def initialize(dllname, func, import, export = "0") - prototype = (export + import.to_s).tr("VPpNnLlIi", "0SSI") + prototype = (export + import.to_s).tr("VPpNnLlIi", "0SSI").sub(/^(.)0*$/, '\1') handle = DLL[dllname] ||= DL::Handle.new(dllname) @sym = handle.sym(func, prototype) end @@ -2,7 +2,7 @@ #define RUBY_RELEASE_DATE "2007-08-22" #define RUBY_VERSION_CODE 186 #define RUBY_RELEASE_CODE 20070822 -#define RUBY_PATCHLEVEL 46 +#define RUBY_PATCHLEVEL 47 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 8 |
