OLD | NEW |
1 %{ | 1 %{ |
2 #include "platform/graphics/Color.h" | 2 #include "platform/graphics/Color.h" |
3 #include <string.h> | 3 #include <string.h> |
4 | 4 |
5 namespace blink { | 5 namespace blink { |
6 | |
7 #if defined(__clang__) | |
8 #pragma clang diagnostic push | |
9 // TODO(thakis): Remove once we use a gperf that no longer produces "register". | |
10 #pragma clang diagnostic ignored "-Wdeprecated-register" | |
11 #endif | |
12 | |
13 %} | 6 %} |
14 %struct-type | 7 %struct-type |
15 struct NamedColor; | 8 struct NamedColor; |
16 %omit-struct-type | 9 %omit-struct-type |
17 %language=C++ | 10 %language=C++ |
18 %readonly-tables | 11 %readonly-tables |
19 %global-table | 12 %global-table |
20 %compare-strncmp | 13 %compare-strncmp |
21 %define class-name ColorDataHash | 14 %define class-name ColorDataHash |
22 %define lookup-function-name findColorImpl | 15 %define lookup-function-name findColorImpl |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 transparent, 0x00000000 | 161 transparent, 0x00000000 |
169 turquoise, 0xff40e0d0 | 162 turquoise, 0xff40e0d0 |
170 violet, 0xffee82ee | 163 violet, 0xffee82ee |
171 violetred, 0xffd02090 | 164 violetred, 0xffd02090 |
172 wheat, 0xfff5deb3 | 165 wheat, 0xfff5deb3 |
173 white, 0xffffffff | 166 white, 0xffffffff |
174 whitesmoke, 0xfff5f5f5 | 167 whitesmoke, 0xfff5f5f5 |
175 yellow, 0xffffff00 | 168 yellow, 0xffffff00 |
176 yellowgreen, 0xff9acd32 | 169 yellowgreen, 0xff9acd32 |
177 %% | 170 %% |
178 | 171 const struct NamedColor* findColor(register const char* str, register unsigned l
en) |
179 #if defined(__clang__) | 172 { |
180 #pragma clang diagnostic pop | 173 return ColorDataHash::findColorImpl(str, len); |
181 #endif | |
182 | |
183 const struct NamedColor* findColor(const char* str, unsigned len) { | |
184 return ColorDataHash::findColorImpl(str, len); | |
185 } | 174 } |
186 | 175 |
187 } // namespace blink | 176 } // namespace blink |
OLD | NEW |