Re: GNU "cpp -P" portability

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/8/2013 12:56 PM, Thien-Thi Nguyen wrote:
Is "cpp -P" POSIX?

I poked around at

  http://www.opengroup.org/onlinepubs/9699919799

and could find only matches to "preprocessor" rather than "cpp" in the
search facility, and so surmise "no", but thought i'd ask here anyway.
I suppose a portable workaround would be:

  cpp FILENAME | sed '/^#/d'

but have fingers crossed nonetheless...

No, it's much the same as gcc -P, as far as I could tell by looking it up. Why to to opengroup for something they didn't deal with?

--
Tim Prince





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux