* lib/mbfile.h (struct mbfile_multi): Clarify how many elements of the
fields buf and pushback are used.
+2026-05-03 Bruno Haible <bruno@clisp.org>
+
+ mbfile: Add comments regarding the counted_by attribute.
+ * lib/mbfile.h (struct mbfile_multi): Clarify how many elements of the
+ fields buf and pushback are used.
+
2026-05-03 Bruno Haible <bruno@clisp.org>
linebuffer: Use the counted_by attribute.
unsigned int pushback_count; /* <= MBFILE_MAX_PUSHBACK */
mbstate_t state;
unsigned int bufcount;
- char buf[MBCHAR_BUF_SIZE];
- struct mbchar pushback[MBFILE_MAX_PUSHBACK];
+ char buf[MBCHAR_BUF_SIZE]; /* COUNTED_BY (bufcount) */
+ struct mbchar pushback[MBFILE_MAX_PUSHBACK]; /* COUNTED_BY (pushback_count) */
};
MBFILE_INLINE void