From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Hansen Newsgroups: gmane.emacs.help Subject: Re: Add functions to C-mode? Date: Sun, 20 Apr 2008 14:42:20 +0200 Organization: disorganized Message-ID: <87k5isbsur.fsf@localhorst.mine.nu> References: <4809d165$0$90270$14726298@news.sunsite.dk> <877ietov0k.fsf@localhorst.mine.nu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1208696038 23478 80.91.229.12 (20 Apr 2008 12:53:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Apr 2008 12:53:58 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 20 14:54:33 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JnZ3v-0002ax-9o for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Apr 2008 14:54:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JnZ3G-0004Oh-2W for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Apr 2008 08:53:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JnZ2n-0004Ij-2q for help-gnu-emacs@gnu.org; Sun, 20 Apr 2008 08:53:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JnZ2l-0004I6-FB for help-gnu-emacs@gnu.org; Sun, 20 Apr 2008 08:53:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JnZ2l-0004I1-CA for help-gnu-emacs@gnu.org; Sun, 20 Apr 2008 08:53:19 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JnZ2k-0003hB-Lw for help-gnu-emacs@gnu.org; Sun, 20 Apr 2008 08:53:19 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JnZ2g-0006qt-UH for help-gnu-emacs@gnu.org; Sun, 20 Apr 2008 12:53:14 +0000 Original-Received: from e178062124.adsl.alicedsl.de ([85.178.62.124]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 20 Apr 2008 12:53:14 +0000 Original-Received: from david.hansen by e178062124.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 20 Apr 2008 12:53:14 +0000 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 35 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: e178062124.adsl.alicedsl.de Mail-Copies-To: nobody User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:q6UJ74LjIe242IDbQ3ZxjHe9RVk= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:53417 Archived-At: On Sun, 20 Apr 2008 15:26:08 +0300 Eli Zaretskii wrote: >> From: David Hansen >> Date: Sun, 20 Apr 2008 09:17:15 +0200 >> >> On Sat, 19 Apr 2008 14:08:18 -0700 (PDT) Jason Rumney wrote: >> >> > On Apr 19, 6:16 pm, David Hansen wrote: >> > >> >> If you insist on "//" (which is btw not ANSI C) >> > >> > Single line comments starting with // are part of the current ANSI and >> > ISO standard (C99) >> > . >> >> AFAIK a standard w/o implementation. > > ??? You mean GCC does not count? The below compiles without any > warnings with GCC 3.4.2: > > $ cat tcomment.c > int main (void) > { > int foo = 3; // C99 comment > > return foo; > } > > $ gcc -std=c99 -Wall -Wextra -pedantic tcomment.c > $ Supporting one tiny feature doesn't make it a full implementation of C99. David