Skip to content

Commit

Permalink
Enclose macro argument
Browse files Browse the repository at this point in the history
Also enclosing is unnecessary in declaration as in
    int (VAR);
  • Loading branch information
cgzones authored and BenBE committed May 10, 2021
1 parent d918cd9 commit d9c9536
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions RichString.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ in the source distribution for its full text.
#define RichString_size(this) ((this)->chlen)
#define RichString_sizeVal(this) ((this).chlen)

#define RichString_begin(this) RichString (this); RichString_beginAllocated(this)
#define RichString_beginAllocated(this) \
do { \
(this).chlen = 0, \
(this).chptr = (this).chstr; \
RichString_setChar(&this, 0, 0); \
(this).highlightAttr = 0; \
#define RichString_begin(this) RichString this; RichString_beginAllocated(this)
#define RichString_beginAllocated(this) \
do { \
(this).chlen = 0, \
(this).chptr = (this).chstr; \
RichString_setChar(&(this), 0, 0); \
(this).highlightAttr = 0; \
} while(0)

#ifdef HAVE_LIBNCURSESW
Expand Down

0 comments on commit d9c9536

Please sign in to comment.