libgrapheme

unicode string library
git clone git://git.suckless.org/libgrapheme
Log | Files | Refs | README | LICENSE

commit b0806472bfe24708f938cc053ce29af0b8cdb57d
parent 14bd81aba1dc2d25dd1a44c74425b5916ac401ef
Author: NRK <nrk@disroot.org>
Date:   Wed, 29 Jun 2022 09:07:49 +0600

macro-hygiene: wrap arguments in parenthesis

reported by clang-tidy.

Diffstat:
Msrc/utf8.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/utf8.c b/src/utf8.c @@ -4,7 +4,7 @@ #include "../grapheme.h" #include "util.h" -#define BETWEEN(c, l, u) (c >= l && c <= u) +#define BETWEEN(c, l, u) ((c) >= (l) && (c) <= (u)) /* lookup-table for the types of sequence first bytes */ static const struct {