From 2b088c2de1e23cc7c01533a49746fbdca55034d7 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Mon, 24 Aug 2020 07:58:26 -0700 Subject: doc: ffi: struct size with only zero-width field. * txr.1: Document that the size of a struct that contains nothing but a zero-width field is zero. --- txr.1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'txr.1') diff --git a/txr.1 b/txr.1 index c6656f75..4497be5c 100644 --- a/txr.1 +++ b/txr.1 @@ -69420,7 +69420,8 @@ is adjusted to point to the next unit after that, and .I B is reset to zero. Note that according to this semantics, a zero-width bitfield can have an effect even if placed between non-bitfield members, or appears -as the last member of a structure. +as the last member of a structure. Also, a structure containing only a +zero-width bitfield has size zero. If, after the placement of all structure members, .I B -- cgit v1.2.3