[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cc-mode adds newlines

From: Andries Brouwer
Subject: Re: cc-mode adds newlines
Date: Sun, 21 Nov 2004 16:03:44 +0100
User-agent: Mutt/1.4i

On Sun, Nov 21, 2004 at 03:47:54PM +0100, Andreas Schwab wrote:

> > Old compilers just accept the C source without final newline
> > without any complaint. Some newer pedantic ones print a warning.
> If you've really been using C for thirty years then you should have known
> that C source files without final newline are a _real_ problem.
> See <http://groups.google.com/groups?hl=de&lr=&selm=304%40mtuni.ATT.COM>
> for an example.

Hi Andreas -

Thanks - you are always good for solid facts.
So, yes, there exists, or has existed, a compiler or compilation setup
where an error was returned for a missing final newline.
(1988 "Gnu on 386 running UNIX" is not very specific.)

That makes it extra clear why it is very useful to have the warning
provided by setting require-final-newline to ask.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]