git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Theodore Tso <tytso@mit.edu>
To: Junio C Hamano <gitster@pobox.com>
Cc: Daniel Barkalow <barkalow@iabervon.org>, git@vger.kernel.org
Subject: Re: [PATCH v2] Make fetch-pack a builtin with an internal API
Date: Mon, 9 Jul 2007 07:50:29 -0400	[thread overview]
Message-ID: <20070709115029.GD16032@thunk.org> (raw)
In-Reply-To: <7vwsxaw2xu.fsf@assigned-by-dhcp.cox.net>

On Sun, Jul 08, 2007 at 10:39:41PM -0700, Junio C Hamano wrote:
> Are _identifiers with leading underscore Kosher thing to do, I
> wonder...  We do have ones with trailing ones (mostly qsort
> functions) and I think they are done that way for the sake of
> standards conformance.

_[a-z]* is kosher for file scopes or function scoping:

	http://c-faq.com/decl/namespace.html

Some Projects' coding styles prohibit use of _[a-z]* altogether, as
_[_A-Z]* is reserved for C libraries and system header files, and it's
simpler just to ban all identifiers begining with an underscore just
on general princinpals.  It's not strictly speaking necessary, however.

	       		     	    - Ted

P.S.  Note that the Linux kernel does not worry about such rules; in
particular, _[a-z]* is very commonly used at the global scope level,
without any problems.  It doesn't have to be as portable as git
probably needs to be, however.

  parent reply	other threads:[~2007-07-09 11:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-09  5:10 [PATCH v2] Make fetch-pack a builtin with an internal API Daniel Barkalow
2007-07-09  5:39 ` Junio C Hamano
2007-07-09  6:37   ` Daniel Barkalow
2007-07-09 18:04     ` René Scharfe
2007-07-09 18:16       ` Daniel Barkalow
2007-07-09 11:50   ` Theodore Tso [this message]
2007-07-09 13:16     ` Andy Parkins
2007-07-09 14:40       ` Theodore Tso
2007-07-09 15:10         ` Florian Weimer
2007-07-09 15:28         ` Andy Parkins

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=20070709115029.GD16032@thunk.org \
    --to=tytso@mit.edu \
    --cc=barkalow@iabervon.org \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).