Workaround for DOS EOL in "make"

Earnie Boyd earnie_boyd@yahoo.com
Thu May 25 10:47:00 GMT 2000


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/


More information about the Cygwin-apps mailing list