summaryrefslogtreecommitdiffstats
path: root/struct.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-03-12 12:27:57 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-03-12 12:27:57 -0700
commit6b7c80ff724f4f8baec2fc0984c6178f75fd9bcd (patch)
tree7d27494d2058e68d5a727387e810fbdd78a9237d /struct.h
parent7809492815eb35df33e52aae72e03ce10349def5 (diff)
downloadtxr-6b7c80ff724f4f8baec2fc0984c6178f75fd9bcd.tar.gz
txr-6b7c80ff724f4f8baec2fc0984c6178f75fd9bcd.tar.bz2
txr-6b7c80ff724f4f8baec2fc0984c6178f75fd9bcd.zip
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.
Diffstat (limited to 'struct.h')
-rw-r--r--struct.h2
1 files changed, 2 insertions, 0 deletions
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);