Mercurial > mplayer.hg
view gui/mplayer/pixmaps/pause.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 pause_xpm[] = { "16 16 29 1", " c None", ". c #000000", "+ c #FFFFFF", "@ c #737372", "# c #848483", "$ c #888887", "% c #7E7E7D", "& c #A8A7A6", "* c #A4A4A3", "= c #A6A5A4", "- c #B5B4B3", "; c #858483", "> c #AAA9A7", ", c #C0BFBE", "' c #91908E", ") c #AFAEAC", "! c #CACAC8", "~ c #A6A5A2", "{ c #BBBAB7", "] c #D4D3D2", "^ c #AEADA9", "/ c #BFBDBA", "( c #D7D5D3", "_ c #B2B0AD", ": c #C3C1BE", "< c #D9D8D6", "[ c #B5B3B0", "} c #D1CFCC", "| c #DEDDDB", " ", " .....+.....+ ", " .@#$.+.@#$.+ ", " .%&*.+.%&*.+ ", " .%=-.+.%=-.+ ", " .;>,.+.;>,.+ ", " .')!.+.')!.+ ", " .')!.+.')!.+ ", " .')!.+.')!.+ ", " .~{].+.~{].+ ", " .~{].+.~{].+ ", " .^/(.+.^/(.+ ", " ._:<.+._:<.+ ", " .[}|.+.[}|.+ ", " .....+.....+ ", " +++++ +++++ "};