[PATCH wayland 2/4] scanner: use c99 initializers for the request/events arrays
Emil Velikov
emil.l.velikov at gmail.com
Wed Aug 30 15:21:13 UTC 2017
From: Emil Velikov <emil.velikov at collabora.com>
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
src/scanner.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/scanner.c b/src/scanner.c
index c93ee60..b77641f 100644
--- a/src/scanner.c
+++ b/src/scanner.c
@@ -1660,7 +1660,7 @@ emit_messages(struct wl_list *message_list,
interface->name, suffix);
wl_list_for_each(m, message_list, link) {
- printf("\t{ \"%s\", \"", m->name);
+ printf("\t{ .name = \"%s\", .signature = \"", m->name);
if (m->since > 1)
printf("%d", m->since);
@@ -1699,7 +1699,7 @@ emit_messages(struct wl_list *message_list,
break;
}
}
- printf("\", types + %d },\n", m->type_index);
+ printf("\", .types = types + %d },\n", m->type_index);
}
printf("};\n\n");
--
2.14.1
More information about the wayland-devel
mailing list