www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2000/05/25/13:47:43

Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm
list-help: <mailto:cygwin-apps-help AT sourceware DOT cygnus DOT com>
list-post: <mailto:cygwin-apps AT sourceware DOT cygnus DOT com>
Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin-apps AT sourceware DOT cygnus DOT com
Message-ID: <20000525174729.797.qmail@web122.yahoomail.com>
Date: Thu, 25 May 2000 10:47:29 -0700 (PDT)
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: earnie_boyd AT yahoo DOT com
Subject: Re: Workaround for DOS EOL in "make"
To: Serguei DOT Grigoriev AT Physik DOT Uni-Augsburg DOT DE
Cc: cygwin-apps AT sourceware DOT cygnus DOT com
MIME-Version: 1.0

Thanks, Sergey.  I'm forwarding your patch to the cygwin-apps list.

Earnie.
--- "Sergey R. Grigoriev" <Serguei DOT Grigoriev AT Physik DOT Uni-Augsburg DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019