]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
windows-spawn: Use the counted_by attribute.
authorBruno Haible <bruno@clisp.org>
Sun, 3 May 2026 13:22:52 +0000 (15:22 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 3 May 2026 13:34:29 +0000 (15:34 +0200)
* lib/windows-spawn.h (struct inheritable_handles): Mark the ih field as
counted_by count.

ChangeLog
lib/windows-spawn.h

index 0293fa15438cbaf0e3f9d87cac8b5d079bd70f00..899e26f08ee32d219ef36875ede0e305a684f05b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2026-05-03  Bruno Haible  <bruno@clisp.org>
+
+       windows-spawn: Use the counted_by attribute.
+       * lib/windows-spawn.h (struct inheritable_handles): Mark the ih field as
+       counted_by count.
+
 2026-05-03  Bruno Haible  <bruno@clisp.org>
 
        string-desc: Use the counted_by attribute.
index f713bd9debe23cdd756615c654d8806590f3c2e1..4ac1e2a3b2d7550c9a13939122fb96ecaf6275f5 100644 (file)
@@ -141,7 +141,8 @@ struct inheritable_handles
   /* The number of allocated entries in the two arrays below.  */
   size_t allocated;
   /* ih[0..count-1] are the occupied entries.  */
-  struct IHANDLE *ih;
+  struct IHANDLE *ih
+    _GL_ATTRIBUTE_COUNTED_BY (count);
 };
 
 /* Initializes a set of inheritable handles, filling in all or part of the