Markus Armbruster
56a4689582
qapi: Fix array first used in a different module
...
We generally put implicitly defined types in whatever module triggered
their definition. This is wrong for array types, as the included test
case demonstrates. Let's have a closer look at it.
Type 'Status' is defined sub-sub-module.json. Array type ['Status']
occurs in main module qapi-schema-test.json and in
include/sub-module.json. The main module's use is first, so the array
type gets put into the main module.
The generated C headers define StatusList in qapi-types.h. But
include/qapi-types-sub-module.h uses it without including
qapi-types.h. Oops.
To fix that, put the array type into its element type's module.
Now StatusList gets generated into qapi-types-sub-module.h, which all
its users include.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20190301154051.23317-8-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
2019-03-05 14:43:11 +01:00
..
2019-03-05 14:43:11 +01:00
2018-05-30 13:19:14 -03:00
2018-05-30 13:19:14 -03:00
2018-05-30 13:19:14 -03:00
2018-05-30 13:19:14 -03:00
2018-12-13 19:20:11 +01:00
2017-09-01 12:51:04 +02:00
2017-09-01 12:51:04 +02:00
2017-09-01 12:51:04 +02:00
2017-09-01 12:51:04 +02:00
2017-09-01 12:51:04 +02:00
2017-09-01 12:51:04 +02:00
2017-09-01 12:51:04 +02:00
2017-09-01 12:51:04 +02:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00
2018-07-03 18:21:24 +02:00
2018-07-03 18:21:24 +02:00
2018-07-03 18:21:24 +02:00
2018-07-03 18:21:24 +02:00
2018-07-03 18:21:24 +02:00
2018-07-03 18:21:24 +02:00
2018-07-03 18:21:24 +02:00
2018-07-03 18:21:24 +02:00
2018-07-03 18:21:24 +02:00
2018-07-03 18:21:24 +02:00
2018-07-03 18:21:24 +02:00
2018-07-03 18:21:24 +02:00
2018-07-03 18:21:24 +02:00
2018-07-03 18:21:24 +02:00
2018-07-03 18:21:24 +02:00
2018-07-03 18:21:24 +02:00
2019-02-18 14:44:04 +01:00
2017-12-20 19:18:33 +01:00
2017-12-20 19:18:33 +01:00
2017-12-20 19:18:33 +01:00
2019-02-18 14:44:04 +01:00
2018-12-14 06:52:48 +01:00
2019-02-18 14:44:04 +01:00
2018-12-14 06:52:48 +01:00
2018-12-13 19:20:11 +01:00
2019-02-18 14:44:04 +01:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00
2019-02-18 14:44:04 +01:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00
2019-02-18 14:44:04 +01:00
2018-03-02 13:14:09 -06:00
2019-02-18 14:44:04 +01:00
2019-02-18 14:44:04 +01:00
2019-02-18 14:44:04 +01:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00
2018-03-27 10:17:45 -05:00
2018-03-27 10:17:45 -05:00
2018-03-27 10:17:45 -05:00
2018-03-27 10:17:45 -05:00
2019-03-05 14:43:11 +01:00
2019-03-05 14:43:11 +01:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00
2019-03-05 14:43:11 +01:00
2019-03-05 14:41:01 +01:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00
2018-12-13 19:20:11 +01:00