Article View: comp.sys.ibm.pc.programmer
Article #515Re: Does Borland consider main an extension to ANSI?
From: Andy Toy
Date: Fri, 25 May 1990 15:14
Date: Fri, 25 May 1990 15:14
23 lines
1743 bytes
1743 bytes
In article <1990May24.132459.297@druid.uucp> darcy@druid.UUCP (D'Arcy J.M. Cain) writes:
>Seems that Borland doesn't use their own
>routines when reading a source file so an end of line doesn't happen until
>it sees both a carriage return and a line feed. I use Turbo C under vpix on
>my Unix system and so my lines end in a single line feed (as God intended :-) )
>and Turbo doesn't like that. This gives me strange errors when I forget to
>convert the files.
However, Turbo C v1.5 does accept \n or \r\n terminated lines (that's
why I'm still using it), while v2.01 does not. I hope that Turbo C++
v1.0 and Turbo C v3.0 have this problem fixed.
>The strange thing is that if they were to use their own library and open the
>file as a text file the problem would never happen.
Oh, well, I wish they would fix it since it is extremely useful to
compile from the same source file on DOS and UNIX at the same time. I
hate having to convert files all the time so that's why I use Turbo C
v1.5 while v2.0 is just sitting on my disk unused.
--
Andy Toy, Mortice Kern Systems Inc., Internet: andy@mks.com
35 King Street North, Waterloo, UUCP: uunet!watmath!mks!andy
Ontario, CANADA N2J 2W9 Phone: 519-884-2251 FAX: 519-884-8861
Technical Details
Message-ID:
<1990May25.151427.8500@mks.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!mks.com!andyReferences:
<1990May23.192556.9330@druid.uucp> <1990May24.132459.297@druid.uucp>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.ibm.pc.programmer,comp.sys.std.c Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!mks.com!andy From: andy@mks.com (Andy Toy) Subject: Re: Does Borland consider main an extension to ANSI? Date: Fri, 25 May 90 15:14:27 GMT Message-ID: <1990May25.151427.8500@mks.com> Organization: Mortice Kern Systems, Waterloo, Ontario, Canada Reply-To: andy@mks.com (Andy Toy) References: <1990May23.192556.9330@druid.uucp> <1990May24.132459.297@druid.uucp>