summaryrefslogtreecommitdiffstats
path: root/buf.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-06-15 21:48:49 -0700
committerKaz Kylheku <kaz@kylheku.com>2019-06-15 21:48:49 -0700
commitf301e8071b32552f8096286ae7c978ab9e79061c (patch)
tree706db4722d98dc283b7663ea58d93884596807c3 /buf.c
parent3f87793404053b98fe0f6a20fafaf7e841f23f71 (diff)
downloadtxr-f301e8071b32552f8096286ae7c978ab9e79061c.tar.gz
txr-f301e8071b32552f8096286ae7c978ab9e79061c.tar.bz2
txr-f301e8071b32552f8096286ae7c978ab9e79061c.zip
buffers: expose sub-buf and replace-buf.
* buf.c (buf_init): Intrinsics sub-buf and replace-buf registered. * txr.1: Documented.
Diffstat (limited to 'buf.c')
-rw-r--r--buf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/buf.c b/buf.c
index 506ac45a..910d7801 100644
--- a/buf.c
+++ b/buf.c
@@ -1075,6 +1075,8 @@ void buf_init(void)
reg_fun(intern(lit("length-buf"), user_package), func_n1(length_buf));
reg_fun(intern(lit("buf-alloc-size"), user_package), func_n1(buf_alloc_size));
reg_fun(intern(lit("copy-buf"), user_package), func_n1(copy_buf));
+ reg_fun(intern(lit("sub-buf"), user_package), func_n3(sub_buf));
+ reg_fun(intern(lit("replace-buf"), user_package), func_n4(replace_buf));
#if HAVE_I8
reg_fun(intern(lit("buf-put-i8"), user_package), func_n3(buf_put_i8));