summaryrefslogtreecommitdiffstats
path: root/lisplib.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-06-08 07:22:44 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-06-08 07:22:44 -0700
commit5b2f81b1c492c61c8046b46f271d6125a83d19b7 (patch)
treef2cd748c6554967e68a024c440739c84957212fb /lisplib.c
parente6f1010ef967123bcc1046383d228dbae78bcde4 (diff)
downloadtxr-5b2f81b1c492c61c8046b46f271d6125a83d19b7.tar.gz
txr-5b2f81b1c492c61c8046b46f271d6125a83d19b7.tar.bz2
txr-5b2f81b1c492c61c8046b46f271d6125a83d19b7.zip
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.
Diffstat (limited to 'lisplib.c')
-rw-r--r--lisplib.c3
1 files changed, 2 insertions, 1 deletions
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"),