From 85e4e0219311eff496a692a9481bfd995a0b9738 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Tue, 16 Jan 2024 15:58:05 +0100 Subject: RichString: add access function annotations --- RichString.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'RichString.h') diff --git a/RichString.h b/RichString.h index 70ca2748..7783378b 100644 --- a/RichString.h +++ b/RichString.h @@ -7,6 +7,7 @@ Released under the GNU GPLv2+, see the COPYING file in the source distribution for its full text. */ +#include "Macros.h" #include "ProvideCurses.h" @@ -61,6 +62,7 @@ void RichString_appendChr(RichString* this, int attrs, char c, int count); int RichString_appendWide(RichString* this, int attrs, const char* data); +ATTR_ACCESS3_R(3, 4) int RichString_appendnWide(RichString* this, int attrs, const char* data, int len); /* columns takes the maximum number of columns to write and contains on return the number of columns written. */ @@ -70,6 +72,7 @@ int RichString_writeWide(RichString* this, int attrs, const char* data); int RichString_appendAscii(RichString* this, int attrs, const char* data); +ATTR_ACCESS3_R(3, 4) int RichString_appendnAscii(RichString* this, int attrs, const char* data, int len); int RichString_writeAscii(RichString* this, int attrs, const char* data); -- cgit v1.2.3