This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Mixing comment styles (ansi C)
- From: LLeweLLyn Reese <llewelly at lifesupport dot shutdown dot com>
- To: Tim Johnson <tim at johnsons-web dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 28 Jul 2003 12:03:08 -0700
- Subject: Re: Mixing comment styles (ansi C)
- References: <20030728182212.GH22826@johnsons-web.com>
Tim Johnson <tim@johnsons-web.com> 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