From: Timo Sirainen <tss@iki.fi>
To: Petr Baudis <pasky@suse.cz>
Cc: git@vger.kernel.org
Subject: Re: [PATCH 1/3] Added generic string handling code.
Date: Wed, 23 May 2007 16:56:50 +0300 [thread overview]
Message-ID: <1179928610.32181.1707.camel@hurina> (raw)
In-Reply-To: <20070523132429.GM4489@pasky.or.cz>
[-- Attachment #1: Type: text/plain, Size: 668 bytes --]
On Wed, 2007-05-23 at 15:24 +0200, Petr Baudis wrote:
> > > > +void _str_append(struct string *str, const char *cstr)
> > >
> > > _ is reserved namespace.
> >
> > I remember __ is, but was _ too? A lot of programs are using that. :)
>
> C99 7.1.3 says that
>
> -- 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.
>
> Hmm, this _is_ file scope, right?
Right. I'll start changing my practices. Although grepping
under /usr/include shows that there are a lot of other software that
doesn't respect it either (X11, MySQL, OpenSSL at least).
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
prev parent reply other threads:[~2007-05-23 13:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-20 2:24 [PATCH 1/3] Added generic string handling code Timo Sirainen
2007-05-20 10:01 ` Alex Riesen
2007-05-20 10:27 ` Timo Sirainen
2007-05-22 13:40 ` Petr Baudis
2007-05-23 10:49 ` Timo Sirainen
2007-05-23 13:24 ` Petr Baudis
2007-05-23 13:56 ` Timo Sirainen [this message]
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=1179928610.32181.1707.camel@hurina \
--to=tss@iki.fi \
--cc=git@vger.kernel.org \
--cc=pasky@suse.cz \
/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).