summaryrefslogtreecommitdiffstats
path: root/struct.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2023-03-23 00:55:46 -0700
committerKaz Kylheku <kaz@kylheku.com>2023-03-23 00:55:46 -0700
commita6a74910fc4d02ffae4b9dcd76a8cd813e3170bf (patch)
tree162771f2a6561901078cc6cc12b88e5be3f4fecb /struct.c
parent80ba686bfe93ab165168456c54e6156b2616cac8 (diff)
downloadtxr-a6a74910fc4d02ffae4b9dcd76a8cd813e3170bf.tar.gz
txr-a6a74910fc4d02ffae4b9dcd76a8cd813e3170bf.tar.bz2
txr-a6a74910fc4d02ffae4b9dcd76a8cd813e3170bf.zip
printer: [] shouldn't print as [. nil].
* lib.c (obj_print_impl): In the case when dwim has no args, and the logic short circuits to a closing brace, bypassing the loop, we should only use the dot notation if the terminating atom is other than nil. * tests/012/readprint.tl: Tests added.
Diffstat (limited to 'struct.c')
0 files changed, 0 insertions, 0 deletions