From: Bruno Haible Date: Wed, 5 Feb 2025 19:38:35 +0000 (+0100) Subject: string-buffer: Improve comments. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=adb68524ad21967ed98852db6d0053e4a7c3aeca;p=gnulib.git string-buffer: Improve comments. * lib/string-buffer.h (struct string_buffer): Add a comment. --- diff --git a/ChangeLog b/ChangeLog index f1b421c505..5db0072a97 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2025-02-05 Bruno Haible + + string-buffer: Improve comments. + * lib/string-buffer.h (struct string_buffer): Add a comment. + 2025-02-04 Bruno Haible gnulib-tool: Fix the result of --create-testdir (regression yesterday). diff --git a/lib/string-buffer.h b/lib/string-buffer.h index 78ce736c02..48c40eb3de 100644 --- a/lib/string-buffer.h +++ b/lib/string-buffer.h @@ -38,6 +38,7 @@ typedef char * _GL_ATTRIBUTE_CAPABILITY_TYPE ("memory resource") /* A string buffer type. */ struct string_buffer { + /* data[0 .. length-1] are used. */ sb_heap_allocated_pointer_t data; size_t length; /* used bytes, <= allocated */ size_t allocated; /* allocated bytes */