Received: from eggs.gnu.org ([2001:4830:134:3::10]:42390) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0XrQ-0004Ix-Nq for qemu-devel@nongnu.org; Fri, 27 Jun 2014 11:14:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X0XrK-0002Ta-Jm for qemu-devel@nongnu.org; Fri, 27 Jun 2014 11:14:44 -0400 Received: from oxygen.pond.sub.org ([2a01:4f8:201:233:1::3]:35288) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0XrK-0002TD-D3 for qemu-devel@nongnu.org; Fri, 27 Jun 2014 11:14:38 -0400 From: Markus Armbruster References: <1403876514-4637-1-git-send-email-benoit.canet@irqsave.net> <1403876514-4637-2-git-send-email-benoit.canet@irqsave.net> Date: Fri, 27 Jun 2014 17:14:33 +0200 In-Reply-To: <1403876514-4637-2-git-send-email-benoit.canet@irqsave.net> (=?utf-8?Q?=22Beno=C3=AEt?= Canet"'s message of "Fri, 27 Jun 2014 15:41:51 +0200") Message-ID: <8761jmtmee.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v3] qapi: skip redundant includes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?utf-8?Q?Beno=C3=AEt?= Canet Cc: kwolf@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com, Benoit Canet Beno=C3=AEt Canet writes: > The purpose of this change is to help create a json file containing > common definitions; each bit of generated C code must be emitted > only one time. > > A second history global to all QAPISchema instances has been added > to detect when a file is included more than one time and skip these > includes. > It does not act as a stack and the changes made to it by the > __init__ function are propagated back to the caller so it's really > a global state. > > Signed-off-by: Benoit Canet Committed a couple of weeks ago as 24fd848.