1 /* Generated by ./src/xlat/gen.sh from ./src/xlat/kd_key_brl_keys.in; do not edit. */
2
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5
6 #if defined(K_BRL_BLANK) || (defined(HAVE_DECL_K_BRL_BLANK) && HAVE_DECL_K_BRL_BLANK)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((K_BRL_BLANK) == (K(KT_BRL, 0)), "K_BRL_BLANK != K(KT_BRL, 0)");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define K_BRL_BLANK K(KT_BRL, 0)
12 #endif
13 #if defined(K_BRL_BLANK) || (defined(HAVE_DECL_K_BRL_BLANK) && HAVE_DECL_K_BRL_BLANK)
14 #if defined XLAT_PREV_VAL
15 static_assert((unsigned long long) (K_BRL_BLANK)
16 > (unsigned long long) (XLAT_PREV_VAL),
17 "Incorrect order in #sorted xlat: K_BRL_BLANK"
18 " is not larger than the previous value");
19 #endif
20 #undef XLAT_PREV_VAL
21 #define XLAT_PREV_VAL (K_BRL_BLANK)
22 #endif
23 #if defined(K_BRL_DOT1) || (defined(HAVE_DECL_K_BRL_DOT1) && HAVE_DECL_K_BRL_DOT1)
24 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
25 static_assert((K_BRL_DOT1) == (K(KT_BRL, 1)), "K_BRL_DOT1 != K(KT_BRL, 1)");
26 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
27 #else
28 # define K_BRL_DOT1 K(KT_BRL, 1)
29 #endif
30 #if defined(K_BRL_DOT1) || (defined(HAVE_DECL_K_BRL_DOT1) && HAVE_DECL_K_BRL_DOT1)
31 #if defined XLAT_PREV_VAL
32 static_assert((unsigned long long) (K_BRL_DOT1)
33 > (unsigned long long) (XLAT_PREV_VAL),
34 "Incorrect order in #sorted xlat: K_BRL_DOT1"
35 " is not larger than the previous value");
36 #endif
37 #undef XLAT_PREV_VAL
38 #define XLAT_PREV_VAL (K_BRL_DOT1)
39 #endif
40 #if defined(K_BRL_DOT2) || (defined(HAVE_DECL_K_BRL_DOT2) && HAVE_DECL_K_BRL_DOT2)
41 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
42 static_assert((K_BRL_DOT2) == (K(KT_BRL, 2)), "K_BRL_DOT2 != K(KT_BRL, 2)");
43 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
44 #else
45 # define K_BRL_DOT2 K(KT_BRL, 2)
46 #endif
47 #if defined(K_BRL_DOT2) || (defined(HAVE_DECL_K_BRL_DOT2) && HAVE_DECL_K_BRL_DOT2)
48 #if defined XLAT_PREV_VAL
49 static_assert((unsigned long long) (K_BRL_DOT2)
50 > (unsigned long long) (XLAT_PREV_VAL),
51 "Incorrect order in #sorted xlat: K_BRL_DOT2"
52 " is not larger than the previous value");
53 #endif
54 #undef XLAT_PREV_VAL
55 #define XLAT_PREV_VAL (K_BRL_DOT2)
56 #endif
57 #if defined(K_BRL_DOT3) || (defined(HAVE_DECL_K_BRL_DOT3) && HAVE_DECL_K_BRL_DOT3)
58 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
59 static_assert((K_BRL_DOT3) == (K(KT_BRL, 3)), "K_BRL_DOT3 != K(KT_BRL, 3)");
60 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
61 #else
62 # define K_BRL_DOT3 K(KT_BRL, 3)
63 #endif
64 #if defined(K_BRL_DOT3) || (defined(HAVE_DECL_K_BRL_DOT3) && HAVE_DECL_K_BRL_DOT3)
65 #if defined XLAT_PREV_VAL
66 static_assert((unsigned long long) (K_BRL_DOT3)
67 > (unsigned long long) (XLAT_PREV_VAL),
68 "Incorrect order in #sorted xlat: K_BRL_DOT3"
69 " is not larger than the previous value");
70 #endif
71 #undef XLAT_PREV_VAL
72 #define XLAT_PREV_VAL (K_BRL_DOT3)
73 #endif
74 #if defined(K_BRL_DOT4) || (defined(HAVE_DECL_K_BRL_DOT4) && HAVE_DECL_K_BRL_DOT4)
75 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
76 static_assert((K_BRL_DOT4) == (K(KT_BRL, 4)), "K_BRL_DOT4 != K(KT_BRL, 4)");
77 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
78 #else
79 # define K_BRL_DOT4 K(KT_BRL, 4)
80 #endif
81 #if defined(K_BRL_DOT4) || (defined(HAVE_DECL_K_BRL_DOT4) && HAVE_DECL_K_BRL_DOT4)
82 #if defined XLAT_PREV_VAL
83 static_assert((unsigned long long) (K_BRL_DOT4)
84 > (unsigned long long) (XLAT_PREV_VAL),
85 "Incorrect order in #sorted xlat: K_BRL_DOT4"
86 " is not larger than the previous value");
87 #endif
88 #undef XLAT_PREV_VAL
89 #define XLAT_PREV_VAL (K_BRL_DOT4)
90 #endif
91 #if defined(K_BRL_DOT5) || (defined(HAVE_DECL_K_BRL_DOT5) && HAVE_DECL_K_BRL_DOT5)
92 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
93 static_assert((K_BRL_DOT5) == (K(KT_BRL, 5)), "K_BRL_DOT5 != K(KT_BRL, 5)");
94 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
95 #else
96 # define K_BRL_DOT5 K(KT_BRL, 5)
97 #endif
98 #if defined(K_BRL_DOT5) || (defined(HAVE_DECL_K_BRL_DOT5) && HAVE_DECL_K_BRL_DOT5)
99 #if defined XLAT_PREV_VAL
100 static_assert((unsigned long long) (K_BRL_DOT5)
101 > (unsigned long long) (XLAT_PREV_VAL),
102 "Incorrect order in #sorted xlat: K_BRL_DOT5"
103 " is not larger than the previous value");
104 #endif
105 #undef XLAT_PREV_VAL
106 #define XLAT_PREV_VAL (K_BRL_DOT5)
107 #endif
108 #if defined(K_BRL_DOT6) || (defined(HAVE_DECL_K_BRL_DOT6) && HAVE_DECL_K_BRL_DOT6)
109 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
110 static_assert((K_BRL_DOT6) == (K(KT_BRL, 6)), "K_BRL_DOT6 != K(KT_BRL, 6)");
111 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
112 #else
113 # define K_BRL_DOT6 K(KT_BRL, 6)
114 #endif
115 #if defined(K_BRL_DOT6) || (defined(HAVE_DECL_K_BRL_DOT6) && HAVE_DECL_K_BRL_DOT6)
116 #if defined XLAT_PREV_VAL
117 static_assert((unsigned long long) (K_BRL_DOT6)
118 > (unsigned long long) (XLAT_PREV_VAL),
119 "Incorrect order in #sorted xlat: K_BRL_DOT6"
120 " is not larger than the previous value");
121 #endif
122 #undef XLAT_PREV_VAL
123 #define XLAT_PREV_VAL (K_BRL_DOT6)
124 #endif
125 #if defined(K_BRL_DOT7) || (defined(HAVE_DECL_K_BRL_DOT7) && HAVE_DECL_K_BRL_DOT7)
126 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
127 static_assert((K_BRL_DOT7) == (K(KT_BRL, 7)), "K_BRL_DOT7 != K(KT_BRL, 7)");
128 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
129 #else
130 # define K_BRL_DOT7 K(KT_BRL, 7)
131 #endif
132 #if defined(K_BRL_DOT7) || (defined(HAVE_DECL_K_BRL_DOT7) && HAVE_DECL_K_BRL_DOT7)
133 #if defined XLAT_PREV_VAL
134 static_assert((unsigned long long) (K_BRL_DOT7)
135 > (unsigned long long) (XLAT_PREV_VAL),
136 "Incorrect order in #sorted xlat: K_BRL_DOT7"
137 " is not larger than the previous value");
138 #endif
139 #undef XLAT_PREV_VAL
140 #define XLAT_PREV_VAL (K_BRL_DOT7)
141 #endif
142 #if defined(K_BRL_DOT8) || (defined(HAVE_DECL_K_BRL_DOT8) && HAVE_DECL_K_BRL_DOT8)
143 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
144 static_assert((K_BRL_DOT8) == (K(KT_BRL, 8)), "K_BRL_DOT8 != K(KT_BRL, 8)");
145 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
146 #else
147 # define K_BRL_DOT8 K(KT_BRL, 8)
148 #endif
149 #if defined(K_BRL_DOT8) || (defined(HAVE_DECL_K_BRL_DOT8) && HAVE_DECL_K_BRL_DOT8)
150 #if defined XLAT_PREV_VAL
151 static_assert((unsigned long long) (K_BRL_DOT8)
152 > (unsigned long long) (XLAT_PREV_VAL),
153 "Incorrect order in #sorted xlat: K_BRL_DOT8"
154 " is not larger than the previous value");
155 #endif
156 #undef XLAT_PREV_VAL
157 #define XLAT_PREV_VAL (K_BRL_DOT8)
158 #endif
159 #if defined(K_BRL_DOT9) || (defined(HAVE_DECL_K_BRL_DOT9) && HAVE_DECL_K_BRL_DOT9)
160 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
161 static_assert((K_BRL_DOT9) == (K(KT_BRL, 9)), "K_BRL_DOT9 != K(KT_BRL, 9)");
162 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
163 #else
164 # define K_BRL_DOT9 K(KT_BRL, 9)
165 #endif
166 #if defined(K_BRL_DOT9) || (defined(HAVE_DECL_K_BRL_DOT9) && HAVE_DECL_K_BRL_DOT9)
167 #if defined XLAT_PREV_VAL
168 static_assert((unsigned long long) (K_BRL_DOT9)
169 > (unsigned long long) (XLAT_PREV_VAL),
170 "Incorrect order in #sorted xlat: K_BRL_DOT9"
171 " is not larger than the previous value");
172 #endif
173 #undef XLAT_PREV_VAL
174 #define XLAT_PREV_VAL (K_BRL_DOT9)
175 #endif
176 #if defined(K_BRL_DOT10) || (defined(HAVE_DECL_K_BRL_DOT10) && HAVE_DECL_K_BRL_DOT10)
177 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
178 static_assert((K_BRL_DOT10) == (K(KT_BRL, 10)), "K_BRL_DOT10 != K(KT_BRL, 10)");
179 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
180 #else
181 # define K_BRL_DOT10 K(KT_BRL, 10)
182 #endif
183 #if defined(K_BRL_DOT10) || (defined(HAVE_DECL_K_BRL_DOT10) && HAVE_DECL_K_BRL_DOT10)
184 #if defined XLAT_PREV_VAL
185 static_assert((unsigned long long) (K_BRL_DOT10)
186 > (unsigned long long) (XLAT_PREV_VAL),
187 "Incorrect order in #sorted xlat: K_BRL_DOT10"
188 " is not larger than the previous value");
189 #endif
190 #undef XLAT_PREV_VAL
191 #define XLAT_PREV_VAL (K_BRL_DOT10)
192 #endif
193 #undef XLAT_PREV_VAL
194
195 #ifndef XLAT_MACROS_ONLY
196
197 # ifdef IN_MPERS
198
199 # error static const struct xlat kd_key_brl_keys in mpers mode
200
201 # else
202
203 DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
204 static const struct xlat_data kd_key_brl_keys_xdata[] = {
205 XLAT(K_BRL_BLANK),
206 #define XLAT_VAL_0 ((unsigned) (K_BRL_BLANK))
207 #define XLAT_STR_0 STRINGIFY(K_BRL_BLANK)
208 XLAT(K_BRL_DOT1),
209 #define XLAT_VAL_1 ((unsigned) (K_BRL_DOT1))
210 #define XLAT_STR_1 STRINGIFY(K_BRL_DOT1)
211 XLAT(K_BRL_DOT2),
212 #define XLAT_VAL_2 ((unsigned) (K_BRL_DOT2))
213 #define XLAT_STR_2 STRINGIFY(K_BRL_DOT2)
214 XLAT(K_BRL_DOT3),
215 #define XLAT_VAL_3 ((unsigned) (K_BRL_DOT3))
216 #define XLAT_STR_3 STRINGIFY(K_BRL_DOT3)
217 XLAT(K_BRL_DOT4),
218 #define XLAT_VAL_4 ((unsigned) (K_BRL_DOT4))
219 #define XLAT_STR_4 STRINGIFY(K_BRL_DOT4)
220 XLAT(K_BRL_DOT5),
221 #define XLAT_VAL_5 ((unsigned) (K_BRL_DOT5))
222 #define XLAT_STR_5 STRINGIFY(K_BRL_DOT5)
223 XLAT(K_BRL_DOT6),
224 #define XLAT_VAL_6 ((unsigned) (K_BRL_DOT6))
225 #define XLAT_STR_6 STRINGIFY(K_BRL_DOT6)
226 XLAT(K_BRL_DOT7),
227 #define XLAT_VAL_7 ((unsigned) (K_BRL_DOT7))
228 #define XLAT_STR_7 STRINGIFY(K_BRL_DOT7)
229 XLAT(K_BRL_DOT8),
230 #define XLAT_VAL_8 ((unsigned) (K_BRL_DOT8))
231 #define XLAT_STR_8 STRINGIFY(K_BRL_DOT8)
232 XLAT(K_BRL_DOT9),
233 #define XLAT_VAL_9 ((unsigned) (K_BRL_DOT9))
234 #define XLAT_STR_9 STRINGIFY(K_BRL_DOT9)
235 XLAT(K_BRL_DOT10),
236 #define XLAT_VAL_10 ((unsigned) (K_BRL_DOT10))
237 #define XLAT_STR_10 STRINGIFY(K_BRL_DOT10)
238 };
239 static
240 const struct xlat kd_key_brl_keys[1] = { {
241 .data = kd_key_brl_keys_xdata,
242 .size = ARRAY_SIZE(kd_key_brl_keys_xdata),
243 .type = XT_SORTED,
244 .flags_mask = 0
245 # ifdef XLAT_VAL_0
246 | XLAT_VAL_0
247 # endif
248 # ifdef XLAT_VAL_1
249 | XLAT_VAL_1
250 # endif
251 # ifdef XLAT_VAL_2
252 | XLAT_VAL_2
253 # endif
254 # ifdef XLAT_VAL_3
255 | XLAT_VAL_3
256 # endif
257 # ifdef XLAT_VAL_4
258 | XLAT_VAL_4
259 # endif
260 # ifdef XLAT_VAL_5
261 | XLAT_VAL_5
262 # endif
263 # ifdef XLAT_VAL_6
264 | XLAT_VAL_6
265 # endif
266 # ifdef XLAT_VAL_7
267 | XLAT_VAL_7
268 # endif
269 # ifdef XLAT_VAL_8
270 | XLAT_VAL_8
271 # endif
272 # ifdef XLAT_VAL_9
273 | XLAT_VAL_9
274 # endif
275 # ifdef XLAT_VAL_10
276 | XLAT_VAL_10
277 # endif
278 ,
279 .flags_strsz = 0
280 # ifdef XLAT_STR_0
281 + sizeof(XLAT_STR_0)
282 # endif
283 # ifdef XLAT_STR_1
284 + sizeof(XLAT_STR_1)
285 # endif
286 # ifdef XLAT_STR_2
287 + sizeof(XLAT_STR_2)
288 # endif
289 # ifdef XLAT_STR_3
290 + sizeof(XLAT_STR_3)
291 # endif
292 # ifdef XLAT_STR_4
293 + sizeof(XLAT_STR_4)
294 # endif
295 # ifdef XLAT_STR_5
296 + sizeof(XLAT_STR_5)
297 # endif
298 # ifdef XLAT_STR_6
299 + sizeof(XLAT_STR_6)
300 # endif
301 # ifdef XLAT_STR_7
302 + sizeof(XLAT_STR_7)
303 # endif
304 # ifdef XLAT_STR_8
305 + sizeof(XLAT_STR_8)
306 # endif
307 # ifdef XLAT_STR_9
308 + sizeof(XLAT_STR_9)
309 # endif
310 # ifdef XLAT_STR_10
311 + sizeof(XLAT_STR_10)
312 # endif
313 ,
314 } };
315 DIAG_POP_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
316
317 # undef XLAT_STR_0
318 # undef XLAT_VAL_0
319 # undef XLAT_STR_1
320 # undef XLAT_VAL_1
321 # undef XLAT_STR_2
322 # undef XLAT_VAL_2
323 # undef XLAT_STR_3
324 # undef XLAT_VAL_3
325 # undef XLAT_STR_4
326 # undef XLAT_VAL_4
327 # undef XLAT_STR_5
328 # undef XLAT_VAL_5
329 # undef XLAT_STR_6
330 # undef XLAT_VAL_6
331 # undef XLAT_STR_7
332 # undef XLAT_VAL_7
333 # undef XLAT_STR_8
334 # undef XLAT_VAL_8
335 # undef XLAT_STR_9
336 # undef XLAT_VAL_9
337 # undef XLAT_STR_10
338 # undef XLAT_VAL_10
339 # endif /* !IN_MPERS */
340
341 #endif /* !XLAT_MACROS_ONLY */