Web lists-archives.com

Re: [MPlayer-dev-eng] uncrustify config

On Sat, Feb 13, 2016 at 09:44:50PM +0100, Ingo Brückl wrote:
> Reimar,
> do we prefer
>   typedef void * (*foo)(void);
> or
>   typedef void *(*foo)(void);
> Uncrustify needs the typedef to recognize the function pointer
> (necessary anyway?). Without typedef it outputs the 2nd one
> (i.e. removes spaces between pointer star and parenthesis).

I don't think I've ever though about that.
Function pointers look horrible either way...
Looking at gl_common.h indicates no real consistency.
I'd probably vote for the second if I had to decide.
MPlayer-dev-eng mailing list