[PATCH 1/7] coding-style: Follow our own recommendation wrt spacing around commas

Michal Privoznik mprivozn at redhat.com
Wed Nov 16 09:11:39 UTC 2022


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 <mprivozn at redhat.com>
---
 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.37.4



More information about the libvir-list mailing list