[前][次][番号順一覧][スレッド一覧]

ruby-changes:31227

From: zzak <ko1@a...>
Date: Wed, 16 Oct 2013 22:36:27 +0900 (JST)
Subject: [ruby-changes:31227] zzak:r43306 (trunk): * ext/io/nonblock/nonblock.c: use rb_cIO instead of VALUE

zzak	2013-10-16 22:36:19 +0900 (Wed, 16 Oct 2013)

  New Revision: 43306

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43306

  Log:
    * ext/io/nonblock/nonblock.c: use rb_cIO instead of VALUE

  Modified files:
    trunk/ChangeLog
    trunk/ext/io/nonblock/nonblock.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 43305)
+++ ChangeLog	(revision 43306)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Oct 16 22:35:27 2013  Zachary Scott  <e@z...>
+
+	* ext/io/nonblock/nonblock.c: use rb_cIO instead of VALUE
+
 Wed Oct 16 17:45:13 2013  Koichi Sasada  <ko1@a...>
 
 	* bootstraptest/runner.rb: check nil before calling `signal?'
Index: ext/io/nonblock/nonblock.c
===================================================================
--- ext/io/nonblock/nonblock.c	(revision 43305)
+++ ext/io/nonblock/nonblock.c	(revision 43306)
@@ -106,9 +106,7 @@ rb_io_nonblock_block(int argc, VALUE *ar https://github.com/ruby/ruby/blob/trunk/ext/io/nonblock/nonblock.c#L106
 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);
 }

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]