mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
merges r22718 from trunk into ruby_1_9_1.
-- * ext/dl/lib/dl/value.rb (DL::ValueUtil#wrap_arg): NULL for nil. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d763098c29
commit
34ffc19c66
3 changed files with 7 additions and 1 deletions
|
|
@ -1,3 +1,7 @@
|
|||
Tue Mar 3 15:05:19 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ext/dl/lib/dl/value.rb (DL::ValueUtil#wrap_arg): NULL for nil.
|
||||
|
||||
Tue Sep 8 08:32:30 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* test/dl/test_{cfunc,ptr}.rb: added tests from Aaron Patterson.
|
||||
|
|
|
|||
|
|
@ -48,6 +48,8 @@ module DL
|
|||
def wrap_arg(arg, ty, funcs, &block)
|
||||
funcs ||= []
|
||||
case arg
|
||||
when nil
|
||||
return 0
|
||||
when CPtr
|
||||
return arg.to_i
|
||||
when IO
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#define RUBY_VERSION "1.9.1"
|
||||
#define RUBY_PATCHLEVEL 317
|
||||
#define RUBY_PATCHLEVEL 318
|
||||
#define RUBY_VERSION_MAJOR 1
|
||||
#define RUBY_VERSION_MINOR 9
|
||||
#define RUBY_VERSION_TEENY 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue