summaryrefslogtreecommitdiffstats
path: root/RichString.h
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-05-10 17:30:55 +0200
committerBenBE <BenBE@geshi.org>2021-05-10 17:48:05 +0200
commitd9c95369bc51595b6edd4eb6050c47a9b1e7a8d7 (patch)
tree807c40201ee93e31297058dbad0bfd093783a495 /RichString.h
parentd918cd9f2a71a1e9cd76ca85b27570326194037f (diff)
Enclose macro argument
Also enclosing is unnecessary in declaration as in int (VAR);
Diffstat (limited to 'RichString.h')
-rw-r--r--RichString.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/RichString.h b/RichString.h
index 76323e40..5c456d21 100644
--- a/RichString.h
+++ b/RichString.h
@@ -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

© 2014-2024 Faster IT GmbH | imprint | privacy policy