diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-07-26 07:26:55 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-07-26 07:26:55 -0700 |
commit | 3600dc3307b5e9cf0ed49282d7eaa1867026627a (patch) | |
tree | c456107135876bc2b0fd16fdfbc78c6120400666 /txr.1 | |
parent | 55c2dbb134edce8835cf94c2425b80db256bccf2 (diff) | |
download | txr-3600dc3307b5e9cf0ed49282d7eaa1867026627a.tar.gz txr-3600dc3307b5e9cf0ed49282d7eaa1867026627a.tar.bz2 txr-3600dc3307b5e9cf0ed49282d7eaa1867026627a.zip |
FFI: document: elemsize and elemtype work on enums.
* ffi.c (ffi_elemsize, ffi_elemtype): Fix error messages to
include enum among possible argument types.
* txr.1: Extend documentation for ffi-elemsize and ffi-elemtype
to include base integer type of enumerations.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 22 |
1 files changed, 14 insertions, 8 deletions
@@ -63744,17 +63744,20 @@ or The .code ffi-elemsize function reports the size of the element type of an array, -or of the target type of pointer. +of the target type of a pointer, or of the base integer type of an enumeration. The .meta type -argument must be an array or pointer type: an +argument must be an array, pointer or enumeration type: a type constructed +by one of the operators .codn array , .codn zarray , .codn carray , .codn ptr , -.code ptr-in +.codn ptr-in , +.codn ptr-out , +.code enum or -.codn ptr-out . +.codn enumed . .TP* Example: @@ -63770,17 +63773,20 @@ or The .code ffi-elemtype function retrieves the element type of an array type, -or target type of a pointer type. +target type of a pointer type, or base integer type of an enumeration. The .meta type -argument must be an array or pointer type: an +argument must be an array, pointer or enumeration type: a type constructed +by one of the operators .codn array , .codn zarray , .codn carray , .codn ptr , -.code ptr-in +.codn ptr-in , +.codn ptr-out , +.code enum or -.codn ptr-out . +.codn enumed . .TP* Example: |