This is the mail archive of the
cygwin-apps@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Workaround for DOS EOL in "make"
- To: Serguei dot Grigoriev at Physik dot Uni-Augsburg dot DE
- Subject: Re: Workaround for DOS EOL in "make"
- From: Earnie Boyd <earnie_boyd at yahoo dot com>
- Date: Thu, 25 May 2000 10:47:29 -0700 (PDT)
- Cc: cygwin-apps at sourceware dot cygnus dot com
- Reply-To: earnie_boyd at yahoo dot com
Thanks, Sergey. I'm forwarding your patch to the cygwin-apps list.
Earnie.
--- "Sergey R. Grigoriev" <Serguei.Grigoriev@Physik.Uni-Augsburg.DE> wrote:
> Hello Earnie,
>
> I modified
> function readline() in read.c - as it was distributed in Net-CYGWIN
> to make it usable on Linux and Cygwin with DOS-maded makefiles
>
> ********* diff read.c read_org.c *********
>
> 2114,2121d2113
> <
> < /*
> < DOS EOL ("\r\n") Hack : make possible to use DOS and UNIX
> < makefiles without EOL-Convertion
> < */
> < if(len!=0) if(p[len-1] == '\r') { p[len-1]='\0';len--;}
> < if(len >1) if(p[len-2] == '\r') {
> p[len-2]=p[len-1];p[len-1]='\0';len--;}
> <
>
> Serge
__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/