summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYong Bakos <ybakos@humanoriented.com>2016-05-24 13:55:12 -0600
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2016-06-07 16:30:22 +0300
commit0cc2eb9ef0e5a8c6fc21916421e6db81d6460b02 (patch)
treecb217ab52327ddb517fdd0768c9bec2fe706c28d
parent826b16641ade360ee3d68f96eac168e08b56daae (diff)
scanner: Replace #define tab with space
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@humanoriented.com> Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net> Tested-by: Quentin Glidic <sardemff7+git@sardemff7.net>
-rw-r--r--src/scanner.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scanner.c b/src/scanner.c
index d5442c1..705473b 100644
--- a/src/scanner.c
+++ b/src/scanner.c
@@ -964,7 +964,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++);
printf("\n");
@@ -977,7 +977,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);
}