From 6b7c80ff724f4f8baec2fc0984c6178f75fd9bcd Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sun, 12 Mar 2017 12:27:57 -0700 Subject: New: struct-from-plist and struct-from-args. * struct.c (struct_init): Register new functions. (struct_from_plist, struct_from_args): New functions. * struct.h (struct_from_plist, struct_from_args): Declared. * txr.1: Documented. --- struct.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'struct.h') diff --git a/struct.h b/struct.h index 2f97ee8a..27e13621 100644 --- a/struct.h +++ b/struct.h @@ -33,6 +33,8 @@ val make_struct_type(val name, val super, val struct_type_p(val obj); val super(val type); val make_struct(val type, val plist, struct args *); +val struct_from_plist(val type, struct args *plist); +val struct_from_args(val type, struct args *boa); val make_lazy_struct(val type, val argfun); val make_struct_lit(val type, val plist); val copy_struct(val strct); -- cgit v1.2.3