[U-Boot-Users] patch to common.h

here's a small patch that permits stringification in an ISO C portable way. eg, you can have
#define FOO xyzabc
and someplace else call
Xstr(FOO)
which will literally be replaced with
"xyzabc"
this was very useful in a couple of key places in some other patches and new-platform support.
-josh

In message 20040221003942.68f288ab.fryman@cc.gatech.edu you wrote:
here's a small patch that permits stringification in an ISO C portable way. eg, you can have
#define FOO xyzabc
and someplace else call
Xstr(FOO)
which will literally be replaced with
"xyzabc"
This is nothing new.
this was very useful in a couple of key places in some other patches and new-platform support.
Where exactly is it needed? I can see zero reference in the existing code.
I will not add dead code just for the fun of it. Rejected.
Best regards,
Wolfgang Denk
participants (2)
-
Josh Fryman
-
Wolfgang Denk