[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: Re: kdeutils/ktop/ktopd/FreeBSD
From: Rik Hemsley <rik () kde ! org>
Date: 2000-05-28 12:03:55
[Download RAW message or body]
#if David Faure
> > WABA: Don't use // comment in C-files
>
> BTW, is there a gcc compiler option for this ?
> By enabling it by default, we would avoid that anybody commits // comments.
In GNU C, you may use C++ style comments, which start with `//' and
continue until the end of the line. Many other C implementations allow
such comments, and they are likely to be in a future C standard.
However, C++ style comments are not recognized if you specify `-ansi'
or `-traditional', since they are incompatible with traditional
constructs like `dividend//*comment*/divisor'.
Looks like -ansi is the way.
Rik
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic