Vincent Torri <[email protected]> wrote:

> I have that preprocessor code:
>
> #define CH(_pos) \
>      part { name: "ch_"#_pos".base";
>
> with gcc, '_pos' is stringified and the result is (if _pos is equal to 0) :
>
> part { name: "ch_""0"".base";
>
> With sun cpp, I get:
>
> part { name: "ch_"#0".base";
>
> Is stringification an extension of gcc ? I look at the doc (
> http://gcc.gnu.org/onlinedocs/cpp/Stringification.html) and it does not
> mention it's a gcc extension.
>
> So is it an unsupported feature of suncc preprocessor ? Should I do
> something specific for suncc ?

/usr/lib/cpp is a K&R C-preprocessor that is needed by rpcgen(1), dtrace(1) and 
the aseembler.

If you like to use cpp from the Sun compiler, call cc -E

Jörg

-- 
 EMail:[email protected] (home) Jörg Schilling D-13353 Berlin
       [email protected]                (uni)  
       [email protected] (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
tools-compilers mailing list
[email protected]

Reply via email to