summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-02-27 07:52:02 -0800
committerKaz Kylheku <kaz@kylheku.com>2014-02-27 07:52:02 -0800
commit73bcd69a66e50e08bace63cc2392803fd991f6f0 (patch)
tree29382e5ac47bddfe93d2b49e84d90c5d0fc27965 /eval.c
parent66858a6c861796b58b51cdc1f0a125621ec1b376 (diff)
downloadtxr-73bcd69a66e50e08bace63cc2392803fd991f6f0.tar.gz
txr-73bcd69a66e50e08bace63cc2392803fd991f6f0.tar.bz2
txr-73bcd69a66e50e08bace63cc2392803fd991f6f0.zip
* lib.c (copy): New function.
* lib.h (copy): Declared. * eval.c (eval_init): Registered copy function as intrinsic. * txr.1: Added missing documentation for length. Documented copy.
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index a1566c4c..9cb75aa7 100644
--- a/eval.c
+++ b/eval.c
@@ -3483,7 +3483,7 @@ void eval_init(void)
reg_fun(intern(lit("set-diff"), user_package), func_n4o(set_diff, 2));
reg_fun(intern(lit("length"), user_package), func_n1(length));
-
+ reg_fun(intern(lit("copy"), user_package), func_n1(copy));
reg_fun(intern(lit("sub"), user_package), func_n3o(sub, 1));
reg_fun(intern(lit("ref"), user_package), func_n2(ref));
reg_fun(intern(lit("refset"), user_package), func_n3(refset));