summaryrefslogtreecommitdiffstats
path: root/match.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-05-29 13:03:47 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-05-29 13:03:47 -0700
commitab99601555d48297af0897c022a8288283318100 (patch)
tree6ea988e2530fc51b731cb66df0283c51645e3aff /match.c
parent12800700f93639c259757f0f9def1546d215ee95 (diff)
downloadtxr-ab99601555d48297af0897c022a8288283318100.tar.gz
txr-ab99601555d48297af0897c022a8288283318100.tar.bz2
txr-ab99601555d48297af0897c022a8288283318100.zip
json: functions put-json and put-jsonl.
* eval.c (eval_init): Register put-json and put-jsonl intrinsics. * lib.c (out_json_str): Do not output the U+DC01 to U+DCFF code points by masking them and using put_byte. This is unnecessary; if we just send them as-is to the text stream, the UTF-8 encoder does that for us. (put_json, put_jsonl): New functions. * lib.h (put_json, put_jsonl): Declared. * txr.1: Documented. The bulk of tojson is moved under the descriptions of these new functions, and elsewhere where the document pointed to tojson for more information, it now points to put-json. More detailed description of character treatment is given. * share/txr/stdlib/doc-syms.tl: Updated.
Diffstat (limited to 'match.c')
0 files changed, 0 insertions, 0 deletions