git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 1/3] Added generic string handling code.

From
TSTimo Sirainen <tss@iki.fi>
Date
May 23, 2007, 13:56 UTC
Message-ID
<1179928610.32181.1707.camel@hurina>
In-Reply-To
<20070523132429.GM4489@pasky.or.cz>
On Wed, 2007-05-23 at 15:24 +0200, Petr Baudis wrote:
Show 13 quoted lines
> > > > +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).

Previous: Petr Baudis
Message 7 of 7 in “Added generic string handling code.”
  1. 1/3 Added generic string handling code.Timo Sirainen, May 20, 2007
  2. Alex RiesenMay 20, 2007
  3. Timo SirainenMay 20, 2007
  4. Petr BaudisMay 22, 2007
  5. Timo SirainenMay 23, 2007
  6. Petr BaudisMay 23, 2007
  7. Timo SirainenMay 23, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.