delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/09/03:30:41

From: "A.Appleyard" <A DOT APPLEYARD AT fs2 DOT mt DOT umist DOT ac DOT uk>
Organization: Materials Science Centre
To: djgpp AT delorie DOT com
Date: Wed, 9 Oct 1996 08:20:01 GMT
Subject: whitespace at eol (was: Re: Possible GAS bug)
Message-ID: <782979210D@fs2.mt.umist.ac.uk>

  Francisco Gochez wrote: (Subject: Possible GAS bug):-
> It took me an hour to find a syntax error in an assembly language module I
> had written, because the error was being caused by [unintended] whitespace
> [after \ at end of line] in the code. ...

  Bill Currie <billc AT blackmagic DOT tait DOT co DOT nz> replied:-
> Actually, the problem is in cpp (rather than gas, which knows nothing about
> #defines) and it's not really a bug. The '\' must ALWAYS be at the END of
> the line. i.e. no trailing white space etc. Bill

That is why an EMACS-type text editor that I wrote always shows the CR at eol,
if the line ends in space or tab or ascii-0 or ascii-255 (or in another CR or
is empty), so I can see trailing whitespace (and trailing blank lines).

- Raw text -


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