* ext/io/nonblock/nonblock.c: use rb_cIO instead of VALUE
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f928c326ca
commit
8ead78806c
@ -1,3 +1,7 @@
|
||||
Wed Oct 16 22:35:27 2013 Zachary Scott <e@zzak.io>
|
||||
|
||||
* ext/io/nonblock/nonblock.c: use rb_cIO instead of VALUE
|
||||
|
||||
Wed Oct 16 17:45:13 2013 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* bootstraptest/runner.rb: check nil before calling `signal?'
|
||||
|
@ -106,9 +106,7 @@ rb_io_nonblock_block(int argc, VALUE *argv, VALUE io)
|
||||
void
|
||||
Init_nonblock(void)
|
||||
{
|
||||
VALUE io = rb_cIO;
|
||||
|
||||
rb_define_method(io, "nonblock?", rb_io_nonblock_p, 0);
|
||||
rb_define_method(io, "nonblock=", rb_io_nonblock_set, 1);
|
||||
rb_define_method(io, "nonblock", rb_io_nonblock_block, -1);
|
||||
rb_define_method(rb_cIO, "nonblock?", rb_io_nonblock_p, 0);
|
||||
rb_define_method(rb_cIO, "nonblock=", rb_io_nonblock_set, 1);
|
||||
rb_define_method(rb_cIO, "nonblock", rb_io_nonblock_block, -1);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user