Web lists-archives.com

Re: [MPlayer-dev-eng] [PATCH] gui/menu: optimize language table.




On Sun, Feb 14, 2016 at 08:33:00AM +0100, Ingo Brückl wrote:
> Reimar Döffinger wrote on Sat, 13 Feb 2016 23:50:48 +0100:
> 
> > Store fixed size 4 entry directly
> > instead of via pointer.
> >  gui/dialog/menu.c | 2 +-
> 
> > - const char * id2;
> > + const char id2[4];
> 
> This patch should do better.

It's a bit more complex, and for char arrays a simple sizeof()
would work just as well, but it's fine.
Go ahead with whatever you like best.
_______________________________________________
MPlayer-dev-eng mailing list
MPlayer-dev-eng@xxxxxxxxxxxx
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng