Re: [PATCH wayland 2/8] fixup! scanner: use c99 initializers for the wl_interface * array
On Thu, 14 Jun 2018 16:49:39 +0100 Emil Velikov wrote: > --- > tests/data/example-code.c | 190 > > tests/data/small-code-core.c| 16 ++-- > tests/data/small-code.c | 16 ++-- > tests/data/small-private-code.c | 16 ++-- > 4 files changed, 119 insertions(+), 119 deletions(-) Hi, Acked-by: Pekka Paalanen I'll leave upgrading to R-b for closer to landing this series when I will test running with this. Thanks, pq > > diff --git a/tests/data/example-code.c b/tests/data/example-code.c > index bc03fe5..ccfa9ef 100644 > --- a/tests/data/example-code.c > +++ b/tests/data/example-code.c > @@ -49,101 +49,101 @@ extern const struct wl_interface wl_surface_interface; > extern const struct wl_interface wl_touch_interface; > > static const struct wl_interface *types[] = { > - NULL, > - NULL, > - NULL, > - NULL, > - NULL, > - NULL, > - NULL, > - NULL, > - _callback_interface, > - _registry_interface, > - _surface_interface, > - _region_interface, > - _buffer_interface, > - NULL, > - NULL, > - NULL, > - NULL, > - NULL, > - _shm_pool_interface, > - NULL, > - NULL, > - _data_source_interface, > - _surface_interface, > - _surface_interface, > - NULL, > - _data_source_interface, > - NULL, > - _data_offer_interface, > - NULL, > - _surface_interface, > - NULL, > - NULL, > - _data_offer_interface, > - _data_offer_interface, > - _data_source_interface, > - _data_device_interface, > - _seat_interface, > - _shell_surface_interface, > - _surface_interface, > - _seat_interface, > - NULL, > - _seat_interface, > - NULL, > - NULL, > - _surface_interface, > - NULL, > - NULL, > - NULL, > - NULL, > - NULL, > - _output_interface, > - _seat_interface, > - NULL, > - _surface_interface, > - NULL, > - NULL, > - NULL, > - _output_interface, > - _buffer_interface, > - NULL, > - NULL, > - _callback_interface, > - _region_interface, > - _region_interface, > - _output_interface, > - _output_interface, > - _pointer_interface, > - _keyboard_interface, > - _touch_interface, > - NULL, > - _surface_interface, > - NULL, > - NULL, > - NULL, > - _surface_interface, > - NULL, > - NULL, > - NULL, > - _surface_interface, > - NULL, > - _surface_interface, > - NULL, > - NULL, > - _surface_interface, > - NULL, > - NULL, > - _surface_interface, > - NULL, > - NULL, > - NULL, > - _subsurface_interface, > - _surface_interface, > - _surface_interface, > - _surface_interface, > - _surface_interface, > + [0] = NULL, > + [1] = NULL, > + [2] = NULL, > + [3] = NULL, > + [4] = NULL, > + [5] = NULL, > + [6] = NULL, > + [7] = NULL, > + [8] = _callback_interface, > + [9] = _registry_interface, > + [10] = _surface_interface, > + [11] = _region_interface, > + [12] = _buffer_interface, > + [13] = NULL, > + [14] = NULL, > + [15] = NULL, > + [16] = NULL, > + [17] = NULL, > + [18] = _shm_pool_interface, > + [19] = NULL, > + [20] = NULL, > + [21] = _data_source_interface, > + [22] = _surface_interface, > + [23] = _surface_interface, > + [24] = NULL, > + [25] = _data_source_interface, > + [26] = NULL, > + [27] = _data_offer_interface, > + [28] = NULL, > + [29] = _surface_interface, > + [30] = NULL, > + [31] = NULL, > + [32] = _data_offer_interface, > + [33] = _data_offer_interface, > + [34] = _data_source_interface, > + [35] = _data_device_interface, > + [36] = _seat_interface, > + [37] = _shell_surface_interface, > + [38] = _surface_interface, > + [39] = _seat_interface, > + [40] = NULL, > + [41] = _seat_interface, > + [42] = NULL, > + [43] = NULL, > + [44] = _surface_interface, > + [45] = NULL, > + [46] = NULL, > + [47] = NULL, > + [48] = NULL, > + [49] = NULL, > + [50] = _output_interface, > + [51] = _seat_interface, > + [52] = NULL, > + [53] = _surface_interface, > + [54] = NULL, > + [55] = NULL, > + [56] = NULL, > + [57] = _output_interface, > + [58] = _buffer_interface, > + [59] = NULL, > + [60] = NULL, > + [61] = _callback_interface, > + [62] = _region_interface, > + [63] = _region_interface, > + [64] = _output_interface, > + [65] = _output_interface, > + [66] = _pointer_interface, > + [67] = _keyboard_interface, > + [68] = _touch_interface, > + [69] = NULL, > + [70] = _surface_interface, > + [71] = NULL, > + [72] = NULL, > + [73] = NULL, > + [74] = _surface_interface, > + [75] = NULL, > + [76] = NULL, > + [77] = NULL, >
[PATCH wayland 2/8] fixup! scanner: use c99 initializers for the wl_interface * array
--- tests/data/example-code.c | 190 tests/data/small-code-core.c| 16 ++-- tests/data/small-code.c | 16 ++-- tests/data/small-private-code.c | 16 ++-- 4 files changed, 119 insertions(+), 119 deletions(-) diff --git a/tests/data/example-code.c b/tests/data/example-code.c index bc03fe5..ccfa9ef 100644 --- a/tests/data/example-code.c +++ b/tests/data/example-code.c @@ -49,101 +49,101 @@ extern const struct wl_interface wl_surface_interface; extern const struct wl_interface wl_touch_interface; static const struct wl_interface *types[] = { - NULL, - NULL, - NULL, - NULL, - NULL, - NULL, - NULL, - NULL, - _callback_interface, - _registry_interface, - _surface_interface, - _region_interface, - _buffer_interface, - NULL, - NULL, - NULL, - NULL, - NULL, - _shm_pool_interface, - NULL, - NULL, - _data_source_interface, - _surface_interface, - _surface_interface, - NULL, - _data_source_interface, - NULL, - _data_offer_interface, - NULL, - _surface_interface, - NULL, - NULL, - _data_offer_interface, - _data_offer_interface, - _data_source_interface, - _data_device_interface, - _seat_interface, - _shell_surface_interface, - _surface_interface, - _seat_interface, - NULL, - _seat_interface, - NULL, - NULL, - _surface_interface, - NULL, - NULL, - NULL, - NULL, - NULL, - _output_interface, - _seat_interface, - NULL, - _surface_interface, - NULL, - NULL, - NULL, - _output_interface, - _buffer_interface, - NULL, - NULL, - _callback_interface, - _region_interface, - _region_interface, - _output_interface, - _output_interface, - _pointer_interface, - _keyboard_interface, - _touch_interface, - NULL, - _surface_interface, - NULL, - NULL, - NULL, - _surface_interface, - NULL, - NULL, - NULL, - _surface_interface, - NULL, - _surface_interface, - NULL, - NULL, - _surface_interface, - NULL, - NULL, - _surface_interface, - NULL, - NULL, - NULL, - _subsurface_interface, - _surface_interface, - _surface_interface, - _surface_interface, - _surface_interface, + [0] = NULL, + [1] = NULL, + [2] = NULL, + [3] = NULL, + [4] = NULL, + [5] = NULL, + [6] = NULL, + [7] = NULL, + [8] = _callback_interface, + [9] = _registry_interface, + [10] = _surface_interface, + [11] = _region_interface, + [12] = _buffer_interface, + [13] = NULL, + [14] = NULL, + [15] = NULL, + [16] = NULL, + [17] = NULL, + [18] = _shm_pool_interface, + [19] = NULL, + [20] = NULL, + [21] = _data_source_interface, + [22] = _surface_interface, + [23] = _surface_interface, + [24] = NULL, + [25] = _data_source_interface, + [26] = NULL, + [27] = _data_offer_interface, + [28] = NULL, + [29] = _surface_interface, + [30] = NULL, + [31] = NULL, + [32] = _data_offer_interface, + [33] = _data_offer_interface, + [34] = _data_source_interface, + [35] = _data_device_interface, + [36] = _seat_interface, + [37] = _shell_surface_interface, + [38] = _surface_interface, + [39] = _seat_interface, + [40] = NULL, + [41] = _seat_interface, + [42] = NULL, + [43] = NULL, + [44] = _surface_interface, + [45] = NULL, + [46] = NULL, + [47] = NULL, + [48] = NULL, + [49] = NULL, + [50] = _output_interface, + [51] = _seat_interface, + [52] = NULL, + [53] = _surface_interface, + [54] = NULL, + [55] = NULL, + [56] = NULL, + [57] = _output_interface, + [58] = _buffer_interface, + [59] = NULL, + [60] = NULL, + [61] = _callback_interface, + [62] = _region_interface, + [63] = _region_interface, + [64] = _output_interface, + [65] = _output_interface, + [66] = _pointer_interface, + [67] = _keyboard_interface, + [68] = _touch_interface, + [69] = NULL, + [70] = _surface_interface, + [71] = NULL, + [72] = NULL, + [73] = NULL, + [74] = _surface_interface, + [75] = NULL, + [76] = NULL, + [77] = NULL, + [78] = _surface_interface, + [79] = NULL, + [80] = _surface_interface, + [81] = NULL, + [82] = NULL, + [83] = _surface_interface, + [84] = NULL, + [85] = NULL, + [86] =