]> xenbits.xensource.com Git - libvirt.git/commitdiff
coding-style: Follow our own recommendation wrt spacing around commas
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 10 Nov 2022 12:00:16 +0000 (13:00 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 16 Nov 2022 11:14:54 +0000 (12:14 +0100)
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@redhat.com>
Reviewed-by: Tim Wiederhake <twiederh@redhat.com>
docs/coding-style.rst

index 81bd4474f1488b237939c3d469bb785b096e4c06..d4c9d3b8ab8bc449ff6fb230703b7da4a3a8cee9 100644 (file)
@@ -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: