Received: from eggs.gnu.org ([140.186.70.92]:45591) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ravfl-0005Be-SE for qemu-devel@nongnu.org; Wed, 14 Dec 2011 15:43:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ravfk-0002BL-SE for qemu-devel@nongnu.org; Wed, 14 Dec 2011 15:43:29 -0500 Received: from fe02x03-cgp.akado.ru ([77.232.31.165]:50809 helo=akado.ru) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ravfk-0002A4-HA for qemu-devel@nongnu.org; Wed, 14 Dec 2011 15:43:28 -0500 Date: Thu, 15 Dec 2011 00:43:24 +0400 (MSK) From: malc In-Reply-To: <4EE905BC.8000203@redhat.com> Message-ID: References: <1323879637-16901-1-git-send-email-aliguori@us.ibm.com> <1323879637-16901-2-git-send-email-aliguori@us.ibm.com> <4EE8F0D4.3050300@weilnetz.de> <4EE905BC.8000203@redhat.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [Qemu-devel] [PATCH 1/4] memory: make memory API parsable by gtkdoc-scan List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: Stefan Weil , Anthony Liguori , qemu-devel@nongnu.org, Avi Kivity On Wed, 14 Dec 2011, Eric Blake wrote: > On 12/14/2011 11:54 AM, Stefan Weil wrote: > >> It does violate the standard _ followed by upper case letter is reserved > >> in all contexts. > > > > sCamelCase instead of _CamelCase seems to work, too. > > What about _camelCase instead of _CamelCase? That preserves the leading > underscore, but no longer uses the reserved _ followed by a capital. > > At any rate, that's the convention libvirt is using; all public structs > are prefixed with vir, so things like: > > typedef struct _virConnect virConnect; > > are both parseable by gtkdocs as well as C standard compliant. > > 7.1.3 7.1.3 Reserved identifiers 1 Each header declares or defines all identifiers listed in its associated subclause, and optionally declares or defines identifiers listed in its associated future library directions subclause and identifiers which are always reserved either for any use or for use as file scope identifiers. - All identifiers that begin with an underscore and either an uppercase letter or another underscore are always reserved for any use. - All identifiers that begin with an underscore are always reserved for use as identifiers with file scope in both the ordinary and tag name spaces [..snip..] IOW - no, that's not good either. -- mailto:av1474@comtv.ru