From f396ac5af4c66b3b82a11c1b8687d28eccf3c6ad Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Thu, 10 Nov 2022 13:00:16 +0100 Subject: [PATCH] coding-style: Follow our own recommendation wrt spacing around commas We require a space after a comma and even document this in our coding style document. However, our own rule is broken in the very same document when listing string comparison macros. Separate macro arguments properly. Signed-off-by: Michal Privoznik Reviewed-by: Tim Wiederhake --- docs/coding-style.rst | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/coding-style.rst b/docs/coding-style.rst index 81bd4474f1..d4c9d3b8ab 100644 --- a/docs/coding-style.rst +++ b/docs/coding-style.rst @@ -705,35 +705,35 @@ use one of the following semantically named macros :: - STREQ(a,b) - STRNEQ(a,b) + STREQ(a, b) + STRNEQ(a, b) - For case insensitive equality: :: - STRCASEEQ(a,b) - STRCASENEQ(a,b) + STRCASEEQ(a, b) + STRCASENEQ(a, b) - For strict equality of a substring: :: - STREQLEN(a,b,n) - STRNEQLEN(a,b,n) + STREQLEN(a, b, n) + STRNEQLEN(a, b, n) - For case insensitive equality of a substring: :: - STRCASEEQLEN(a,b,n) - STRCASENEQLEN(a,b,n) + STRCASEEQLEN(a, b, n) + STRCASENEQLEN(a, b, n) - For strict equality of a prefix: :: - STRPREFIX(a,b) + STRPREFIX(a, b) - To avoid having to check if a or b are NULL: -- 2.39.5