This is the mail archive of the cygwin-apps@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Workaround for DOS EOL in "make"


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/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]