Mercurial > mplayer.hg
view gui/mplayer/pixmaps/ok.xpm @ 32979:4905f5a87357
Replace some awkward and unnecessary usages of strlen().
1. A string length of zero or greater than zero can be determined by checking
the first byte.
2. Leave it to strdup() to determine the length and to do allocation for a
string that is to be copied.
3. If neither the string length nor the index variable is altered in a loop,
string[index] (!= 0) is the condition to go with.
author | ib |
---|---|
date | Thu, 10 Mar 2011 14:20:36 +0000 |
parents | 09c3ce60f369 |
children |
line wrap: on
line source
/* XPM */ static const char * const ok_xpm[] = { "37 16 5 1", " c None", ". c #3539EC", "+ c #6E71EA", "@ c #000000", "# c #1C1E7C", " ", " ", " ", " ... ", " .++. @@@@@ @@ ", " .........++. @@@ @@@ @@ ", " .+++++++...+. @@ @@@ @@ @@ ", " ............+. @@ @@ @@ @@ ", " ............... @@ @@ @@@@ ", " .............# @@ @@@ @@@@@ ", " ............# @@@ @@@ @@ @@ ", " #######....# @@@@@ @@ @@ ", " ...# ", " ### ", " ", " "};