RE: RH6.0 C compiler doesn't recognize "\"

Richard B. Johnson (root@chaos.analogic.com)
Tue, 7 Sep 1999 16:30:50 -0400 (EDT)


On Tue, 7 Sep 1999, WANG,YIDING (HP-SanJose,ex1) wrote:

> Thanks Alan,
>
> My case is in header file such as:
> #define hpSwapBit16(toSwap) \
> ((((U16)toSwap) & 0x00FF) << 8) | \
> ((((U16)toSwap) & 0xFF00) >> 8) |
>
> The files are created under NT (dos format} and copied into Linux with "cp"
> command from "mount -t msdos /dev/fd0 /mnt" mounted file system. There is
> no special character or anything after "\".

The plot thickens! Yes. MS-DOS files contain a '\r' followed by a '\n'
at the end of each line. Make a Dos2Unix script or program to strip
the carriage return.

Cheers,
Dick Johnson
**** FILE SYSTEM WAS MODIFIED ****
Penguin : Linux version 2.3.13 on an i686 machine (400.59 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/