Re: [Qemu-devel] [PATCH v2 15/54] qapi: add 'if' to top-level expressions

2017-09-06 Thread Markus Armbruster
Marc-André Lureau writes: > Hi > > On Mon, Sep 4, 2017 at 3:27 PM, Markus Armbruster wrote: >> Marc-André Lureau writes: >> >>> Accept 'if' key in top-level elements, accepted as string or list of >>> string type. The following patches will modify the test visitor to >>> check the value is corr

Re: [Qemu-devel] [PATCH v2 15/54] qapi: add 'if' to top-level expressions

2017-09-05 Thread Marc-André Lureau
Hi On Mon, Sep 4, 2017 at 3:27 PM, Markus Armbruster wrote: > Marc-André Lureau writes: > >> Accept 'if' key in top-level elements, accepted as string or list of >> string type. The following patches will modify the test visitor to >> check the value is correctly saved, and generate #if/#endif c

Re: [Qemu-devel] [PATCH v2 15/54] qapi: add 'if' to top-level expressions

2017-09-04 Thread Markus Armbruster
Marc-André Lureau writes: > Accept 'if' key in top-level elements, accepted as string or list of > string type. The following patches will modify the test visitor to > check the value is correctly saved, and generate #if/#endif code (as a > single #if/endif line or a series for a list). > > Examp

[Qemu-devel] [PATCH v2 15/54] qapi: add 'if' to top-level expressions

2017-08-22 Thread Marc-André Lureau
Accept 'if' key in top-level elements, accepted as string or list of string type. The following patches will modify the test visitor to check the value is correctly saved, and generate #if/#endif code (as a single #if/endif line or a series for a list). Example of 'if' key: { 'struct': 'TestIfStru