From 5b2f81b1c492c61c8046b46f271d6125a83d19b7 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Tue, 8 Jun 2021 07:22:44 -0700 Subject: ffi: new macros deffi-struct and deffi-union. * lisplib.c (ffi_set_entries): Autoload for deffi-struct and deffi-union symbols. * share/txr/stdlib/ffi.tl (deffi-struct, deffi-union): New macros. * txr.1: Documented. * share/txr/stdlib/doc-syms.tl: Updated. --- lisplib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lisplib.c') diff --git a/lisplib.c b/lisplib.c index 26367cba..21c1ac59 100644 --- a/lisplib.c +++ b/lisplib.c @@ -632,7 +632,8 @@ static val ffi_set_entries(val dlt, val fun) val name[] = { lit("with-dyn-lib"), lit("deffi"), lit("deffi-type"), lit("deffi-cb"), lit("deffi-cb-unsafe"), - lit("deffi-sym"), lit("deffi-var"), lit("typedef"), lit("sizeof"), + lit("deffi-sym"), lit("deffi-var"), lit("deffi-struct"), + lit("deffi-union"), lit("typedef"), lit("sizeof"), lit("alignof"), lit("offsetof"), lit("arraysize"), lit("elemsize"), lit("elemtype"), lit("ffi"), lit("carray-ref"), lit("carray-sub"), lit("sub-buf"), lit("znew"), -- cgit v1.2.3