help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Add functions to C-mode?


From: Richard G Riley
Subject: Re: Add functions to C-mode?
Date: Sun, 20 Apr 2008 15:28:46 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux)

David Hansen <david.hansen@gmx.net> writes:

> On Sun, 20 Apr 2008 15:26:08 +0300 Eli Zaretskii wrote:
>
>>> From: David Hansen <david.hansen@gmx.net>
>>> 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 <david.han...@gmx.net> 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

http://gcc.gnu.org/c99status.html

It's far from "one tiny feature".


reply via email to

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