diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2018-11-04 22:10:15 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2018-11-04 22:10:15 -0800 |
commit | ce6ada3b340607177bec7cbfa2b5eaa47ebb07a4 (patch) | |
tree | 11808552fdee0ba62ba5555f2a1a6df280872aba /lib.c | |
parent | 44c8e70f810ad52b0f26f06147d5613ed1271900 (diff) | |
download | txr-ce6ada3b340607177bec7cbfa2b5eaa47ebb07a4.tar.gz txr-ce6ada3b340607177bec7cbfa2b5eaa47ebb07a4.tar.bz2 txr-ce6ada3b340607177bec7cbfa2b5eaa47ebb07a4.zip |
buffers: implement copy-buf.
* buf.c (copy_buf): New function.
(buf_init): Register copy-buf intrinsic.
* buf.h (copy_buf): Declared.
* lib.c (copy): Handle BUF via copy_buf.
* txr.1: Documented.
Diffstat (limited to 'lib.c')
-rw-r--r-- | lib.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -9939,6 +9939,8 @@ val copy(val seq) return copy_str(seq); case VEC: return copy_vec(seq); + case BUF: + return copy_buf(seq); case COBJ: if (seq->co.cls == hash_s) return copy_hash(seq); |