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

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sat Feb 20 11:22:07 CET 2016


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.


More information about the MPlayer-dev-eng mailing list