C Code mutilation by using gcc-3.3.x

Mike Stump mrs@apple.com
Wed Feb 4 20:28:00 GMT 2004


On Wednesday, February 4, 2004, at 12:01 PM, Robert M. Stockmann wrote:
> I write this email not by accident. I have emailed the below example to
> several people and without exception stated that whats happening here
> is a bad thing.

Yes, it is.

> Whats going on here?

Microsoft is still using CR-LF to end lines, and that convention was 
used in your source file.  The solution is to remove the CRs from the 
source file.  google can tell you many ways to do this. Me, I'd just 
fire up emacs and remove them.

> The driver kit in this example is for download on :
>
> http://www.promise.com/support/download/

Ask your vendor for linux source code.  The above isn't it.

> How in earth could the Free Software Foundation and the GCC Team 
> allowed this
> to happen?

Because we don't have the resource to nuke Microsoft off the planet 
yet...  :-)

The gcc list isn't for trivial porting issue like this...



More information about the Gcc mailing list