Re: [PATCH v3 4/7] qapi: Use QAPI_LIST_PREPEND() where possible

2021-01-13 Thread Markus Armbruster
Eric Blake writes: > Anywhere we create a list of just one item or by prepending items > (typically because order doesn't matter), we can use the > QAPI_LIST_PREPEND macro. But places where we must keep the list in > order by appending remain open-coded until later patches. > > Note that as a si

[PATCH v3 4/7] qapi: Use QAPI_LIST_PREPEND() where possible

2020-12-23 Thread Eric Blake
Anywhere we create a list of just one item or by prepending items (typically because order doesn't matter), we can use the QAPI_LIST_PREPEND macro. But places where we must keep the list in order by appending remain open-coded until later patches. Note that as a side effect, this also performs a