* lib/readtokens.h (struct tokenbuffer): Mark the buffer field as
counted_by size.
+2026-05-03 Bruno Haible <bruno@clisp.org>
+
+ readtokens: Use the counted_by attribute.
+ * lib/readtokens.h (struct tokenbuffer): Mark the buffer field as
+ counted_by size.
+
2026-05-03 Bruno Haible <bruno@clisp.org>
mbfile: Add comments regarding the counted_by attribute.
struct tokenbuffer
{
size_t size;
- char *buffer;
+ char *buffer
+ _GL_ATTRIBUTE_COUNTED_BY (size);
};
typedef struct tokenbuffer token_buffer;