diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-06-03 08:08:54 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-06-03 08:08:54 -0700 |
commit | 6cb7fdec4cebacda48c5610a45e28ecef16f2ce2 (patch) | |
tree | d81a5ffda14c90fd0ff2c148f5d07bd5058ad833 /txr.1 | |
parent | e538d15b836c6931bbd14b5fb26f57899a3bff54 (diff) | |
download | txr-6cb7fdec4cebacda48c5610a45e28ecef16f2ce2.tar.gz txr-6cb7fdec4cebacda48c5610a45e28ecef16f2ce2.tar.bz2 txr-6cb7fdec4cebacda48c5610a45e28ecef16f2ce2.zip |
ffi: use expressions for bit field width also.
* ffi.c (ffi_type_compile): Evaluate width argument
of sbit and ubit type as as expression.
* txr.1: Documented.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -53541,9 +53541,9 @@ be extended. Some constituents of compound type syntax are expressions which evaluate to integer values: the dimension value for array types, the size for buffers, -and the value expressions for enumeration constants are such expressions. -These expressions allow full use of \*(TL. They are evaluated without -visibility into any apparent surrounding lexical scope. +the width for bitfields and the value expressions for enumeration constants are +such expressions. These expressions allow full use of \*(TL. They are +evaluated without visibility into any apparent surrounding lexical scope. Some predefined types which are provided are in fact typedef names. For instance, the @@ -54453,7 +54453,8 @@ Bitfields of any other type are not supported. The .meta width -parameter of the type indicates the number of bits. It may range from +parameter of is an expression evaluated in the top-level environment, +indicates the number of bits. It may range from zero to the number of bits in the .code uint type. |