cpp w/DOS line feeds

Per Bothner per@bothner.com
Fri Dec 31 23:54:00 GMT 1999


N8TM@aol.com writes:

> In a message dated 12/9/99 1:38:24 AM Pacific Standard Time, 
> stuarts@icpdd.neca.nec.com.au writes:
> 
> > contemplating the problem in gcc (or cpp in particular) of
> >  multi-line macros that are not interpreted properly if the EOL is made up 
> of
> >  CRs as well as LFs.
> >hope that 2.95.x contains the fix
> 
> Don't hope too much.  As mentioned in the earlier discussion, cpp is intended 
> to be able to use any character preceded by backslash to stand for that 
> character taken literally, in the old unix tradition.

Except of course for newline.  And earlier discissions agreed that
CR-LF should be treated as equivalent to NL.  In fact, I believe
this is the currently implemented behavior if you enable cpplib
as a replacement for the old cpp.
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/~per/



More information about the Gcc mailing list