summaryrefslogtreecommitdiffstats
path: root/ffi.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-06-20 21:52:14 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-06-20 21:52:14 -0700
commitf34284f052caacc7e0873d8ea333d372e8e10125 (patch)
tree13c60e323a2e31bd14ec01c6b63d5678d1564e56 /ffi.h
parent1ebafaf91f4f2bb09a1f4d23d7bfcfa97506a0e8 (diff)
downloadtxr-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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ffi.h b/ffi.h
index 37758d09..ee09ebf5 100644
--- a/ffi.h
+++ b/ffi.h
@@ -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);