diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2025-05-26 10:26:12 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2025-05-26 10:45:45 -0400 |
commit | 89969b4b0bea3bd4cddf97c989ca63f3a1aaa07c (patch) | |
tree | 58a244a7121a0000313b2044c139df2340e72ee1 /src/color.c | |
parent | 6fa72ff42d95dfd883d59ce7cf6bdc74abebf015 (diff) | |
download | bfs-89969b4b0bea3bd4cddf97c989ca63f3a1aaa07c.tar.xz |
Add support for __attribute__((counted_by(...)))
Diffstat (limited to 'src/color.c')
-rw-r--r-- | src/color.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/color.c b/src/color.c index 588dbac..a026831 100644 --- a/src/color.c +++ b/src/color.c @@ -32,7 +32,7 @@ struct esc_seq { /** The length of the escape sequence. */ size_t len; /** The escape sequence itself, without a terminating NUL. */ - char seq[]; + char seq[] _counted_by(len); }; /** @@ -48,7 +48,7 @@ struct ext_color { /** Whether the comparison should be case-sensitive. */ bool case_sensitive; /** The extension to match (NUL-terminated). */ - char ext[]; + char ext[]; // _counted_by(len + 1); }; struct colors { |