Sandeep
I did RTFM prior to posting my query. There's no need for snideness.
The -ansi -pedantic doesn't quite do it, because the compiler will still
accept the alternate keywords in the course of parsing a system header
file. What I'm looking for is a way to constrain the language so that
these keywords aren't accepted, and they don't come up in the course of
parsing the standard header files (e.g., iostream.h, stdio.h, math.h,
etc.). Can this be done somehow?
Sandeep
Yes. I'm a little uncertain about why on earth you do want to do this, but
remember that you have the sourcecode to the compiler.
--
Robert
Yes, because they're marked with __extension__. This is a mechanism
meant only for the system header files.
>these keywords aren't accepted, and they don't come up in the course of
>parsing the standard header files (e.g., iostream.h, stdio.h, math.h,
>etc.). Can this be done somehow?
Excuse me but I don't quite understand you. Do you want to get errors
when parsing system header files? Well, sed -e s/__extension__// is
your friend. Or do you want to remove all gcc extensions from the
system header files?
--
D.