mes: display: vector.

* src/lib.c (display_helper): Display vector.
This commit is contained in:
Jan Nieuwenhuizen 2018-01-12 18:24:42 +01:00
parent 63e8b49d9e
commit 3161f039b2

View file

@ -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);