[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v8 00/22] qapi: add #if pre-processor conditions
From: |
Marc-André Lureau |
Subject: |
Re: [Qemu-devel] [PATCH v8 00/22] qapi: add #if pre-processor conditions to generated code (part 2) |
Date: |
Thu, 13 Dec 2018 18:52:06 +0400 |
Hi
On Thu, Dec 13, 2018 at 6:49 PM Markus Armbruster <address@hidden> wrote:
>
> Marc-André Lureau <address@hidden> writes:
>
> > This is the second part of the "add #if pre-processor conditions to
> > generated code" series, adding schema member conditions (roughly
> > 16-38/49).
> >
> > Members can be exploded as dictionnary with 'type'/'if' keys:
> >
> > { 'struct': 'TestIfStruct', 'data':
> > { 'foo': 'int',
> > 'bar': { 'type': 'int', 'if': 'defined(TEST_IF_STRUCT_BAR)'} } }
> >
> > Enum values can be exploded as dictionnary with 'type'/'if' keys:
> >
> > { 'enum': 'TestIfEnum', 'data':
> > [ 'foo',
> > { 'name' : 'bar', 'if': 'defined(TEST_IF_ENUM_BAR)' } ] }
> >
> > Based-on: git://repo.or.cz/qemu/armbru.git qapi-next
>
> I found nothing I can't easily tidy up when I apply. Thanks!
>
Cool, thanks! I can prepare part 3 :)
--
Marc-André Lureau
- [Qemu-devel] [PATCH v8 17/22] qapi: add #if conditions to generated code members, (continued)
- [Qemu-devel] [PATCH v8 17/22] qapi: add #if conditions to generated code members, Marc-André Lureau, 2018/12/13
- [Qemu-devel] [PATCH v8 18/22] qapi: add 'If:' condition to enum values documentation, Marc-André Lureau, 2018/12/13
- [Qemu-devel] [PATCH v8 19/22] qapi: add 'If:' condition to struct members documentation, Marc-André Lureau, 2018/12/13
- [Qemu-devel] [PATCH v8 20/22] qapi: add condition to variants documentation, Marc-André Lureau, 2018/12/13
- [Qemu-devel] [PATCH v8 22/22] qapi: add conditions to REPLICATION type/commands on the schema, Marc-André Lureau, 2018/12/13
- [Qemu-devel] [PATCH v8 21/22] qapi: add more conditions to SPICE, Marc-André Lureau, 2018/12/13
- Re: [Qemu-devel] [PATCH v8 00/22] qapi: add #if pre-processor conditions to generated code (part 2), Markus Armbruster, 2018/12/13
- Re: [Qemu-devel] [PATCH v8 00/22] qapi: add #if pre-processor conditions to generated code (part 2),
Marc-André Lureau <=
- Re: [Qemu-devel] [PATCH v8 00/22] qapi: add #if pre-processor conditions to generated code (part 2), Markus Armbruster, 2018/12/13