From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Add functions to C-mode? Date: Sun, 20 Apr 2008 16:51:43 +0300 Message-ID: References: <4809d165$0$90270$14726298@news.sunsite.dk> <877ietov0k.fsf@localhorst.mine.nu> <87k5isbsur.fsf@localhorst.mine.nu> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1208699586 3108 80.91.229.12 (20 Apr 2008 13:53:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Apr 2008 13:53:06 +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 15:53:40 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 1JnZz8-0001IV-TS for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Apr 2008 15:53:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JnZyT-00085c-LN for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Apr 2008 09:52:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JnZyB-00085F-Ai for help-gnu-emacs@gnu.org; Sun, 20 Apr 2008 09:52:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JnZy8-00084i-Uz for help-gnu-emacs@gnu.org; Sun, 20 Apr 2008 09:52:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JnZy8-00084f-S1 for help-gnu-emacs@gnu.org; Sun, 20 Apr 2008 09:52:36 -0400 Original-Received: from mtaout5.012.net.il ([84.95.2.13]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JnZy8-0004XK-PM for help-gnu-emacs@gnu.org; Sun, 20 Apr 2008 09:52:37 -0400 Original-Received: from HOME-C4E4A596F7 ([80.230.59.104]) by i_mtaout5.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0JZM00JVGN5S0639@i_mtaout5.012.net.il> for help-gnu-emacs@gnu.org; Sun, 20 Apr 2008 17:05:55 +0300 (IDT) In-reply-to: <87k5isbsur.fsf@localhorst.mine.nu> X-012-Sender: halo1@inter.net.il X-detected-kernel: by monty-python.gnu.org: Solaris 9.1 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:53421 Archived-At: > From: David Hansen > Date: Sun, 20 Apr 2008 14:42:20 +0200 > > 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. But this discussion _was_ about that one feature.