This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: C99
- From: Yao Qi <yao at codesourcery dot com>
- To: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- Cc: <tromey at redhat dot com>, <gdb at sourceware dot org>
- Date: Thu, 18 Jul 2013 14:53:19 +0800
- Subject: Re: C99
- References: <87wqoqi5yf dot fsf at fleche dot redhat dot com> <201307162122 dot r6GLMlMx012078 at glazunov dot sibelius dot xs4all dot nl>
On 07/17/2013 05:22 AM, Mark Kettenis wrote:
Perhaps it is time to move on and start requiring a C99 compiler for GDB.
But "//" comments are offensive to real C programmers!;)
Seriously though. This points out that such a switch has some
consequences for our coding standards. We have a fairly consistent
coding style in GDB, which makes it easy for people to move around in
the codebase without getting distracted by the "looks" of the code. I
think it's worth some effort to keep it that way. And allowing "//"
comments isn't going to help. I'd vote for not using them at all.
+1. Probably we can move to C99 now. Personally, I prefer "/* */" to
"//" in the comments.
However, a more important C99 "misfeature" that affects the coding
standard is the possibility to declare varaibles anywhere in the code.
We should not allow this, except for declaring loop variables in a
for() statement.
I agree.
--
Yao (éå)