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 15:26:08 +0300 Message-ID: References: <4809d165$0$90270$14726298@news.sunsite.dk> <877ietov0k.fsf@localhorst.mine.nu> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1208694406 19267 80.91.229.12 (20 Apr 2008 12:26:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Apr 2008 12:26:46 +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:27:20 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 1JnYdb-0008L0-7V for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Apr 2008 14:27:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JnYcv-0007Cp-Pi for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Apr 2008 08:26:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JnYcX-0007Cc-JG for help-gnu-emacs@gnu.org; Sun, 20 Apr 2008 08:26:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JnYcV-0007CC-Lk for help-gnu-emacs@gnu.org; Sun, 20 Apr 2008 08:26:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JnYcV-0007C6-Eu for help-gnu-emacs@gnu.org; Sun, 20 Apr 2008 08:26:11 -0400 Original-Received: from mtaout2.012.net.il ([84.95.2.4]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JnYcV-0002T6-7Z for help-gnu-emacs@gnu.org; Sun, 20 Apr 2008 08:26:11 -0400 Original-Received: from HOME-C4E4A596F7 ([80.230.59.104]) by i_mtaout2.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0JZM00KR9J74PQU1@i_mtaout2.012.net.il> for help-gnu-emacs@gnu.org; Sun, 20 Apr 2008 15:40:16 +0300 (IDT) In-reply-to: <877ietov0k.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:53415 Archived-At: > 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 $