Van Snyder wrote:
> Here's yet another reason to stay away from C and C++:
>
> The CPP standard
There is no CPP standard as far as I know. Do you mean the ANSI C standard?
> says that to continue a line, \ must be the last
> character on the line. Not the last non-white-space character. So, if
> you are on a Unix/Linux machine, and inadvertently get a file with DOS
> end-of-line characters, the CR before the LF convinces CPP that the \ is
> not the last character on the line, and you get a raft of inscrutable
> error messages.
>
Of course, you could adjust fpp to do whatever you like (either to
produce a more helpful message, or to ignore DOS nonsense). You might
want to file an RFE with the vendor of whoever's C compiler (or C++) you
are using to seek better diagnostics.
But mostly it seems to illustrate the hazards of moving files between
differing systems without running them through appropriate filters. Or
the obvious defect in DOS.
--
Keith H. Bierman [log in to unmask]
Sun Microsystems PAE | [log in to unmask]
500 Eldorado Blvd UBRM05-169 | 650-352-4432 voice+fax
Broomfield, CO 80021 | sun internal 68207
http://blogs.sun.com/khb
<speaking for myself, not Sun*> Copyright 2006
|