Skip to content

Commit

Permalink
RichString: add access function annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
cgzones committed Jan 20, 2024
1 parent db65f17 commit 85e4e02
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions RichString.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"


Expand Down Expand Up @@ -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. */
Expand All @@ -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);
Expand Down

0 comments on commit 85e4e02

Please sign in to comment.