summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-06-21 06:37:50 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-06-21 06:37:50 -0700
commitff2df257b64111213fd94028d2f18b75ebdee003 (patch)
tree45cf0a063bfc829c6e619fb8482a215f4884f2ed /eval.c
parent4605d81ba9ef004e1a0e660ccd5d42717c4c6523 (diff)
downloadtxr-ff2df257b64111213fd94028d2f18b75ebdee003.tar.gz
txr-ff2df257b64111213fd94028d2f18b75ebdee003.tar.bz2
txr-ff2df257b64111213fd94028d2f18b75ebdee003.zip
Dubious new functions cxr/cyr.
* lib.c (cxr, cyr): New functions. * lib.h (cxr, cyr): Declared. * eval.c (eval_init): Intrinsics cxr and cyr registered. * tests/012/cadr.tl: New file. * txr.1: Documented. * share/txr/stdlib/doc-syms.tl: Updated.
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index bdbec0be..23579af3 100644
--- a/eval.c
+++ b/eval.c
@@ -6740,6 +6740,8 @@ void eval_init(void)
reg_fun(intern(lit("eighth"), user_package), func_n1(eighth));
reg_fun(intern(lit("ninth"), user_package), func_n1(ninth));
reg_fun(intern(lit("tenth"), user_package), func_n1(tenth));
+ reg_fun(intern(lit("cxr"), user_package), func_n2(cxr));
+ reg_fun(intern(lit("cyr"), user_package), func_n2(cyr));
reg_fun(intern(lit("conses"), user_package), func_n1(conses));
reg_fun(intern(lit("conses*"), user_package), func_n1(lazy_conses));
reg_fun(intern(lit("copy-list"), user_package), func_n1(copy_list));