From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42909) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Win1n-0005Sh-2p for qemu-devel@nongnu.org; Fri, 09 May 2014 11:48:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Win1e-0003KC-Qi for qemu-devel@nongnu.org; Fri, 09 May 2014 11:48:03 -0400 Received: from lputeaux-656-01-25-125.w80-12.abo.wanadoo.fr ([80.12.84.125]:60485 helo=paradis.irqsave.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Win1e-0003Jm-L7 for qemu-devel@nongnu.org; Fri, 09 May 2014 11:47:54 -0400 From: =?UTF-8?q?Beno=C3=AEt=20Canet?= Date: Fri, 9 May 2014 17:48:21 +0200 Message-Id: <1399650502-25530-1-git-send-email-benoit.canet@irqsave.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH V2] Let the C generated bits of QAPI be generated only once when identical includes are done List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Beno=C3=AEt=20Canet?= , armbru@redhat.com, vilanova@ac.upc.edu, lcapitulino@redhat.com in V2: Keep the cycle detection [Markus] Don't talk about idempottent [Markus] Beno=C3=AEt Canet (1): qapi: Let redundant includes be skipped excepted the first occurrence. scripts/qapi.py | 14 +++++++++++--- tests/Makefile | 3 ++- tests/qapi-schema/include-only-one-time.exit | 1 + tests/qapi-schema/include-only-one-time.json | 3 +++ tests/qapi-schema/include-only-one-time.out | 3 +++ tests/qapi-schema/sub-include-only-one-time.json | 2 ++ 6 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 tests/qapi-schema/include-only-one-time.err create mode 100644 tests/qapi-schema/include-only-one-time.exit create mode 100644 tests/qapi-schema/include-only-one-time.json create mode 100644 tests/qapi-schema/include-only-one-time.out create mode 100644 tests/qapi-schema/sub-include-only-one-time.json --=20 1.7.10.4