emacs-devel
[Top][All Lists]
Advanced

[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 15:03:17 +0100
User-agent: Mutt/1.4i

On Sun, Nov 21, 2004 at 02:51:49PM +0100, David Kastrup wrote:

> "happens to work" and "valid" are two different things.  I don't know
> any C standard that would specify well-defined behavior for a file
> with a missing newline at the end.  The term "valid" is defined by a
> language definition, not by the behavior of a particular
> implementation.

Let me quote the Reference Manual in front of me.

"Blanks, tabs, newlines, and comments (collectively, "white space")
are ignored except as they serve to separate tokens."

Not "happen to work" - it is the C definition.

Andries




reply via email to

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