* 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().


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
shugo 2008-10-21 04:31:15 +00:00
parent 89dfcd82f0
commit d423b884b8
4 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,10 @@
Tue Oct 21 13:28:42 2008 Shugo Maeda <shugo@ruby-lang.org>
* 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@yugui.jp>
* mdoc2man.rb: moved into tools/.

View File

@ -241,7 +241,7 @@ init_sock(VALUE sock, int fd)
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;
}

View File

@ -382,6 +382,7 @@ VALUE rb_io_close(VALUE);
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);

2
io.c
View File

@ -3514,7 +3514,7 @@ rb_io_binmode(VALUE io)
return io;
}
static VALUE
VALUE
rb_io_ascii8bit_binmode(VALUE io)
{
rb_io_t *fptr;