diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-06-08 07:22:44 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-06-08 07:22:44 -0700 |
commit | 5b2f81b1c492c61c8046b46f271d6125a83d19b7 (patch) | |
tree | f2cd748c6554967e68a024c440739c84957212fb /lisplib.c | |
parent | e6f1010ef967123bcc1046383d228dbae78bcde4 (diff) | |
download | txr-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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"), |