mes: display: vector.
* src/lib.c (display_helper): Display vector.
This commit is contained in:
parent
63e8b49d9e
commit
3161f039b2
12
src/lib.c
12
src/lib.c
|
@ -113,6 +113,18 @@ display_helper (SCM x, int cont, char* sep, int fd, int write_p)
|
|||
if (write_p && TYPE (x) == TSTRING) fputc ('"', fd);
|
||||
break;
|
||||
}
|
||||
case TVECTOR:
|
||||
{
|
||||
fputs ("#(", fd);
|
||||
SCM t = CAR (x);
|
||||
for (int i = 0; i < LENGTH (x); i++)
|
||||
{
|
||||
if (i) fputc (' ', fd);
|
||||
fdisplay_ (VECTOR (x) + i, fd, write_p);
|
||||
}
|
||||
fputc (')', fd);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
fputs ("<", fd);
|
||||
|
|
Loading…
Reference in a new issue