From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:58266) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6OIu-0007nl-16 for qemu-devel@nongnu.org; Tue, 28 Aug 2012 12:06:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T6OIo-0007Uw-6t for qemu-devel@nongnu.org; Tue, 28 Aug 2012 12:06:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:30098) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6OIn-0007UB-V3 for qemu-devel@nongnu.org; Tue, 28 Aug 2012 12:06:06 -0400 Date: Tue, 28 Aug 2012 19:07:20 +0300 From: "Michael S. Tsirkin" Message-ID: <20120828160720.GA3192@redhat.com> References: <20120828160116.GA3047@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120828160116.GA3047@redhat.com> Subject: Re: [Qemu-devel] [PATCH] HACKING: remove bogus restrictions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Blue Swirl , Peter Maydell , Anthony Liguori , Stefan Hajnoczi On Tue, Aug 28, 2012 at 07:01:16PM +0300, Michael S. Tsirkin wrote: > We copied HACKING from libvirt but it has some bogus stuff: > neither underscore capital, double underscore, or underscore 't' suffixes > are reserved in Posix/C: this appears to be based on misreading of the > C standard. Using sane prefixes is enough to avoid conflicts. > > These rules are also widely violated in our codebase, To add to that, they are even contradicted in HACKING itself which suggests using ram_addr_t for RAM offsets (_t suffix). > and it does not make sense to rework it all, apparently for > no benefit. > > Signed-off-by: Michael S. Tsirkin > --- > HACKING | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/HACKING b/HACKING > index 471cf1d..0a941fc 100644 > --- a/HACKING > +++ b/HACKING > @@ -69,10 +69,6 @@ it points to, or it is aliased to another pointer that is. > 2.3. Typedefs > Typedefs are used to eliminate the redundant 'struct' keyword. > > -2.4. Reserved namespaces in C and POSIX > -Underscore capital, double underscore, and underscore 't' suffixes should be > -avoided. > - > 3. Low level memory management > > Use of the malloc/free/realloc/calloc/valloc/memalign/posix_memalign > -- > MST