From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Npl7H-0005D7-79 for qemu-devel@nongnu.org; Thu, 11 Mar 2010 11:20:07 -0500 Received: from [199.232.76.173] (port=55979 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Npl7G-0005Cr-TY for qemu-devel@nongnu.org; Thu, 11 Mar 2010 11:20:06 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Npl7F-0000VU-AA for qemu-devel@nongnu.org; Thu, 11 Mar 2010 11:20:06 -0500 Received: from mx1.redhat.com ([209.132.183.28]:50474) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Npl7E-0000V0-TI for qemu-devel@nongnu.org; Thu, 11 Mar 2010 11:20:05 -0500 From: Markus Armbruster Subject: Re: [Qemu-devel] [PATCH] CODING_STYLE: Reserve qemu_ prefix for library wrappers References: <4B98FA68.7000901@codemonkey.ws> <1268318923-13397-1-git-send-email-avi@redhat.com> Date: Thu, 11 Mar 2010 17:19:59 +0100 In-Reply-To: <1268318923-13397-1-git-send-email-avi@redhat.com> (Avi Kivity's message of "Thu, 11 Mar 2010 16:48:43 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: qemu-devel@nongnu.org Avi Kivity writes: > Signed-off-by: Avi Kivity > --- > CODING_STYLE | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > > diff --git a/CODING_STYLE b/CODING_STYLE > index a579cb1..92036f3 100644 > --- a/CODING_STYLE > +++ b/CODING_STYLE > @@ -49,6 +49,9 @@ and is therefore likely to be changed. > Typedefs are used to eliminate the redundant 'struct' keyword. It is the > QEMU coding style. > > +When wrapping standard library functions, use the prefix qemu_ to alert > +readers that they are seeing a wrapped version; otherwise avoid this prefix. > + > 4. Block structure > > Every indented statement is braced; even if the block contains just one ACK