diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-06-20 21:52:14 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-06-20 21:52:14 -0700 |
commit | f34284f052caacc7e0873d8ea333d372e8e10125 (patch) | |
tree | 13c60e323a2e31bd14ec01c6b63d5678d1564e56 /ffi.h | |
parent | 1ebafaf91f4f2bb09a1f4d23d7bfcfa97506a0e8 (diff) | |
download | txr-f34284f052caacc7e0873d8ea333d372e8e10125.tar.gz txr-f34284f052caacc7e0873d8ea333d372e8e10125.tar.bz2 txr-f34284f052caacc7e0873d8ea333d372e8e10125.zip |
ffi: bool type.
* ffi.c (bool_s): New symbol variable.
(ffi_bool_put, ffi_bool_get): New static functions.
(ffi_type_compile): Handle (bool <type>) parametrized type.
(ffi_init_types): Register bool typedef for (bool uchar).
(ffi_init): Initialize bool_s.
* ffi.h (bool_s): Declared.
* txr.1: Documented.
Diffstat (limited to 'ffi.h')
-rw-r--r-- | ffi.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -67,6 +67,8 @@ extern val enum_s; extern val align_s; +extern val bool_s; + extern val ffi_type_s, ffi_call_desc_s, ffi_closure_s; val ffi_type_compile(val syntax); |