summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-02-06 01:12:00 -0800
committerKaz Kylheku <kaz@kylheku.com>2014-02-06 01:12:00 -0800
commit7c2620a23a37fde4ef890acb444c4fbadf77dd33 (patch)
tree329dc419df7a98f2632a2ccd89a7b9736a253d24 /eval.c
parent6a63a6b32065f6a5839571b378605f875f9c5240 (diff)
downloadtxr-7c2620a23a37fde4ef890acb444c4fbadf77dd33.tar.gz
txr-7c2620a23a37fde4ef890acb444c4fbadf77dd33.tar.bz2
txr-7c2620a23a37fde4ef890acb444c4fbadf77dd33.zip
* hash.c (hash_grow, make_hash, make_similar_hash, copy_hash):
Pass second argument to vector. * lib.c (vector): Takes additional argument specifying the value for the slots of the vector. (vector_list, sub_vec): Pass second argument to vector. * lib.h (vector): Declaration updated. * eval.c (eval_init): Register vector as two-argument function with one required arg. * txr.1: Updated.
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 c469adf4..613463c1 100644
--- a/eval.c
+++ b/eval.c
@@ -2655,7 +2655,7 @@ void eval_init(void)
reg_fun(intern(lit("length-str-<"), user_package), func_n2(length_str_lt));
reg_fun(intern(lit("length-str-<="), user_package), func_n2(length_str_le));
- reg_fun(intern(lit("vector"), user_package), func_n1(vector));
+ reg_fun(intern(lit("vector"), user_package), func_n2o(vector, 1));
reg_fun(intern(lit("vec"), user_package), func_n0v(vector_list));
reg_fun(intern(lit("vectorp"), user_package), func_n1(vectorp));
reg_fun(intern(lit("vec-set-length"), user_package), func_n2(vec_set_length));