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: David Hansen
Subject: Re: Add functions to C-mode?
Date: Sun, 20 Apr 2008 14:42:20 +0200
User-agent: Gnus/5.110009 (No Gnus v0.9) Emacs/23.0.60 (gnu/linux)

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





reply via email to

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