summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-03-15 07:50:09 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-03-15 07:50:09 -0700
commitc80dc667dbcfa47b8a01c7f1ae0da43d4158086b (patch)
treeefb2ada5789c3ba157b44071463bebdb3ebed394 /txr.1
parente0f19f2e697665b63a6a665e373d23ebf63eb925 (diff)
downloadtxr-c80dc667dbcfa47b8a01c7f1ae0da43d4158086b.tar.gz
txr-c80dc667dbcfa47b8a01c7f1ae0da43d4158086b.tar.bz2
txr-c80dc667dbcfa47b8a01c7f1ae0da43d4158086b.zip
ffi: support intmax-t and uintmax-t types.
* configure: detect intmax_t and place HAVE_INTMAX_T into config.h. * ffi.c (ffi_init_extra_types): register intmax-t and uintmax-t types. If HAVE_INTMAX_T is missing, then make them aliases for longlong and ulonglong. * txr.1: Documented. * stdlib/doc-syms.tl: Updated.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.116
1 files changed, 15 insertions, 1 deletions
diff --git a/txr.1 b/txr.1
index f99e561b..90df466a 100644
--- a/txr.1
+++ b/txr.1
@@ -80783,10 +80783,24 @@ the most strictly alignment member of the structure. The alignment of all
other bitfields is ignored.
.SS* Additional Types
-.coNP FFI types @, size-t @, ptrdiff-t @, int-ptr-t @, uint-ptr-t @, wint-t @, sig-atomic-t @ time-t and @ clock-t
+.coNP FFI types @, size-t @, ptrdiff-t @, int-ptr-t @, uint-ptr-t @, intmax-t @, uintmax-t @ wint-t @, sig-atomic-t @ time-t and @ clock-t
+.desc
These additional FFI types for common C language types are provided as
.code typedef
aliases.
+The
+.code intmax-t
+and
+.code uintmax-t
+types are provided only if the host platform's
+.code intmax_t
+is no wider than 64 bits. If the host platform lacks
+.code intmax_t
+then the above two FFI types are defined as aliases for
+.code longlong
+and
+.codn ulonglong ,
+respectively.
.coNP FFI type @ qref
.synb