qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] CODING_STYLE: Section about mixed declarations


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH] CODING_STYLE: Section about mixed declarations
Date: Fri, 14 Feb 2014 15:38:51 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Sun, Feb 09, 2014 at 07:03:01AM -0200, Eduardo Habkost wrote:
> We had an unwritten rule about declarations having to be at beginning of
> blocks. Make it a written rule.
> 
> Signed-off-by: Eduardo Habkost <address@hidden>
> ---
>  CODING_STYLE | 7 +++++++
>  1 file changed, 7 insertions(+)

I think C99 mixed declarations and code are a good thing.  It's easier
to read code when the local variable type is alongside the
initialization.

I'll try to avoid mixed declarations and code if the others feel this
rule is worthwhile.

Stefan



reply via email to

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