Re: [PATCH spice-gtk 02/15] session: protect internal functions against NULL

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

 



Hey,

On Tue, Nov 25, 2014 at 01:44:44PM -0600, Jonathon Jongsma wrote:
> In general spice code follows the C89 style of declaring all variables
> at the very beginning of a block. In fact, I have a vague recollection
> of being asked to move some of my variable declarations to the beginning
> of the function in the past. Here you are moving several statements
> above variable declarations. I'm certainly in full approval of this
> style of coding (as you might expect from a C++ guy...), but I just
> wanted to raise the question. 

Yup, I probably mentioned that at some point. Since then, I've noticed
that in a few places we already have mixed code and declarations
(-Wpedantic reports spice-foreign-menu-listener.c:154 and
quic_family_tmpl.c:77). We also use // in quite a few places.
I'd say we can just go with it as it seems noone feels it's really
important to enforce that.

Christophe

Attachment: pgpU17ZrYuZhC.pgp
Description: PGP signature

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]