annotate gui/mplayer/pixmaps/skin.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 skin_xpm[] = {
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
3 "16 16 162 2",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
4 " c None",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
5 ". c #DBA97F",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
6 "+ c #C7A89B",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
7 "@ c #E1DFDD",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
8 "# c #BE9D76",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
9 "$ c #A35019",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
10 "% c #A8978C",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
11 "& c #D3D2D0",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
12 "* c #DAD8D7",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
13 "= c #D9D6D4",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
14 "- c #BEBCB9",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
15 "; c #BCAA95",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
16 "> c #D78236",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
17 ", c #844A36",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
18 "' c #DADFE4",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
19 ") c #E0E8E8",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
20 "! c #C8D2D3",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
21 "~ c #B5B7B7",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
22 "{ c #DCDAD7",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
23 "] c #BBB7B0",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
24 "^ c #CCCACB",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
25 "/ c #D2D0D3",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
26 "( c #EDAF6C",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
27 "_ c #953600",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
28 ": c #28257E",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
29 "< c #A1B4F3",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
30 "[ c #F5B7AC",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
31 "} c #F4A296",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
32 "| c #E5E7EB",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
33 "1 c #ABB1B6",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
34 "2 c #C8C4C0",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
35 "3 c #CECBC5",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
36 "4 c #F7F7F9",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
37 "5 c #53548A",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
38 "6 c #967265",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
39 "7 c #DE741B",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
40 "8 c #6F3937",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
41 "9 c #4155C2",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
42 "0 c #A8BAEB",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
43 "a c #E65138",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
44 "b c #DD0C00",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
45 "c c #F1D2D5",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
46 "d c #BECFD8",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
47 "e c #B5BABE",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
48 "f c #C2BEB9",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
49 "g c #E9E7E5",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
50 "h c #FFFFFF",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
51 "i c #F9FBFF",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
52 "j c #71667C",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
53 "k c #E49146",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
54 "l c #9D3501",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
55 "m c #BFB7BD",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
56 "n c #E5F6FE",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
57 "o c #DCF0FF",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
58 "p c #D7B2BD",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
59 "q c #D18F98",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
60 "r c #D0DCF6",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
61 "s c #D8E5F1",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
62 "t c #9DA4A7",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
63 "u c #CECBC6",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
64 "v c #EAE8E6",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
65 "w c #9F9EA3",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
66 "x c #444349",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
67 "y c #C3C4C7",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
68 "z c #E7BD90",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
69 "A c #CD5A0B",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
70 "B c #946454",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
71 "C c #E7F9FF",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
72 "D c #DFF1FF",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
73 "E c #D8EAFF",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
74 "F c #AFE5E5",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
75 "G c #3ACB52",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
76 "H c #6BCE85",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
77 "I c #DBE7FB",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
78 "J c #9DA2A9",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
79 "K c #B9B4AF",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
80 "L c #636167",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
81 "M c #000004",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
82 "N c #8B7E74",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
83 "O c #EF9853",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
84 "P c #913710",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
85 "Q c #CDD6DF",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
86 "R c #E1F5FF",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
87 "S c #D2E9FF",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
88 "T c #CFE6FF",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
89 "U c #97D6CA",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
90 "V c #03B200",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
91 "W c #44C54A",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
92 "X c #CCDAEF",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
93 "Y c #9DA5AF",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
94 "Z c #BBB6B1",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
95 "` c #E7E7E8",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
96 " . c #BBC1CC",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
97 ".. c #D3B59C",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
98 "+. c #AF4E1E",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
99 "@. c #B1A3A5",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
100 "#. c #E4FBFF",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
101 "$. c #D4ECFF",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
102 "%. c #CAE5FF",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
103 "&. c #C5E1F2",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
104 "*. c #B7DAE7",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
105 "=. c #86CCC7",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
106 "-. c #B3E3E5",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
107 ";. c #A7B6C5",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
108 ">. c #BAC1C8",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
109 ",. c #BFBBB6",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
110 "'. c #E6E5E3",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
111 "). c #F5E9CC",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
112 "!. c #BC9877",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
113 "~. c #987977",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
114 "{. c #B3BDC4",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
115 "]. c #A8AEB3",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
116 "^. c #B0C0D0",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
117 "/. c #BCDAF3",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
118 "(. c #DCD443",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
119 "_. c #E5D620",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
120 ":. c #BFDCF1",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
121 "<. c #C1D6F7",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
122 "[. c #A7B0B9",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
123 "}. c #C7C6C3",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
124 "|. c #ABA194",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
125 "1. c #CDA447",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
126 "2. c #8E4B00",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
127 "3. c #958685",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
128 "4. c #D9DADA",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
129 "5. c #E1E0E0",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
130 "6. c #A4A5A7",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
131 "7. c #8FA6BC",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
132 "8. c #D1CD44",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
133 "9. c #F3E538",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
134 "0. c #C6D9DB",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
135 "a. c #9DABBC",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
136 "b. c #B0A08A",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
137 "c. c #9C7A32",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
138 "d. c #6A380E",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
139 "e. c #989DA6",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
140 "f. c #8E9296",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
141 "g. c #8D9196",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
142 "h. c #92A7B9",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
143 "i. c #AFD5FC",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
144 "j. c #BFDFF2",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
145 "k. c #B0C3CA",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
146 "l. c #A1ADB7",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
147 "m. c #C9C1B8",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
148 "n. c #8D6841",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
149 "o. c #6C4C2C",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
150 "p. c #7E7267",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
151 "q. c #A1ACB7",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
152 "r. c #BFD5EA",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
153 "s. c #BEDBF5",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
154 "t. c #BEDDFA",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
155 "u. c #AFC6DA",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
156 "v. c #97A5B3",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
157 "w. c #BDC4C9",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
158 "x. c #D8D5D0",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
159 "y. c #BDB7AF",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
160 "z. c #DDDBD8",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
161 "A. c #BDC2C7",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
162 "B. c #A0A7AD",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
163 "C. c #9DA6AD",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
164 "D. c #A0A9B1",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
165 "E. c #C2C6CB",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
166 " ",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
167 " . + ",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
168 " @ # $ % & * ",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
169 " = - ; > , ' ) ! ~ ",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
170 " { ] ^ / ( _ : < [ } | 1 ",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
171 " 2 3 4 5 6 7 8 9 0 a b c d e ",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
172 " f g h i j k l m n o p q r s t ",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
173 "u v w x y z A B C D E F G H I J ",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
174 "K h L M N O P Q R S T U V W X Y ",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
175 "Z h ` ...+.@.#.$.%.&.*.=.-.;.>.",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
176 ",.'.h ).!.~.{.].^./.(._.:.<.[. ",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
177 " }.|.1.2.3.4.5.6.7.8.9.0.a. ",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
178 " b.c.d.e.f.g.h.i.j.k.l. ",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
179 " m.n.o.p.q.r.s.t.u.v.w. ",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
180 " x.y.z. A.B.C.D.E. ",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
181 " "};