ruby-changes:8340
From: shugo <ko1@a...>
Date: Tue, 21 Oct 2008 13:31:32 +0900 (JST)
Subject: [ruby-changes:8340] Ruby:r19868 (trunk): * io.c, include/ruby/intern.h (rb_io_ascii8bit_binmode): externed.
shugo 2008-10-21 13:31:15 +0900 (Tue, 21 Oct 2008) New Revision: 19868 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19868 Log: * io.c, include/ruby/intern.h (rb_io_ascii8bit_binmode): externed. * ext/socket/socket.c (init_sock): use rb_io_ascii8bit_binmode() instead of rb_io_binmode(). Modified files: trunk/ChangeLog trunk/ext/socket/socket.c trunk/include/ruby/intern.h trunk/io.c Index: include/ruby/intern.h =================================================================== --- include/ruby/intern.h (revision 19867) +++ include/ruby/intern.h (revision 19868) @@ -382,6 +382,7 @@ VALUE rb_io_flush(VALUE); VALUE rb_io_eof(VALUE); VALUE rb_io_binmode(VALUE); +VALUE rb_io_ascii8bit_binmode(VALUE); VALUE rb_io_addstr(VALUE, VALUE); VALUE rb_io_printf(int, VALUE*, VALUE); VALUE rb_io_print(int, VALUE*, VALUE); Index: ChangeLog =================================================================== --- ChangeLog (revision 19867) +++ ChangeLog (revision 19868) @@ -1,3 +1,10 @@ +Tue Oct 21 13:28:42 2008 Shugo Maeda <shugo@r...> + + * io.c, include/ruby/intern.h (rb_io_ascii8bit_binmode): externed. + + * ext/socket/socket.c (init_sock): use rb_io_ascii8bit_binmode() + instead of rb_io_binmode(). + Tue Oct 21 13:17:39 2008 Yuki Sonoda (Yugui) <yugui@y...> * mdoc2man.rb: moved into tools/. Index: io.c =================================================================== --- io.c (revision 19867) +++ io.c (revision 19868) @@ -3514,7 +3514,7 @@ return io; } -static VALUE +VALUE rb_io_ascii8bit_binmode(VALUE io) { rb_io_t *fptr; Index: ext/socket/socket.c =================================================================== --- ext/socket/socket.c (revision 19867) +++ ext/socket/socket.c (revision 19868) @@ -241,7 +241,7 @@ MakeOpenFile(sock, fp); fp->fd = fd; fp->mode = FMODE_READWRITE|FMODE_DUPLEX; - rb_io_binmode(sock); + rb_io_ascii8bit_binmode(sock); if (do_not_reverse_lookup) { fp->mode |= FMODE_NOREVLOOKUP; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/