[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 30/50] qapi: add #if conditions to generated
From: |
Markus Armbruster |
Subject: |
Re: [Qemu-devel] [PATCH v3 30/50] qapi: add #if conditions to generated alternate variants |
Date: |
Tue, 12 Dec 2017 20:25:22 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
Marc-André Lureau <address@hidden> writes:
> Mostly covered by previous patches already.
>
> Signed-off-by: Marc-André Lureau <address@hidden>
> ---
> scripts/qapi-introspect.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/qapi-introspect.py b/scripts/qapi-introspect.py
> index ef2d5577db..d6194ff702 100644
> --- a/scripts/qapi-introspect.py
> +++ b/scripts/qapi-introspect.py
> @@ -172,7 +172,7 @@ const QLitObject %(c_name)s = %(c_string)s;
>
> def visit_alternate_type(self, name, info, ifcond, variants):
> self._gen_qlit(name, 'alternate',
> - {'members': [{'type': self._use_type(m.type)}
> + {'members': [({'type': self._use_type(m.type)},
> m.ifcond)
> for m in variants.variants]}, ifcond)
>
> def visit_command(self, name, info, ifcond, arg_type, ret_type,
Adds blank lines to qmp-introspect.c, just like PATCH 12, which see.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-devel] [PATCH v3 30/50] qapi: add #if conditions to generated alternate variants,
Markus Armbruster <=