mirror of
https://github.com/false-schemers/skint.git
synced 2024-12-27 21:58:53 +01:00
Update n.sf
This commit is contained in:
parent
8ad92fa9a7
commit
5855d7de78
1 changed files with 9 additions and 2 deletions
11
src/n.sf
11
src/n.sf
|
@ -3775,6 +3775,15 @@ static void wrdatum(obj o, wenv_t *e) {
|
||||||
wrc(')', e);
|
wrc(')', e);
|
||||||
} else if (isbox(o)) {
|
} else if (isbox(o)) {
|
||||||
wrs(\"#&\", e); o = boxref(o); goto tail;
|
wrs(\"#&\", e); o = boxref(o); goto tail;
|
||||||
|
} else if (istagged(o, 0)) {
|
||||||
|
int i, n = taggedlen(o, 0);
|
||||||
|
wrs(\"#<values\", e);
|
||||||
|
for (i = 0; i < n; ++i) {
|
||||||
|
wrc(' ', e); wrdatum(*taggedref(o, 0, i), e);
|
||||||
|
}
|
||||||
|
wrc('>', e);
|
||||||
|
} else if (isprocedure(o)) {
|
||||||
|
char buf[60]; sprintf(buf, \"#<procedure @%p>\", objptr_from_obj(o)); wrs(buf, e);
|
||||||
} else if (isrecord(o)) {
|
} else if (isrecord(o)) {
|
||||||
int i, n = recordlen(o);
|
int i, n = recordlen(o);
|
||||||
wrs(\"#<record \", e);
|
wrs(\"#<record \", e);
|
||||||
|
@ -3783,8 +3792,6 @@ static void wrdatum(obj o, wenv_t *e) {
|
||||||
wrc(' ', e); wrdatum(recordref(o, i), e);
|
wrc(' ', e); wrdatum(recordref(o, i), e);
|
||||||
}
|
}
|
||||||
wrc('>', e);
|
wrc('>', e);
|
||||||
} else if (isprocedure(o)) {
|
|
||||||
char buf[60]; sprintf(buf, \"#<procedure @%p>\", objptr_from_obj(o)); wrs(buf, e);
|
|
||||||
} else if (isvoid(o)) {
|
} else if (isvoid(o)) {
|
||||||
wrs(\"#<void>\", e);
|
wrs(\"#<void>\", e);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue