summaryrefslogtreecommitdiffstats
path: root/buf.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-02-16 09:37:02 -0800
committerKaz Kylheku <kaz@kylheku.com>2019-02-16 09:37:02 -0800
commit70ced4b3ae240e4f33d26196ec1df8b6e8d0ae9b (patch)
tree626e08a45d2757cb8cc34bc1f6cf967ee15e1d30 /buf.h
parenta6c72d88711c2fc537c6f8ca205a5fd2675d8952 (diff)
downloadtxr-70ced4b3ae240e4f33d26196ec1df8b6e8d0ae9b.tar.gz
txr-70ced4b3ae240e4f33d26196ec1df8b6e8d0ae9b.tar.bz2
txr-70ced4b3ae240e4f33d26196ec1df8b6e8d0ae9b.zip
buf-alloc-size: new function.
* buf.c (buf_alloc_size): New function. (buf_init): buf-alloc-size intrinsic registered. * buf.h (buf_alloc_size): Declared. * txr.1: Documented.
Diffstat (limited to 'buf.h')
-rw-r--r--buf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/buf.h b/buf.h
index 18641cfb..60004112 100644
--- a/buf.h
+++ b/buf.h
@@ -34,6 +34,7 @@ val copy_buf(val buf);
val buf_trim(val buf);
val buf_set_length(val obj, val len, val init_val);
val length_buf(val buf);
+val buf_alloc_size(val buf);
mem_t *buf_get(val buf, val self);
void buf_fill(val buf, mem_t *src, val self);