mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 13:49:17 +02:00
Writing nicer type names.
This commit is contained in:
parent
5a7a0bed5f
commit
00f71d9bd5
1 changed files with 4 additions and 1 deletions
5
sexp.c
5
sexp.c
|
@ -1930,7 +1930,10 @@ sexp sexp_write_one (sexp ctx, sexp obj, sexp out) {
|
||||||
} else {
|
} else {
|
||||||
#endif
|
#endif
|
||||||
sexp_write_string(ctx, "#<", out);
|
sexp_write_string(ctx, "#<", out);
|
||||||
sexp_write(ctx, sexp_type_name(x), out);
|
if (sexp_stringp(sexp_type_name(x)))
|
||||||
|
sexp_write_string(ctx, sexp_string_data(sexp_type_name(x)), out);
|
||||||
|
else
|
||||||
|
sexp_write(ctx, sexp_type_name(x), out);
|
||||||
sexp_write_char(ctx, '>', out);
|
sexp_write_char(ctx, '>', out);
|
||||||
#if SEXP_USE_TYPE_PRINTERS
|
#if SEXP_USE_TYPE_PRINTERS
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue