Re: Mixing comment styles (ansi C)

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

 



Tim Johnson <tim@xxxxxxxxxxxxxxxx> writes:

> Hello All:
>     Using gcc 2.96 on RH 7.2. 
> My project targets ansi C code only 
> 
> but for convenience during testing I'd like to use
> C++ style comments along with class C comments
> 
> Is there a gcc option to do this?
[snip]

//-style comments are part of C99, and are enabled by default. gcc
    2.95.3 disables //-style comments if -ansi is used[0], and I
    assume gcc 2.96 does the same (but I don't know where to find docs
    for 2.96, because it was a redhat special and not an official gnu
    release. ) 

I don't see a flag to specifically enable or disable them.

[1] http://gcc.gnu.org/onlinedocs/gcc-2.95.3/gcc_4.html#SEC86


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux