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

ruby-changes:28858

From: nobu <ko1@a...>
Date: Fri, 24 May 2013 15:54:27 +0900 (JST)
Subject: [ruby-changes:28858] nobu:r40910 (trunk): rename generic io modules

nobu	2013-05-24 15:54:17 +0900 (Fri, 24 May 2013)

  New Revision: 40910

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

  Log:
    rename generic io modules
    
    * ext/io/console/console.c, ext/stringio/stringio.c: rename internally
      used modules as generic_readable and generic_writable.  [Fix GH-315]

  Modified files:
    trunk/ext/io/console/console.c
    trunk/ext/stringio/stringio.c

Index: ext/stringio/stringio.c
===================================================================
--- ext/stringio/stringio.c	(revision 40909)
+++ ext/stringio/stringio.c	(revision 40910)
@@ -1536,7 +1536,7 @@ Init_stringio() https://github.com/ruby/ruby/blob/trunk/ext/stringio/stringio.c#L1536
     rb_define_method(StringIO, "set_encoding", strio_set_encoding, -1);
 
     {
-	VALUE mReadable = rb_define_module_under(rb_cIO, "readable");
+	VALUE mReadable = rb_define_module_under(rb_cIO, "generic_readable");
 	rb_define_method(mReadable, "readchar", strio_readchar, 0);
 	rb_define_method(mReadable, "readbyte", strio_readbyte, 0);
 	rb_define_method(mReadable, "readline", strio_readline, -1);
@@ -1546,7 +1546,7 @@ Init_stringio() https://github.com/ruby/ruby/blob/trunk/ext/stringio/stringio.c#L1546
 	rb_include_module(StringIO, mReadable);
     }
     {
-	VALUE mWritable = rb_define_module_under(rb_cIO, "writable");
+	VALUE mWritable = rb_define_module_under(rb_cIO, "generic_writable");
 	rb_define_method(mWritable, "<<", strio_addstr, 1);
 	rb_define_method(mWritable, "print", strio_print, -1);
 	rb_define_method(mWritable, "printf", strio_printf, -1);
Index: ext/io/console/console.c
===================================================================
--- ext/io/console/console.c	(revision 40909)
+++ ext/io/console/console.c	(revision 40910)
@@ -803,7 +803,7 @@ InitVM_console(void) https://github.com/ruby/ruby/blob/trunk/ext/io/console/console.c#L803
     rb_define_method(rb_cIO, "ioflush", console_ioflush, 0);
     rb_define_singleton_method(rb_cIO, "console", console_dev, 0);
     {
-	VALUE mReadable = rb_define_module_under(rb_cIO, "readable");
+	VALUE mReadable = rb_define_module_under(rb_cIO, "generic_readable");
 	rb_define_method(mReadable, "getch", io_getch, -1);
     }
 }

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

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