diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2023-03-23 01:08:30 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2023-03-23 01:08:30 -0700 |
commit | 32ebbda6077e68f3633171a43130dd0194123d6d (patch) | |
tree | b17201577e1ef5aaec62da6c0d1a41dec00946bc | |
parent | a6a74910fc4d02ffae4b9dcd76a8cd813e3170bf (diff) | |
download | txr-32ebbda6077e68f3633171a43130dd0194123d6d.tar.gz txr-32ebbda6077e68f3633171a43130dd0194123d6d.tar.bz2 txr-32ebbda6077e68f3633171a43130dd0194123d6d.zip |
printer: print tree as #T(...) beyond max depth.
* lib.c (obj_print_impl): For consistenfcy with other
aggregates---lists, vectors and hashes---when the maximum
depth has been exceeded we should likewise print binary
search tree objects as #T(...).
-rw-r--r-- | lib.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -14211,6 +14211,9 @@ val obj_print_impl(val obj, val out, val pretty, struct strm_ctx *ctx) } else if (structp(obj)) { put_string(lit("#S(...)"), out); return obj; + } else if (treep(obj)) { + put_string(lit("#T(...)"), out); + return obj; } default: break; |