Re: [PATCH] gui/menu: optimize language table.

Reimar Döffinger <[email protected]>
Newsgroups gmane.comp.video.mplayer.devel
Message-ID <[email protected]>
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
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.