diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-04-06 00:57:24 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-04-06 00:57:24 -0700 |
commit | c5acd13409cca8f95b7a921efc12ad8833713ffe (patch) | |
tree | ef9779d7283bf68f3531e2dc0402f18cdfd267be /lib.h | |
parent | 064d4cd974f5e54cb310838eb25e36a6bf83d24d (diff) | |
download | txr-c5acd13409cca8f95b7a921efc12ad8833713ffe.tar.gz txr-c5acd13409cca8f95b7a921efc12ad8833713ffe.tar.bz2 txr-c5acd13409cca8f95b7a921efc12ad8833713ffe.zip |
New function: cptr-size-hint.
* eval.c (eval_init): Register cptr-size-hint intrinsic.
* lib.c (cptr_size_hint): New function.
* lib.h (cptr_size_hint): Declared.
* txr.1: Documented.
Diffstat (limited to 'lib.h')
-rw-r--r-- | lib.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1020,6 +1020,7 @@ val cptr(mem_t *ptr); val cptr_typed(mem_t *handle, val type_sym, struct cobj_ops *ops); val cptrp(val obj); val cptr_type(val cptr); +val cptr_size_hint(val cptr, val size); val cptr_int(val n, val type_sym); val cptr_obj(val obj, val type_sym); val cptr_zap(val cptr); |