mirror of https://github.com/xzeldon/htop.git
Enclose macro argument
Also enclosing is unnecessary in declaration as in int (VAR);
This commit is contained in:
parent
d918cd9f2a
commit
d9c95369bc
|
@ -15,12 +15,12 @@ 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_begin(this) RichString this; RichString_beginAllocated(this)
|
||||
#define RichString_beginAllocated(this) \
|
||||
do { \
|
||||
(this).chlen = 0, \
|
||||
(this).chptr = (this).chstr; \
|
||||
RichString_setChar(&this, 0, 0); \
|
||||
RichString_setChar(&(this), 0, 0); \
|
||||
(this).highlightAttr = 0; \
|
||||
} while(0)
|
||||
|
||||
|
|
Loading…
Reference in New Issue