[PATCH wayland] scanner: Replace #define tab with space

Yong Bakos junk at humanoriented.com
Tue May 24 19:55:12 UTC 2016

From: Yong Bakos <ybakos at humanoriented.com>

wayland-client-protocol.h and wayland-server-protocol.h use a tab
between the identifier and token of generated #defines for request/event
opcodes and versions. While this sometimes enables vertical alignment,
it more frequently doesn't, and leads to awkward spacing.

Replace the tab with a space, for consistency and readability.

Signed-off-by: Yong Bakos <ybakos at humanoriented.com>
 src/scanner.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/scanner.c b/src/scanner.c
index 5f06e8e..17825d2 100644
--- a/src/scanner.c
+++ b/src/scanner.c
@@ -962,7 +962,7 @@ emit_opcodes(struct wl_list *message_list, struct interface *interface)
 	opcode = 0;
 	wl_list_for_each(m, message_list, link)
-		printf("#define %s_%s\t%d\n",
+		printf("#define %s_%s %d\n",
 		       interface->uppercase_name, m->uppercase_name, opcode++);
@@ -975,7 +975,7 @@ emit_opcode_versions(struct wl_list *message_list, struct interface *interface)
 	wl_list_for_each(m, message_list, link) {
 		printf("/**\n * @ingroup iface_%s\n */\n", interface->name);
-		printf("#define %s_%s_SINCE_VERSION\t%d\n",
+		printf("#define %s_%s_SINCE_VERSION %d\n",
 		       interface->uppercase_name, m->uppercase_name, m->since);

More information about the wayland-devel mailing list