ruby-changes:5132
From: knu <ko1@a...>
Date: Tue, 27 May 2008 13:49:36 +0900 (JST)
Subject: [ruby-changes:5132] Ruby:r16627 (ruby_1_8): * ext/stringio/stringio.c (Init_stringio): Define
knu 2008-05-27 13:49:17 +0900 (Tue, 27 May 2008) New Revision: 16627 Modified files: branches/ruby_1_8/ChangeLog branches/ruby_1_8/NEWS branches/ruby_1_8/ext/stringio/stringio.c Log: * ext/stringio/stringio.c (Init_stringio): Define StringIO#{getbyte,readbyte}. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ChangeLog?r1=16627&r2=16626&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ext/stringio/stringio.c?r1=16627&r2=16626&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/NEWS?r1=16627&r2=16626&diff_format=u Index: ruby_1_8/ext/stringio/stringio.c =================================================================== --- ruby_1_8/ext/stringio/stringio.c (revision 16626) +++ ruby_1_8/ext/stringio/stringio.c (revision 16627) @@ -1299,8 +1299,10 @@ rb_define_method(StringIO, "each_line", strio_each, -1); rb_define_method(StringIO, "lines", strio_each, -1); rb_define_method(StringIO, "getc", strio_getc, 0); + rb_define_method(StringIO, "getbyte", strio_getc, 0); rb_define_method(StringIO, "ungetc", strio_ungetc, 1); rb_define_method(StringIO, "readchar", strio_readchar, 0); + rb_define_method(StringIO, "readbyte", strio_readbyte, 0); rb_define_method(StringIO, "gets", strio_gets, -1); rb_define_method(StringIO, "readline", strio_readline, -1); rb_define_method(StringIO, "readlines", strio_readlines, -1); Index: ruby_1_8/NEWS =================================================================== --- ruby_1_8/NEWS (revision 16626) +++ ruby_1_8/NEWS (revision 16627) @@ -187,7 +187,7 @@ * ARGF.lines * ARGF.readbyte - New methods. + New methods. * Method#receiver * Method#name @@ -320,6 +320,14 @@ * Shellwords.split (alias shellwords) * String#shellsplit +* stringio + + * Add new methods. (aliases for compatibility with 1.9) + + * StringIO#getbyte + * StringIO#readbyte + + * tempfile * Tempfile.open and Tempfile.new now accept a suffix for the Index: ruby_1_8/ChangeLog =================================================================== --- ruby_1_8/ChangeLog (revision 16626) +++ ruby_1_8/ChangeLog (revision 16627) @@ -1,3 +1,8 @@ +Tue May 27 13:46:52 2008 Akinori MUSHA <knu@i...> + + * ext/stringio/stringio.c (Init_stringio): Define + StringIO#{getbyte,readbyte}. + Tue May 27 13:38:51 2008 Akinori MUSHA <knu@i...> * io.c (Init_IO): Define {IO,ARGF}#{getbyte,readbyte}. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/