From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.cc-mode.general,gmane.emacs.devel Subject: Re: cc-mode adds newlines Date: Tue, 30 Nov 2004 09:11:42 +0100 Message-ID: References: <200411281656.iASGuMP15956@apps.cwi.nl> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1101802341 17372 80.91.229.6 (30 Nov 2004 08:12:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 Nov 2004 08:12:21 +0000 (UTC) Cc: , bug-cc-mode@gnu.org, acm@muc.de, monnier@iro.umontreal.ca, emacs-devel@gnu.org Original-X-From: cc-mode-help-admin@lists.sourceforge.net Tue Nov 30 09:12:14 2004 Return-path: Original-Received: from sc8-sf-sshgate.sourceforge.net ([66.35.250.220] helo=sc8-sf-spam2.sourceforge.net) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CZ37O-0004gP-00 for ; Tue, 30 Nov 2004 09:12:14 +0100 Original-Received: from sc8-sf-list1-b.sourceforge.net ([10.3.1.7] helo=projects.sourceforge.net) by sc8-sf-spam2.sourceforge.net with esmtp (Exim 4.33) id 1CZ37L-0008LI-Qx; Tue, 30 Nov 2004 00:12:11 -0800 Original-Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.11] helo=sc8-sf-mx1.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1CZ377-0003tS-GH for cc-mode-help@lists.sourceforge.net; Tue, 30 Nov 2004 00:11:57 -0800 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by sc8-sf-mx1.sourceforge.net with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.41) id 1CZ376-0004bc-P2 for cc-mode-help@lists.sourceforge.net; Tue, 30 Nov 2004 00:11:57 -0800 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1CZ34M-00023g-LL; Tue, 30 Nov 2004 03:09:07 -0500 Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Tue, 30 Nov 2004 02:01:48 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) Original-Sender: cc-mode-help-admin@lists.sourceforge.net Errors-To: cc-mode-help-admin@lists.sourceforge.net X-BeenThere: cc-mode-help@lists.sourceforge.net X-Mailman-Version: 2.0.9-sf.net Precedence: bulk List-Unsubscribe: , List-Id: Bug reports, feature requests, and general talk about CC Mode. List-Post: List-Help: List-Subscribe: , List-Archive: X-Original-Date: Tue, 30 Nov 2004 09:11:42 +0100 Xref: main.gmane.org gmane.emacs.cc-mode.general:2076 gmane.emacs.devel:30519 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30519 Richard Stallman 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. [...] C/Objective-C/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 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/