This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GNU "cpp -P" portability


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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]