core: read_string: Prepare for M2-Planet.
* src/string.c (read_string): Prepare for M2-Planet.
This commit is contained in:
parent
058dfc74ea
commit
ca5140c714
|
@ -169,8 +169,9 @@ SCM
|
||||||
read_string (SCM port) /*:((arity . n)) */
|
read_string (SCM port) /*:((arity . n)) */
|
||||||
{
|
{
|
||||||
int fd = __stdin;
|
int fd = __stdin;
|
||||||
if (TYPE (port) == TPAIR && TYPE (car (port)) == TNUMBER)
|
if (TYPE (port) == TPAIR)
|
||||||
__stdin = VALUE (CAR (port));
|
if (TYPE (car (port)) == TNUMBER)
|
||||||
|
__stdin = VALUE (CAR (port));
|
||||||
int c = readchar ();
|
int c = readchar ();
|
||||||
size_t i = 0;
|
size_t i = 0;
|
||||||
while (c != -1)
|
while (c != -1)
|
||||||
|
|
Loading…
Reference in New Issue