diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-06-15 21:48:49 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-06-15 21:48:49 -0700 |
commit | f301e8071b32552f8096286ae7c978ab9e79061c (patch) | |
tree | 706db4722d98dc283b7663ea58d93884596807c3 /buf.c | |
parent | 3f87793404053b98fe0f6a20fafaf7e841f23f71 (diff) | |
download | txr-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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)); |