mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-12 06:04:46 -05:00
Remove backslash alignment attempts
Right-aligning backslashes when defining macros or using complex
commands in Makefiles looks cute, but as soon as any changes is
required to the code you end up with either distractingly broken
alignment or unnecessarily big diffs where most of the changes
are just pushing all backslashes a few characters to one side.
Generated using
$ git grep -El '[[:blank:]][[:blank:]]\\$' | \
grep -E '*\.([chx]|am|mk)$$' | \
while read f; do \
sed -Ei 's/[[:blank:]]*[[:blank:]]\\$/ \\/g' "$f"; \
done
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
+22
-22
@@ -608,24 +608,24 @@ test11(const void *opaque)
|
||||
return ret;
|
||||
}
|
||||
|
||||
#define TEST_MAP(sz, expect) \
|
||||
do { \
|
||||
char *actual; \
|
||||
if (virBitmapSize(map) != sz) { \
|
||||
fprintf(stderr, "\n expected bitmap size: '%d' actual size: " \
|
||||
"'%zu'\n", sz, virBitmapSize(map)); \
|
||||
goto cleanup; \
|
||||
} \
|
||||
\
|
||||
actual = virBitmapFormat(map); \
|
||||
\
|
||||
if (STRNEQ_NULLABLE(expect, actual)) { \
|
||||
#define TEST_MAP(sz, expect) \
|
||||
do { \
|
||||
char *actual; \
|
||||
if (virBitmapSize(map) != sz) { \
|
||||
fprintf(stderr, "\n expected bitmap size: '%d' actual size: " \
|
||||
"'%zu'\n", sz, virBitmapSize(map)); \
|
||||
goto cleanup; \
|
||||
} \
|
||||
\
|
||||
actual = virBitmapFormat(map); \
|
||||
\
|
||||
if (STRNEQ_NULLABLE(expect, actual)) { \
|
||||
fprintf(stderr, "\n expected bitmap contents '%s' actual contents "\
|
||||
"'%s'\n", NULLSTR(expect), NULLSTR(actual)); \
|
||||
VIR_FREE(actual); \
|
||||
goto cleanup; \
|
||||
} \
|
||||
VIR_FREE(actual); \
|
||||
"'%s'\n", NULLSTR(expect), NULLSTR(actual)); \
|
||||
VIR_FREE(actual); \
|
||||
goto cleanup; \
|
||||
} \
|
||||
VIR_FREE(actual); \
|
||||
} while (0)
|
||||
|
||||
/* test self-expanding bitmap APIs */
|
||||
@@ -666,11 +666,11 @@ test12(const void *opaque ATTRIBUTE_UNUSED)
|
||||
#undef TEST_MAP
|
||||
|
||||
|
||||
#define TESTBINARYOP(A, B, RES, FUNC) \
|
||||
testBinaryOpData.a = A; \
|
||||
testBinaryOpData.b = B; \
|
||||
testBinaryOpData.res = RES; \
|
||||
if (virTestRun(virTestCounterNext(), FUNC, &testBinaryOpData) < 0) \
|
||||
#define TESTBINARYOP(A, B, RES, FUNC) \
|
||||
testBinaryOpData.a = A; \
|
||||
testBinaryOpData.b = B; \
|
||||
testBinaryOpData.res = RES; \
|
||||
if (virTestRun(virTestCounterNext(), FUNC, &testBinaryOpData) < 0) \
|
||||
ret = -1;
|
||||
|
||||
static int
|
||||
|
||||
Reference in New Issue
Block a user