[PATCHv2 wayland 0/8] wayland-scanner: produce code with c99 initializers

Emil Velikov emil.l.velikov at gmail.com
Thu Jun 14 15:49:37 UTC 2018


Hi all,

Here's a take v2 of the series, with the following changes:
 - don't trim trailing NULL entries from the wl_interfaces* array
 - updated tests - separate patches to ease review, to be squashed

On the question of why, despite the aesthetics these patches make the
generated files actually understandable by a human being...

Thanks
Emil

Emil Velikov (8):
  scanner: use c99 initializers for the wl_interface * array
  fixup! scanner: use c99 initializers for the wl_interface * array
  scanner: use c99 initializers for the request/events arrays
  fixup! scanner: use c99 initializers for the request/events arrays
  scanner: use c99 initializers for the interface symbols
  fixup! scanner: use c99 initializers for the interface symbols
  scanner: initialize .{method,event}_count via ARRAY_SIZE
  fixup! scanner: initialize .{method,event}_count via ARRAY_SIZE

 src/scanner.c                   |  32 +--
 tests/data/example-code.c       | 557 ++++++++++++++++++++--------------------
 tests/data/small-code-core.c    |  31 +--
 tests/data/small-code.c         |  31 +--
 tests/data/small-private-code.c |  31 +--
 5 files changed, 339 insertions(+), 343 deletions(-)

-- 
2.16.0



More information about the wayland-devel mailing list