From 1877325329b282ce59d8d6733b3728913cb2c6b2 Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Sat, 31 Oct 2020 20:33:01 +0100 Subject: Spacing after keywords (#define) --- Panel.h | 2 +- RichString.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Panel.h b/Panel.h index ec670ab5..1ada9243 100644 --- a/Panel.h +++ b/Panel.h @@ -61,7 +61,7 @@ struct Panel_ { int selectionColor; }; -#define Panel_setDefaultBar(this_) do{ (this_)->currentBar = (this_)->defaultBar; }while(0) +#define Panel_setDefaultBar(this_) do { (this_)->currentBar = (this_)->defaultBar; } while(0) #define KEY_CTRL(l) ((l)-'A'+1) diff --git a/RichString.h b/RichString.h index 3fb85279..d360299e 100644 --- a/RichString.h +++ b/RichString.h @@ -23,13 +23,13 @@ in the source distribution for its full text. #define RichString_printVal(this, y, x) mvadd_wchstr(y, x, (this).chptr) #define RichString_printoffnVal(this, y, x, off, n) mvadd_wchnstr(y, x, (this).chptr + (off), n) #define RichString_getCharVal(this, i) ((this).chptr[i].chars[0] & 255) -#define RichString_setChar(this, at, ch) do{ (this)->chptr[(at)] = (CharType) { .chars = { ch, 0 } }; } while(0) +#define RichString_setChar(this, at, ch) do { (this)->chptr[(at)] = (CharType) { .chars = { ch, 0 } }; } while(0) #define CharType cchar_t #else #define RichString_printVal(this, y, x) mvaddchstr(y, x, (this).chptr) #define RichString_printoffnVal(this, y, x, off, n) mvaddchnstr(y, x, (this).chptr + (off), n) #define RichString_getCharVal(this, i) ((this).chptr[i]) -#define RichString_setChar(this, at, ch) do{ (this)->chptr[(at)] = ch; } while(0) +#define RichString_setChar(this, at, ch) do { (this)->chptr[(at)] = ch; } while(0) #define CharType chtype #endif -- cgit v1.2.3