www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/05/08/10:29:21

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f
Date: Wed, 8 May 2002 17:29:18 +0300 (EEST)
From: Andris Pavenis <pavenis AT latnet DOT lv>
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
cc: djgpp-workers AT delorie DOT com
Subject: Re: RFA: Ignore DOS end-of-line characters (ctrl-Z) unless -W
In-Reply-To: <Pine.SUN.3.91.1020508170644.25387K-100000@is>
Message-ID: <Pine.LNX.4.21.0205081722350.26648-100000@gulbis.latnet.lv>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

y


On Wed, 8 May 2002, Eli Zaretskii wrote:

> 
> On Wed, 8 May 2002, Andris Pavenis wrote:
> 
> > Original message (and patch) was due to a different reason: use of source
> > files originated from DOS under other systems (unfortunatelly read 
> > initial message not too carefully ...)
> 
> For other systems, I guess a warning under -W is okay.
> 
> > > Hmm, does this mean GCC reads files in binary mode?  (If not, the library 
> > > will stop at the first ^Z, and GCC itself will never see any ^Zs.)
> > 
> > It reads in binary mode.
> 
> I hope only when the input comes from a file, not from a terminal.
> 

Had to keep binary node or should rewrite file input in gcc/ccpfiles.c 
I didn't want to do the latest

Looked how it behaves when reading from console:

sh-2.05$ `gcc -print-prog-name=cc1` -v
GNU CPP version 3.1 20020506 (prerelease) (cpplib) (80386, BSD syntax)
ignoring nonexistent directory "c:/djgpp/djgpp/include"
#include "..." search starts here:
#include <...> search starts here:
 c:/djgpp/lib/gcc-lib/djgpp/3.1/include
 c:/djgpp/include
End of search list.
^Z

Execution times (seconds)
 TOTAL                 :   4.78             0.00             4.78


Andris

PS. Left out part of addresses as I think it's DJGPP specific 


- Raw text -


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