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

ruby-changes:9963

From: nobu <ko1@a...>
Date: Wed, 14 Jan 2009 12:40:18 +0900 (JST)
Subject: [ruby-changes:9963] Ruby:r21504 (trunk): * io.c (rb_io_wait_readable, rb_io_wait_writable): need rb_fd_ptr.

nobu	2009-01-14 12:39:20 +0900 (Wed, 14 Jan 2009)

  New Revision: 21504

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

  Log:
    * io.c (rb_io_wait_readable, rb_io_wait_writable): need rb_fd_ptr.

  Modified files:
    trunk/ChangeLog
    trunk/io.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 21503)
+++ ChangeLog	(revision 21504)
@@ -1,5 +1,7 @@
-Wed Jan 14 12:38:02 2009  Nobuyoshi Nakada  <nobu@r...>
+Wed Jan 14 12:39:16 2009  Nobuyoshi Nakada  <nobu@r...>
 
+	* io.c (rb_io_wait_readable, rb_io_wait_writable): need rb_fd_ptr.
+
 	* io.c (appendline): reformed.
 
 	* io.c (rb_io_s_pipe): reduced nest of rb_ensure of main block.
Index: io.c
===================================================================
--- io.c	(revision 21503)
+++ io.c	(revision 21504)
@@ -630,7 +630,7 @@
 	rb_ensure(wait_readable, (VALUE)&rfds,
 		  (VALUE (*)(VALUE))rb_fd_term, (VALUE)&rfds);
 #else
-	rb_thread_select(f + 1, &rfds, NULL, NULL, NULL);
+	rb_thread_select(f + 1, rb_fd_ptr(&rfds), NULL, NULL, NULL);
 #endif
 	return Qtrue;
 
@@ -675,7 +675,7 @@
 	rb_ensure(wait_writable, (VALUE)&wfds,
 		  (VALUE (*)(VALUE))rb_fd_term, (VALUE)&wfds);
 #else
-	rb_thread_select(f + 1, NULL, &wfds, NULL, NULL);
+	rb_thread_select(f + 1, NULL, rb_fd_ptr(&wfds), NULL, NULL);
 #endif
 	return Qtrue;
 

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

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