annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
1 /* XPM */
25715
09c3ce60f369 Make xpm arrays really const (I missed that they are not strings but
reimar
parents: 23077
diff changeset
2 static const char * const pause_xpm[] = {
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
3 "16 16 29 1",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
4 " c None",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
5 ". c #000000",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
6 "+ c #FFFFFF",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
7 "@ c #737372",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
8 "# c #848483",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
9 "$ c #888887",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
10 "% c #7E7E7D",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
11 "& c #A8A7A6",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
12 "* c #A4A4A3",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
13 "= c #A6A5A4",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
14 "- c #B5B4B3",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
15 "; c #858483",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
16 "> c #AAA9A7",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
17 ", c #C0BFBE",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
18 "' c #91908E",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
19 ") c #AFAEAC",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
20 "! c #CACAC8",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
21 "~ c #A6A5A2",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
22 "{ c #BBBAB7",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
23 "] c #D4D3D2",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
24 "^ c #AEADA9",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
25 "/ c #BFBDBA",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
26 "( c #D7D5D3",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
27 "_ c #B2B0AD",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
28 ": c #C3C1BE",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
29 "< c #D9D8D6",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
30 "[ c #B5B3B0",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
31 "} c #D1CFCC",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
32 "| c #DEDDDB",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
33 " ",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
34 " .....+.....+ ",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
35 " .@#$.+.@#$.+ ",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
36 " .%&*.+.%&*.+ ",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
37 " .%=-.+.%=-.+ ",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
38 " .;>,.+.;>,.+ ",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
39 " .')!.+.')!.+ ",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
40 " .')!.+.')!.+ ",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
41 " .')!.+.')!.+ ",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
42 " .~{].+.~{].+ ",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
43 " .~{].+.~{].+ ",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
44 " .^/(.+.^/(.+ ",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
45 " ._:<.+._:<.+ ",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
46 " .[}|.+.[}|.+ ",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
47 " .....+.....+ ",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
48 " +++++ +++++ "};