mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-31 10:05:31 +00:00
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 <mprivozn@redhat.com> Reviewed-by: Tim Wiederhake <twiederh@redhat.com>
This commit is contained in:
parent
c9a65eb8a6
commit
f396ac5af4
@ -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:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user