]> Savannah Git Hosting - gnulib.git/commitdiff
string-buffer: Improve comments.
authorBruno Haible <bruno@clisp.org>
Wed, 5 Feb 2025 19:38:35 +0000 (20:38 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 5 Feb 2025 20:58:25 +0000 (21:58 +0100)
* lib/string-buffer.h (struct string_buffer): Add a comment.

ChangeLog
lib/string-buffer.h

index f1b421c5059de20996da0ea0b622cc9f0406891c..5db0072a971430f6492bf20da8b816534e45ab70 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2025-02-05  Bruno Haible  <bruno@clisp.org>
+
+       string-buffer: Improve comments.
+       * lib/string-buffer.h (struct string_buffer): Add a comment.
+
 2025-02-04  Bruno Haible  <bruno@clisp.org>
 
        gnulib-tool: Fix the result of --create-testdir (regression yesterday).
index 78ce736c02d62b245091ad0587dc21234c9810c4..48c40eb3de637edb1e36670baaab984a0797383d 100644 (file)
@@ -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 */