* ext/io/console/console.c (console_set_echo, console_echo_p): use
primary fd. [ruby-dev:41309] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
483ef372b1
commit
552243aa15
@ -1,3 +1,8 @@
|
|||||||
|
Thu May 13 17:56:07 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/io/console/console.c (console_set_echo, console_echo_p): use
|
||||||
|
primary fd. [ruby-dev:41309]
|
||||||
|
|
||||||
Thu May 13 13:30:05 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Thu May 13 13:30:05 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* marshal.c (w_float): use minimal representation.
|
* marshal.c (w_float): use minimal representation.
|
||||||
|
@ -315,7 +315,7 @@ console_set_echo(VALUE io, VALUE f)
|
|||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
GetOpenFile(io, fptr);
|
GetOpenFile(io, fptr);
|
||||||
fd = GetWriteFD(fptr);
|
fd = GetReadFD(fptr);
|
||||||
if (!getattr(fd, &t)) rb_sys_fail(0);
|
if (!getattr(fd, &t)) rb_sys_fail(0);
|
||||||
if (RTEST(f))
|
if (RTEST(f))
|
||||||
set_echo(&t);
|
set_echo(&t);
|
||||||
@ -339,7 +339,7 @@ console_echo_p(VALUE io)
|
|||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
GetOpenFile(io, fptr);
|
GetOpenFile(io, fptr);
|
||||||
fd = GetWriteFD(fptr);
|
fd = GetReadFD(fptr);
|
||||||
if (!getattr(fd, &t)) rb_sys_fail(0);
|
if (!getattr(fd, &t)) rb_sys_fail(0);
|
||||||
return echo_p(&t) ? Qtrue : Qfalse;
|
return echo_p(&t) ? Qtrue : Qfalse;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user