Richard, >So what is an end-of-line indicator? The standard just says > "In source files, there shall be SOME way of indicating the end of > each line of text; this International Standard treats such an > end-of-line indicator as if it were a single new-line character." > >As has often been pointed out in comp.std.c, there is NOTHING in any C or >C++ standard to forbid a compiler writer defining the end of line indicator >to be "end of record, preceded by any number of blanks". There is NO >requirement whatsoever that the "end of line indicator" be just the physical >end of record.
True. But the compiler has to handle any strictly conforming program. I can write a strictly conforming program (using macros and stringizing) where a backslash followed by blanks, followed by end-of-record occurs. A compiler that unconditionally turned this into a line splice would be faulty. The purpose of my reference to the #if macro DR was to point out that such a macro could not be used by a strictly conforming program within a #if directive. So in this special case a #if followed by backslash, followed by blanks could only be treated as a syntax error, or a line splice. derek -- Derek M Jones tel: +44 (0) 1252 520 667 Knowledge Software Ltd mailto:[EMAIL PROTECTED] Applications Standards Conformance Testing http://www.knosof.co.uk