Mail Archives: djgpp/1999/06/03/17:46:08
[[ Please don't CC me via email without noting that fact in your
message; it's annoying to reply by email, then have to repeat myself
later via news... thx! ]]
%% Eugene Ageenko <ageson AT cs DOT joensuu DOT fi> writes:
>> What is "cc"... that is, where did it come from? You don't give any
>> information about your system, what version of GCC you're using, etc.
ea> DEC OSF/1 C compiler on Aplha DEC (about ten years old)
ea> We have solved current problems by flushing all pre-processor
ea> operators to the left side of the screen.
ea> Does it really matters? And how is it defined in standard?
The standard states that any amount of whitespace can come between the
beginning of the line and the `#' character, and any number of spaces
and/or tabs can come between the `#' and the keyword; so, in standard C
this is perfectly legal:
# define FOO bar
However, many older preprocessors don't like this. Most preprocessors,
but not all, will allow you to put horizontal whitespace between the `#'
and the keyword:
# define FOO bar
I use this form in GNU make, which is very portable even to pre-standard
compilers, and I've not received any bugs about it, FWIW.
Many pre-standard preprocessors won't allow you to indent the `#' out of
the first column, though.
--
-------------------------------------------------------------------------------
Paul D. Smith <psmith AT baynetworks DOT com> Network Management Development
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
These are my opinions---Nortel Networks takes no responsibility for them.
- Raw text -