Paolo Bonzini writes:
> Il 28/04/2014 09:02, Amos Kong ha scritto:
>> def mcgen(code, **kwds):
>> -return cgen('\n'.join(code.split('\n')[1:-1]), **kwds)
>> +raw = cgen('\n'.join(code.split('\n')[1:-1]), **kwds)
>> +return re.sub(re.escape(eatspace) + ' +', '', raw)
>
> I'd feel a li
On Mon, 28 Apr 2014 17:46:41 +0200
Paolo Bonzini wrote:
> Il 28/04/2014 09:02, Amos Kong ha scritto:
> > def mcgen(code, **kwds):
> > -return cgen('\n'.join(code.split('\n')[1:-1]), **kwds)
> > +raw = cgen('\n'.join(code.split('\n')[1:-1]), **kwds)
> > +return re.sub(re.escape(eatspa
Il 28/04/2014 09:02, Amos Kong ha scritto:
def mcgen(code, **kwds):
-return cgen('\n'.join(code.split('\n')[1:-1]), **kwds)
+raw = cgen('\n'.join(code.split('\n')[1:-1]), **kwds)
+return re.sub(re.escape(eatspace) + ' +', '', raw)
I'd feel a little more confident with ' *' instead
We always generate a space between type and identifier in parameter
and variable declarations, even when idiomatic C style doesn't have
a space there. Suppress it.
Signed-off-by: Amos Kong
---
scripts/qapi.py | 18 +++---
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git