This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH]: Re: Regression with strn-stuff
Pedro Alves <pedro_alves@portugalmail.pt> writes:
> I don't think there is any way in C to implement the
> REMOVE_PARENS macro below, is there?
>
> #define REMOVE_PARENS(S) (?)
> REMOVE_PARENS(("a string")) => "A STRING"
If you know that the argument always contains an extra pair of parens you
can write this:
#define REMOVE_PARENS(S) S
#define foo(STR) mumble (REMOVE_PARENS STR "")
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."