From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:51709) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwSgZ-00035a-RU for qemu-devel@nongnu.org; Wed, 01 Aug 2012 02:45:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SwSgV-0003dq-Dj for qemu-devel@nongnu.org; Wed, 01 Aug 2012 02:45:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:23711) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwSgV-0003dj-5E for qemu-devel@nongnu.org; Wed, 01 Aug 2012 02:45:31 -0400 Message-ID: <5018D083.1050409@redhat.com> Date: Wed, 01 Aug 2012 08:45:23 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <5017892B.2070609@redhat.com> <20120731095834.517c37bc@doriath.home> <20120731185534.GI2880@illuin> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 3/5] qapi: avoid reserved word restrict List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: qemu-devel@nongnu.org, Michael Roth , Luiz Capitulino Il 31/07/2012 22:38, Blue Swirl ha scritto: >> > It's a whole lot of churn though, and clobbers the history for most QMP >> > functions. It also seems like a strange thing for clang to complain about... > Not really, it's just C99: > http://en.wikipedia.org/wiki/Restrict > > Prefixing would solve also future problems: 'if', 'auto', maybe > 'static' can make sense for network options (as compared to DHCP) one > day etc. > We could detect C keywords and prefix (or suffix) an underscore automatically. Paolo