mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-14 07:04:43 -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:
+40
-40
@@ -171,48 +171,48 @@ mymain(void)
|
||||
|
||||
memset(&data, 0, sizeof(data));
|
||||
|
||||
#define DO_TEST_DIR(sch, ...) \
|
||||
do { \
|
||||
data.schema = sch; \
|
||||
if (virTestRun("test schema grammar file: " sch, \
|
||||
testSchemaGrammar, &data) == 0) { \
|
||||
/* initialize the validator even if the schema test \
|
||||
* was skipped because of VIR_TEST_RANGE */ \
|
||||
if (!data.validator && testSchemaGrammar(&data) < 0) { \
|
||||
ret = -1; \
|
||||
break; \
|
||||
} \
|
||||
if (testSchemaDirs(sch, data.validator, __VA_ARGS__, NULL) < 0) \
|
||||
ret = -1; \
|
||||
\
|
||||
virXMLValidatorFree(data.validator); \
|
||||
data.validator = NULL; \
|
||||
} else { \
|
||||
ret = -1; \
|
||||
} \
|
||||
#define DO_TEST_DIR(sch, ...) \
|
||||
do { \
|
||||
data.schema = sch; \
|
||||
if (virTestRun("test schema grammar file: " sch, \
|
||||
testSchemaGrammar, &data) == 0) { \
|
||||
/* initialize the validator even if the schema test \
|
||||
* was skipped because of VIR_TEST_RANGE */ \
|
||||
if (!data.validator && testSchemaGrammar(&data) < 0) { \
|
||||
ret = -1; \
|
||||
break; \
|
||||
} \
|
||||
if (testSchemaDirs(sch, data.validator, __VA_ARGS__, NULL) < 0) \
|
||||
ret = -1; \
|
||||
\
|
||||
virXMLValidatorFree(data.validator); \
|
||||
data.validator = NULL; \
|
||||
} else { \
|
||||
ret = -1; \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#define DO_TEST_FILE(sch, xmlfile) \
|
||||
do { \
|
||||
data.schema = sch; \
|
||||
data.xml_path = abs_srcdir "/" xmlfile; \
|
||||
if (virTestRun("test schema grammar file: " sch, \
|
||||
testSchemaGrammar, &data) == 0) { \
|
||||
/* initialize the validator even if the schema test \
|
||||
* was skipped because of VIR_TEST_RANGE */ \
|
||||
if (!data.validator && testSchemaGrammar(&data) < 0) { \
|
||||
ret = -1; \
|
||||
break; \
|
||||
} \
|
||||
if (virTestRun("Checking " xmlfile " against " sch, \
|
||||
testSchemaFile, &data) < 0) \
|
||||
ret = -1; \
|
||||
\
|
||||
virXMLValidatorFree(data.validator); \
|
||||
data.validator = NULL; \
|
||||
} else { \
|
||||
ret = -1; \
|
||||
} \
|
||||
#define DO_TEST_FILE(sch, xmlfile) \
|
||||
do { \
|
||||
data.schema = sch; \
|
||||
data.xml_path = abs_srcdir "/" xmlfile; \
|
||||
if (virTestRun("test schema grammar file: " sch, \
|
||||
testSchemaGrammar, &data) == 0) { \
|
||||
/* initialize the validator even if the schema test \
|
||||
* was skipped because of VIR_TEST_RANGE */ \
|
||||
if (!data.validator && testSchemaGrammar(&data) < 0) { \
|
||||
ret = -1; \
|
||||
break; \
|
||||
} \
|
||||
if (virTestRun("Checking " xmlfile " against " sch, \
|
||||
testSchemaFile, &data) < 0) \
|
||||
ret = -1; \
|
||||
\
|
||||
virXMLValidatorFree(data.validator); \
|
||||
data.validator = NULL; \
|
||||
} else { \
|
||||
ret = -1; \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
DO_TEST_DIR("capability.rng", "capabilityschemadata", "xencapsdata",
|
||||
|
||||
Reference in New Issue
Block a user