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

Re: [PATCH 2/2] gettext.h: add parentheses around N_ expansion

From
Andreas Schwab <schwab@linux-m68k.org>
Date
Jan 6, 2015, 15:16 UTC
Message-ID
<87tx04rlbw.fsf@igel.home>
In-Reply-To
<694DC462-40E3-4081-8616-64483FCD0D77@gmail.com>
"Kyle J. McKay" <mackyle@gmail.com> writes:
> Even clang -ansi -pedantic doesn't seem to complain about this.  And ("a")
> is just as much a constant expression as "a".  Are you sure it's not just
> a tcc bug?

The C standard asks for a string literal as the initializer, not an expression.

Andreas.
-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Previous: Kyle J. McKayNext: Junio C Hamano
Message 5 of 6 in “log.c: fix translation markings”
  1. 1/2 log.c: fix translation markingsKyle J. McKay, Jan 6, 2015
  2. 2/2 gettext.h: add parentheses around N_ expansionKyle J. McKay, Jan 6, 2015
  3. Ramsay JonesJan 6, 2015
  4. Kyle J. McKayJan 6, 2015
  5. Andreas SchwabJan 6, 2015
  6. Junio C HamanoJan 6, 2015

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.