From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: __function API Date: Thu, 17 Mar 2005 14:23:45 -0600 Message-ID: <4239E751.4040906@us.ibm.com> References: <200503171312.14183.hollisb@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit In-Reply-To: <200503171312.14183.hollisb@us.ibm.com> Sender: xen-devel-admin@lists.sourceforge.net Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Hollis Blanchard , xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org Hollis Blanchard wrote: >[resending to the still-active list] > >I have a question about function naming conventions in headers. I've been >assuming that the __ prefix means "internal", i.e. not really part of the >exported API of a header. But I see code like this in >include/asm-x86/shadow.h: > > Technically, no identifiers should ever begin with a '__' prefix. This prefix is reserved for any use by the C standard (section 7.1.3) and is commonly used to generate temporaries by compilers. Xen does use '__' frequently as a prefix. I'm not sure it's worth removing. It's probably best to avoid doing this in new code though. Regards, Anthony Liguori ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click