[Top][All Lists]

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

Re: cc-mode adds newlines

From: David Kastrup
Subject: Re: cc-mode adds newlines
Date: Tue, 30 Nov 2004 09:11:42 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

Richard Stallman <address@hidden> writes:

>     Do you think it would be appropriate for cc-mode to insert a
>     semicolon in a context like  label: }  where the standard does
>     not accept empty statements? For example automatically, when
>     the file is saved?
> Note that GCC accepts this too, as an extension.

No more.

> It is not valid ISO C, but it is valid GNU C.
> In designing GNU software, valid GNU C is a more
> important criterion than valid ISO C.





    * The undocumented extension that allowed C programs to have a
      label at the end of a compound statement, which has been
      deprecated since GCC 3.0, has been removed.

David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

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