Re: Function definition style

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

 



On Mon, Oct 10, 2016 at 04:41:02PM -0500, Jonathon Jongsma wrote:
> > 
> > In spice-gtk we use both style, I don't mind, but I have a slight
> > preference for the first.
> > 
> > declarations are however almost always
> > 
> > static void function_name(type name);
> > 
> > in short, I like glib/gtk style best for no very rationale reasons.
> > _______________________________________________
> > Spice-devel mailing list
> > Spice-devel@xxxxxxxxxxxxxxxxxxxxx
> > https://lists.freedesktop.org/mailman/listinfo/spice-devel
> 
> 
> To be honest, I don't really have much of a preference. I guess the
> first style is a little better when you want to keep the lines from
> getting too long. Perhaps it would be better to choose one and try to
> stick with it, but I don't mind too much if we have both in the code
> base.

I usually put everything on a single line, unless the line gets too
long, in which case I would split. I don't mind either style, though I
probably won't be consistent in using one or the other.

Christophe

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://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]