mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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:
@@ -52,7 +52,7 @@ domtop_domtop_SOURCES = domtop/domtop.c
|
||||
hellolibvirt_hellolibvirt_SOURCES = hellolibvirt/hellolibvirt.c
|
||||
|
||||
object_events_event_test_CFLAGS = \
|
||||
$(WARN_CFLAGS) \
|
||||
$(WARN_CFLAGS) \
|
||||
$(NULL)
|
||||
object_events_event_test_SOURCES = object-events/event-test.c
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ static int debug;
|
||||
*
|
||||
* CC domtop.o
|
||||
*domtop.c:40:0: warning: "ERROR" redefined [enabled by default]
|
||||
* #define ERROR(...) \
|
||||
* #define ERROR(...) \
|
||||
* ^
|
||||
*In file included from /usr/i686-w64-mingw32/sys-root/mingw/include/windows.h:71:0,
|
||||
* from /usr/i686-w64-mingw32/sys-root/mingw/include/winsock2.h:23,
|
||||
@@ -49,20 +49,20 @@ static int debug;
|
||||
* #define ERROR 0
|
||||
*/
|
||||
#undef ERROR
|
||||
#define ERROR(...) \
|
||||
do { \
|
||||
fprintf(stderr, "ERROR %s:%d : ", __FUNCTION__, __LINE__); \
|
||||
fprintf(stderr, __VA_ARGS__); \
|
||||
fprintf(stderr, "\n"); \
|
||||
#define ERROR(...) \
|
||||
do { \
|
||||
fprintf(stderr, "ERROR %s:%d : ", __FUNCTION__, __LINE__); \
|
||||
fprintf(stderr, __VA_ARGS__); \
|
||||
fprintf(stderr, "\n"); \
|
||||
} while (0)
|
||||
|
||||
#define DEBUG(...) \
|
||||
do { \
|
||||
if (!debug) \
|
||||
break; \
|
||||
fprintf(stderr, "DEBUG %s:%d : ", __FUNCTION__, __LINE__); \
|
||||
fprintf(stderr, __VA_ARGS__); \
|
||||
fprintf(stderr, "\n"); \
|
||||
#define DEBUG(...) \
|
||||
do { \
|
||||
if (!debug) \
|
||||
break; \
|
||||
fprintf(stderr, "DEBUG %s:%d : ", __FUNCTION__, __LINE__); \
|
||||
fprintf(stderr, __VA_ARGS__); \
|
||||
fprintf(stderr, "\n"); \
|
||||
} while (0)
|
||||
|
||||
static void
|
||||
|
||||
@@ -42,7 +42,7 @@ static bool run_top;
|
||||
*
|
||||
* CC domtop.o
|
||||
*domtop.c:40:0: warning: "ERROR" redefined [enabled by default]
|
||||
* #define ERROR(...) \
|
||||
* #define ERROR(...) \
|
||||
* ^
|
||||
*In file included from /usr/i686-w64-mingw32/sys-root/mingw/include/windows.h:71:0,
|
||||
* from /usr/i686-w64-mingw32/sys-root/mingw/include/winsock2.h:23,
|
||||
@@ -52,20 +52,20 @@ static bool run_top;
|
||||
* #define ERROR 0
|
||||
*/
|
||||
#undef ERROR
|
||||
#define ERROR(...) \
|
||||
do { \
|
||||
fprintf(stderr, "ERROR %s:%d : ", __FUNCTION__, __LINE__); \
|
||||
fprintf(stderr, __VA_ARGS__); \
|
||||
fprintf(stderr, "\n"); \
|
||||
#define ERROR(...) \
|
||||
do { \
|
||||
fprintf(stderr, "ERROR %s:%d : ", __FUNCTION__, __LINE__); \
|
||||
fprintf(stderr, __VA_ARGS__); \
|
||||
fprintf(stderr, "\n"); \
|
||||
} while (0)
|
||||
|
||||
#define DEBUG(...) \
|
||||
do { \
|
||||
if (!debug) \
|
||||
break; \
|
||||
fprintf(stderr, "DEBUG %s:%d : ", __FUNCTION__, __LINE__); \
|
||||
fprintf(stderr, __VA_ARGS__); \
|
||||
fprintf(stderr, "\n"); \
|
||||
#define DEBUG(...) \
|
||||
do { \
|
||||
if (!debug) \
|
||||
break; \
|
||||
fprintf(stderr, "DEBUG %s:%d : ", __FUNCTION__, __LINE__); \
|
||||
fprintf(stderr, __VA_ARGS__); \
|
||||
fprintf(stderr, "\n"); \
|
||||
} while (0)
|
||||
|
||||
#define STREQ(a, b) (strcmp(a, b) == 0)
|
||||
|
||||
@@ -1053,7 +1053,7 @@ struct domainEventData {
|
||||
};
|
||||
|
||||
|
||||
#define DOMAIN_EVENT(event, callback) \
|
||||
#define DOMAIN_EVENT(event, callback) \
|
||||
{event, -1, VIR_DOMAIN_EVENT_CALLBACK(callback), #event}
|
||||
|
||||
struct domainEventData domainEvents[] = {
|
||||
@@ -1091,7 +1091,7 @@ struct storagePoolEventData {
|
||||
const char *name;
|
||||
};
|
||||
|
||||
#define STORAGE_POOL_EVENT(event, callback) \
|
||||
#define STORAGE_POOL_EVENT(event, callback) \
|
||||
{event, -1, VIR_STORAGE_POOL_EVENT_CALLBACK(callback), #event}
|
||||
|
||||
struct storagePoolEventData storagePoolEvents[] = {
|
||||
@@ -1106,7 +1106,7 @@ struct nodeDeviceEventData {
|
||||
const char *name;
|
||||
};
|
||||
|
||||
#define NODE_DEVICE_EVENT(event, callback) \
|
||||
#define NODE_DEVICE_EVENT(event, callback) \
|
||||
{event, -1, VIR_NODE_DEVICE_EVENT_CALLBACK(callback), #event}
|
||||
|
||||
struct nodeDeviceEventData nodeDeviceEvents[] = {
|
||||
@@ -1121,7 +1121,7 @@ struct secretEventData {
|
||||
const char *name;
|
||||
};
|
||||
|
||||
#define SECRET_EVENT(event, callback) \
|
||||
#define SECRET_EVENT(event, callback) \
|
||||
{event, -1, VIR_SECRET_EVENT_CALLBACK(callback), #event}
|
||||
|
||||
struct secretEventData secretEvents[] = {
|
||||
|
||||
Reference in New Issue
Block a user