core: read_char: Prepare for M2-Planet.
* src/posix.c (read_char): Prepare for M2-Planet.
This commit is contained in:
parent
9c099977a0
commit
2f0796cfb5
|
@ -116,7 +116,8 @@ SCM
|
|||
read_char (SCM port) /*:((arity . n)) */
|
||||
{
|
||||
int fd = __stdin;
|
||||
if (TYPE (port) == TPAIR && TYPE (car (port)) == TNUMBER)
|
||||
if (TYPE (port) == TPAIR)
|
||||
if (TYPE (CAR (port)) == TNUMBER)
|
||||
__stdin = VALUE (CAR (port));
|
||||
SCM c = make_char (readchar ());
|
||||
__stdin = fd;
|
||||
|
|
Loading…
Reference in a new issue