All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <aliguori@us.ibm.com>
To: Hollis Blanchard <hollisb@us.ibm.com>, xen-devel@lists.sourceforge.net
Subject: Re: __function API
Date: Thu, 17 Mar 2005 14:23:45 -0600	[thread overview]
Message-ID: <4239E751.4040906@us.ibm.com> (raw)
In-Reply-To: <200503171312.14183.hollisb@us.ibm.com>

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

  reply	other threads:[~2005-03-17 20:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-17 19:12 __function API Hollis Blanchard
2005-03-17 20:23 ` Anthony Liguori [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-03-17 21:06 Ian Pratt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4239E751.4040906@us.ibm.com \
    --to=aliguori@us.ibm.com \
    --cc=hollisb@us.ibm.com \
    --cc=xen-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.