summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-06-24 11:38:00 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-06-24 11:38:00 -0700
commitea4833aab1bcd495d825104717b7d493863aa0dd (patch)
tree70a6087bb13c8139bf311a9f51747c1733cc25b5
parent7de278b7c2971aef308ba43b786571fc1739aa00 (diff)
downloadtxr-ea4833aab1bcd495d825104717b7d493863aa0dd.tar.gz
txr-ea4833aab1bcd495d825104717b7d493863aa0dd.tar.bz2
txr-ea4833aab1bcd495d825104717b7d493863aa0dd.zip
ffi: provide longlong and ulonglong types.
-rw-r--r--ffi.c4
-rw-r--r--txr.18
2 files changed, 12 insertions, 0 deletions
diff --git a/ffi.c b/ffi.c
index a337c17b..d50854af 100644
--- a/ffi.c
+++ b/ffi.c
@@ -3908,6 +3908,10 @@ static void ffi_init_extra_types(void)
ffi_typedef(intern(lit("uid-t"), user_package),
type_by_size[convert(uid_t, -1) > 0][sizeof (uid_t)]);
#endif
+ ffi_typedef(intern(lit("longlong"), user_package),
+ type_by_size[0][sizeof (long long)]);
+ ffi_typedef(intern(lit("ulonglong"), user_package),
+ type_by_size[1][sizeof (long long)]);
}
#if HAVE_LIBFFI
diff --git a/txr.1 b/txr.1
index 7f5072ec..d33119b5 100644
--- a/txr.1
+++ b/txr.1
@@ -53995,6 +53995,14 @@ Lisp characters and integers convert to these foreign representations, if they
are in their numeric range. Foreign values of these types convert
to Lisp integers.
+.ccIP @ longlong and @ulonglong
+These types are
+.code typedef
+names for integer types whose representation corresponds to the C types
+.code "long long"
+and
+.codn "unsigned long long" .
+
.ccIP @ int8 and @ uint8
These types correspond to 8 bit signed and unsigned integers.
They convert like integer types: both Lisp integers and characters