Some more error messages.....
Rupert Wood
me@rupey.net
Tue Feb 5 04:45:00 GMT 2002
Kabir Patel wrote:
> Line 9469 while((pChar=strchr(Uwel_notes1.str,'^M'))!=NULL)
> Line 9470 *(pChar) = *" ";
Embedding a character 13 into the source is horrible and, as it happens,
is causing this problem. (I also don't like the next line: there's no
point dereferencing a constant string just for a space! This isn't a
really bug, though - just style.)
Try:
while((pChar=strchr(Uwel_notes1.str,'\r'))!=NULL)
*(pChar) = ' ';
The problem was that the compiler was interpreting the ^M as a line
break and not a character constant. It was trying to compile:
while((pChar=strchr(Uwel_notes1.str,'
'))!=NULL)
and single-quoted constants may not cross line boundaries.
Rup.
More information about the Gcc-help
mailing list