diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-06-24 11:38:00 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-06-24 11:38:00 -0700 |
commit | ea4833aab1bcd495d825104717b7d493863aa0dd (patch) | |
tree | 70a6087bb13c8139bf311a9f51747c1733cc25b5 | |
parent | 7de278b7c2971aef308ba43b786571fc1739aa00 (diff) | |
download | txr-ea4833aab1bcd495d825104717b7d493863aa0dd.tar.gz txr-ea4833aab1bcd495d825104717b7d493863aa0dd.tar.bz2 txr-ea4833aab1bcd495d825104717b7d493863aa0dd.zip |
ffi: provide longlong and ulonglong types.
-rw-r--r-- | ffi.c | 4 | ||||
-rw-r--r-- | txr.1 | 8 |
2 files changed, 12 insertions, 0 deletions
@@ -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 @@ -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 |