This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
STRING_COMMA_LEN
- From: Daniel Jacobowitz <drow at false dot org>
- To: binutils at sourceware dot org
- Date: Wed, 24 Oct 2007 16:49:01 -0400
- Subject: STRING_COMMA_LEN
We got a report (gdb/2339) that GDB 6.7 doesn't build with the Sun
compiler.
"elf.c", line 856: non-constant initializer: op "?"
"elf.c", line 859: non-constant initializer: op "?"
"elf.c", line 864: non-constant initializer: op "?"
"elf.c", line 871: non-constant initializer: op "?"
That's a STRING_COMMA_LEN:
#define STRING_COMMA_LEN(STR) (STR), ((STR) ? sizeof (STR) - 1 : 0)
I don't know if this is pedantically correct C or not; just
passing it along...
--
Daniel Jacobowitz
CodeSourcery