diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-10-11 20:47:27 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-10-11 20:47:27 -0700 |
commit | aa02bc7f31edabb9e09f9756d7ae8fbc41995017 (patch) | |
tree | 60bd97475501b9c8484f3804a5ac5d409113d373 /stdlib/keyparams.tl | |
parent | 5df51b54116d4287df161c42ca0edb16fb1f79a5 (diff) | |
download | txr-aa02bc7f31edabb9e09f9756d7ae8fbc41995017.tar.gz txr-aa02bc7f31edabb9e09f9756d7ae8fbc41995017.tar.bz2 txr-aa02bc7f31edabb9e09f9756d7ae8fbc41995017.zip |
json: support standard-style formatting.
* stream.c (standard_k, print_json_format_s):
New symbol variables.
(stream_init): New variables initialized.
* stream.h (enum json_fmt): New enum.
(standard_k, print_json_format_s): Declared.
* lib.c (out_json_rec): Take enum json_fmt param,
and pass it recursively. Printing for vector and
dictionaries reacts to argument value.
(out_json, put_json): Examine value of special
var *print-json-format* and calculate enum json_fmt
value from this. Pass to out_json_rec.
* txr.1: Documented.
* stdlib/doc-syms.tl: Updated.
Diffstat (limited to 'stdlib/keyparams.tl')
0 files changed, 0 insertions, 0 deletions