From: Bruno Haible Date: Sun, 3 May 2026 13:22:52 +0000 (+0200) Subject: windows-spawn: Use the counted_by attribute. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e08bd1d0241fd220af07fd783e01a04c7b08cfb9;p=thirdparty%2Fgnulib.git windows-spawn: Use the counted_by attribute. * lib/windows-spawn.h (struct inheritable_handles): Mark the ih field as counted_by count. --- diff --git a/ChangeLog b/ChangeLog index 0293fa1543..899e26f08e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2026-05-03 Bruno Haible + + 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 string-desc: Use the counted_by attribute. diff --git a/lib/windows-spawn.h b/lib/windows-spawn.h index f713bd9deb..4ac1e2a3b2 100644 --- a/lib/windows-spawn.h +++ b/lib/windows-spawn.h @@ -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