[Spice-devel] Function definition style
Christophe Fergeau
cfergeau at redhat.com
Tue Oct 11 08:10:19 UTC 2016
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 at lists.freedesktop.org
> > 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20161011/cd5be65e/attachment.sig>
More information about the Spice-devel
mailing list