diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-08-21 17:32:13 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-08-21 17:32:13 -0700 |
commit | 0dd1d1a586fcfcf11e0b1c926c8be9c4c8d525be (patch) | |
tree | 1e674edaf8401bc52745c930edfe3c114e1073a7 /eval.c | |
parent | bc06c87a10f9d9ddc4209ec0a49ab48bf37dc706 (diff) | |
download | txr-0dd1d1a586fcfcf11e0b1c926c8be9c4c8d525be.tar.gz txr-0dd1d1a586fcfcf11e0b1c926c8be9c4c8d525be.tar.bz2 txr-0dd1d1a586fcfcf11e0b1c926c8be9c4c8d525be.zip |
New function: cptr-buf.
* eval.c (eval_init): Register cptr-buf intrinsic.
* lib.c (cptr_buf): New function.
* lib.h (cptr_buf): Declared.
* txr.1: Documented.
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -6888,6 +6888,7 @@ void eval_init(void) reg_fun(intern(lit("cptr-int"), user_package), func_n2o(cptr_int, 1)); reg_fun(intern(lit("cptr-obj"), user_package), func_n2o(cptr_obj, 1)); + reg_fun(intern(lit("cptr-buf"), user_package), func_n2o(cptr_buf, 1)); reg_fun(intern(lit("cptr-zap"), user_package), func_n1(cptr_zap)); reg_fun(intern(lit("cptr-free"), user_package), func_n1(cptr_free)); reg_fun(intern(lit("cptr-cast"), user_package), func_n2(cptr_cast)); |