mirror of
https://github.com/ruby/ruby.git
synced 2025-09-20 19:14:00 +02:00
* 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:
parent
89dfcd82f0
commit
d423b884b8
4 changed files with 10 additions and 2 deletions
|
@ -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>
|
Tue Oct 21 13:17:39 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
|
||||||
|
|
||||||
* mdoc2man.rb: moved into tools/.
|
* mdoc2man.rb: moved into tools/.
|
||||||
|
|
|
@ -241,7 +241,7 @@ init_sock(VALUE sock, int fd)
|
||||||
MakeOpenFile(sock, fp);
|
MakeOpenFile(sock, fp);
|
||||||
fp->fd = fd;
|
fp->fd = fd;
|
||||||
fp->mode = FMODE_READWRITE|FMODE_DUPLEX;
|
fp->mode = FMODE_READWRITE|FMODE_DUPLEX;
|
||||||
rb_io_binmode(sock);
|
rb_io_ascii8bit_binmode(sock);
|
||||||
if (do_not_reverse_lookup) {
|
if (do_not_reverse_lookup) {
|
||||||
fp->mode |= FMODE_NOREVLOOKUP;
|
fp->mode |= FMODE_NOREVLOOKUP;
|
||||||
}
|
}
|
||||||
|
|
|
@ -382,6 +382,7 @@ VALUE rb_io_close(VALUE);
|
||||||
VALUE rb_io_flush(VALUE);
|
VALUE rb_io_flush(VALUE);
|
||||||
VALUE rb_io_eof(VALUE);
|
VALUE rb_io_eof(VALUE);
|
||||||
VALUE rb_io_binmode(VALUE);
|
VALUE rb_io_binmode(VALUE);
|
||||||
|
VALUE rb_io_ascii8bit_binmode(VALUE);
|
||||||
VALUE rb_io_addstr(VALUE, VALUE);
|
VALUE rb_io_addstr(VALUE, VALUE);
|
||||||
VALUE rb_io_printf(int, VALUE*, VALUE);
|
VALUE rb_io_printf(int, VALUE*, VALUE);
|
||||||
VALUE rb_io_print(int, VALUE*, VALUE);
|
VALUE rb_io_print(int, VALUE*, VALUE);
|
||||||
|
|
2
io.c
2
io.c
|
@ -3514,7 +3514,7 @@ rb_io_binmode(VALUE io)
|
||||||
return io;
|
return io;
|
||||||
}
|
}
|
||||||
|
|
||||||
static VALUE
|
VALUE
|
||||||
rb_io_ascii8bit_binmode(VALUE io)
|
rb_io_ascii8bit_binmode(VALUE io)
|
||||||
{
|
{
|
||||||
rb_io_t *fptr;
|
rb_io_t *fptr;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue