core: core:cdr: Support port type.

* src/mes.c (cdr_): Support port type.
* mes/module/mes/display.mes (display): Add space between fields.
This commit is contained in:
Jan Nieuwenhuizen 2018-10-15 12:28:02 +02:00
parent 3e5d775b3b
commit 2d882ee7bb
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273
2 changed files with 2 additions and 0 deletions

View file

@ -115,6 +115,7 @@
((port? x)
(display "#<port " port)
(display (core:cdr x) port)
(display " ")
(display (core:car x) port)
(display ">" port))
((variable? x)

View file

@ -447,6 +447,7 @@ cdr_ (SCM x)
{
return (TYPE (x) != TCHAR
&& TYPE (x) != TNUMBER
&& TYPE (x) != TPORT
&& (TYPE (CDR (x)) == TPAIR
|| TYPE (CDR (x)) == TREF
|| TYPE (CDR (x)) == TSPECIAL