This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: treating CRLF files same as LF ones
- To: CB <cheekyboy at 2-hot dot com>
- Subject: Re: treating CRLF files same as LF ones
- From: Neil Booth <NeilB at earthling dot net>
- Date: Tue, 19 Sep 2000 18:39:54 +0100
- Cc: bug-gcc at gnu dot org
- References: <01fc01c02214$0e254df0$8d146fcb@ice>
You don't mention what compiler version you're using, but recent
snapshots or CVS should not have any problem with MAC / MS-DOS line
endings.
Neil.
CB wrote:-
> Can you make sure the gcc/c-lex.c treats the windows CRLF files the same
> way as normal LF files, ie at line 989 where it checks for case '\n', why
> not also
> accept case 13: ('\r'). As currently its a pain in the ass to share
> windows/mac/unix sources
> that are OS independant. Sure they sort of work, except with macros screw up
> with CRLF files.
>
> case 13: case 10: would be enough to make it happy.
>
> If you find it usefull good, it will help others, if not, hell, I can have
> my own build.
>
> Cheers and lets hope GCC 3.0 will be out soon. (not next year hopefully)
>
>
> ADios
>
>
>