diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-06-15 22:29:09 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-06-15 22:29:09 -0700 |
commit | 74c61cc4ee63bbca2cf202eba531c1d388829e5b (patch) | |
tree | c6c8390ab876c6a224b8dc2a63b4b9e122ec4318 /lib.c | |
parent | e227120527ab35fa9a8c5356296bb799f62d0c86 (diff) | |
download | txr-74c61cc4ee63bbca2cf202eba531c1d388829e5b.tar.gz txr-74c61cc4ee63bbca2cf202eba531c1d388829e5b.tar.bz2 txr-74c61cc4ee63bbca2cf202eba531c1d388829e5b.zip |
ffi: copy-carray, hooked into copy.
* ffi.c (copy_carray): New function
(ffi_init): Register copy-carray intrinsic.
* ffi.h (copy_carray): Declared.
* lib.c (copy): Call copy_array for carray objects.
* txr.1: Documented copy-carray and updated
copy description.
Diffstat (limited to 'lib.c')
-rw-r--r-- | lib.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -9131,6 +9131,8 @@ val copy(val seq) return copy_hash(seq); if (seq->co.cls == random_state_s) return make_random_state(seq, nil); + if (seq->co.cls == carray_s) + return copy_carray(seq); if (structp(seq)) return copy_struct(seq); /* fallthrough */ |