diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-06-03 07:57:14 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-06-03 07:57:14 -0700 |
commit | a912f9ffc035bb0b308c01e2dc512bf5ff6ccc37 (patch) | |
tree | e4939889a701c88ba5268298f2a9da9876198e49 | |
parent | 3acf0e42fa1e6a1616762323ea7efcd748ad4435 (diff) | |
download | txr-a912f9ffc035bb0b308c01e2dc512bf5ff6ccc37.tar.gz txr-a912f9ffc035bb0b308c01e2dc512bf5ff6ccc37.tar.bz2 txr-a912f9ffc035bb0b308c01e2dc512bf5ff6ccc37.zip |
lib: oversight, neglected struct literal printing.
* lib.c (obj_print_impl): print (sys:struct-lit ...)
syntax as #S(...).
-rw-r--r-- | lib.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -12936,6 +12936,9 @@ val obj_print_impl(val obj, val out, val pretty, struct strm_ctx *ctx) } else if (sym == hash_lit_s) { put_string(lit("#H"), out); obj_print_impl(rest(obj), out, pretty, ctx); + } else if (sym == struct_lit_s) { + put_string(lit("#S"), out); + obj_print_impl(rest(obj), out, pretty, ctx); } else if (sym == json_s && have_args && consp(cdr(args)) && nilp(cddr(args))) { |