qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/9] qapi: move gen_if/gen_endif to IfCond


From: John Snow
Subject: Re: [PATCH 2/9] qapi: move gen_if/gen_endif to IfCond
Date: Tue, 27 Oct 2020 17:32:11 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.3.1

On 10/15/20 12:52 PM, marcandre.lureau@redhat.com wrote:
From: Marc-André Lureau <marcandre.lureau@redhat.com>

Move the generating function to the IfCond class.
(avoid cluttering and potential missuse of global functions, allow
access to private members etc)

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
  scripts/qapi/common.py     | 22 ++++++++++------------
  scripts/qapi/gen.py        |  6 ++----
  scripts/qapi/introspect.py |  6 ++----
  scripts/qapi/types.py      | 22 ++++++++++------------
  scripts/qapi/visit.py      | 14 ++++++--------
  5 files changed, 30 insertions(+), 40 deletions(-)


Seems straightforward enough, though I guess your 'Ifcond' object becomes something more of a code generator class than a pure abstract representation by absorbing C generation functions, yeah?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]