From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:34229) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sel81-0003Cb-Hn for qemu-devel@nongnu.org; Wed, 13 Jun 2012 06:48:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sel7v-0007uq-7e for qemu-devel@nongnu.org; Wed, 13 Jun 2012 06:48:45 -0400 Received: from mail-pz0-f47.google.com ([209.85.210.47]:37577) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sel7u-0007uU-UQ for qemu-devel@nongnu.org; Wed, 13 Jun 2012 06:48:39 -0400 Received: by dalh21 with SMTP id h21so931115dal.34 for ; Wed, 13 Jun 2012 03:48:36 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <4FD86FFE.2010003@redhat.com> Date: Wed, 13 Jun 2012 12:48:30 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1339575768-2557-1-git-send-email-lersek@redhat.com> <1339575768-2557-3-git-send-email-lersek@redhat.com> In-Reply-To: <1339575768-2557-3-git-send-email-lersek@redhat.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 02/17] qapi: generate C types for fixed-width integers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laszlo Ersek Cc: qemu-devel@nongnu.org Il 13/06/2012 10:22, Laszlo Ersek ha scritto: > (Long line folded using parens: > .) > > Signed-off-by: Laszlo Ersek > --- > scripts/qapi.py | 4 ++++ > 1 files changed, 4 insertions(+), 0 deletions(-) > > diff --git a/scripts/qapi.py b/scripts/qapi.py > index e062336..1292476 100644 > --- a/scripts/qapi.py > +++ b/scripts/qapi.py > @@ -159,6 +159,10 @@ def c_type(name): > return 'char *' > elif name == 'int': > return 'int64_t' > + elif (name == 'int8' or name == 'int16' or name == 'int32' or > + name == 'int64' or name == 'uint8' or name == 'uint16' or > + name == 'uint32' or name == 'uint64'): > + return name + '_t' > elif name == 'bool': > return 'bool' > elif name == 'number': > Reviewed-by: Paolo Bonzini