[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v6 15/16] qapi: Share gen_err_check()
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH v6 15/16] qapi: Share gen_err_check() |
Date: |
Tue, 29 Sep 2015 14:33:40 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 |
On 09/29/2015 08:31 AM, Markus Armbruster wrote:
>
> To really cut the verbosity, I figure we'd have to do something more
> radical, like having cgen() recognize a (short!) pattern and replace it
> with a full-blown error check. Not sure that's actually a good idea,
> though :)
Another radical idea would be write the python code to not care about
whitespace or indentation discrepancies, because we instead run things
through 'indent' as part of the code generation. Then we can emit ugly
code without caring about indentation or multi-line, if it makes the
python easier to write, and the output would still be nicely formatted.
I'm not sure I want to do that, though.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature