1 /* Generated by ./src/xlat/gen.sh from ./src/xlat/term_oflags_crdly.in; do not edit. */
2
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5
6 #undef XLAT_PREV_VAL
7
8 #ifndef XLAT_MACROS_ONLY
9
10 # ifdef IN_MPERS
11
12 # error static const struct xlat term_oflags_crdly in mpers mode
13
14 # else
15
16 DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
17 static const struct xlat_data term_oflags_crdly_xdata[] = {
18 #if defined(CR0) || (defined(HAVE_DECL_CR0) && HAVE_DECL_CR0)
19 XLAT(CR0),
20 #define XLAT_VAL_0 ((unsigned) (CR0))
21 #define XLAT_STR_0 STRINGIFY(CR0)
22 #endif
23 #if defined(CR1) || (defined(HAVE_DECL_CR1) && HAVE_DECL_CR1)
24 XLAT(CR1),
25 #define XLAT_VAL_1 ((unsigned) (CR1))
26 #define XLAT_STR_1 STRINGIFY(CR1)
27 #endif
28 #if defined(CR2) || (defined(HAVE_DECL_CR2) && HAVE_DECL_CR2)
29 XLAT(CR2),
30 #define XLAT_VAL_2 ((unsigned) (CR2))
31 #define XLAT_STR_2 STRINGIFY(CR2)
32 #endif
33 #if defined(CR3) || (defined(HAVE_DECL_CR3) && HAVE_DECL_CR3)
34 XLAT(CR3),
35 #define XLAT_VAL_3 ((unsigned) (CR3))
36 #define XLAT_STR_3 STRINGIFY(CR3)
37 #endif
38 };
39 static
40 const struct xlat term_oflags_crdly[1] = { {
41 .data = term_oflags_crdly_xdata,
42 .size = ARRAY_SIZE(term_oflags_crdly_xdata),
43 .type = XT_NORMAL,
44 .flags_mask = 0
45 # ifdef XLAT_VAL_0
46 | XLAT_VAL_0
47 # endif
48 # ifdef XLAT_VAL_1
49 | XLAT_VAL_1
50 # endif
51 # ifdef XLAT_VAL_2
52 | XLAT_VAL_2
53 # endif
54 # ifdef XLAT_VAL_3
55 | XLAT_VAL_3
56 # endif
57 ,
58 .flags_strsz = 0
59 # ifdef XLAT_STR_0
60 + sizeof(XLAT_STR_0)
61 # endif
62 # ifdef XLAT_STR_1
63 + sizeof(XLAT_STR_1)
64 # endif
65 # ifdef XLAT_STR_2
66 + sizeof(XLAT_STR_2)
67 # endif
68 # ifdef XLAT_STR_3
69 + sizeof(XLAT_STR_3)
70 # endif
71 ,
72 } };
73 DIAG_POP_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
74
75 # undef XLAT_STR_0
76 # undef XLAT_VAL_0
77 # undef XLAT_STR_1
78 # undef XLAT_VAL_1
79 # undef XLAT_STR_2
80 # undef XLAT_VAL_2
81 # undef XLAT_STR_3
82 # undef XLAT_VAL_3
83 # endif /* !IN_MPERS */
84
85 #endif /* !XLAT_MACROS_ONLY */