1 /* Generated by ./src/xlat/gen.sh from ./src/xlat/tcxonc_options.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 tcxonc_options in mpers mode
13
14 # else
15
16 DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
17 static const struct xlat_data tcxonc_options_xdata[] = {
18 #if defined(TCOOFF) || (defined(HAVE_DECL_TCOOFF) && HAVE_DECL_TCOOFF)
19 XLAT(TCOOFF),
20 #define XLAT_VAL_0 ((unsigned) (TCOOFF))
21 #define XLAT_STR_0 STRINGIFY(TCOOFF)
22 #endif
23 #if defined(TCOON) || (defined(HAVE_DECL_TCOON) && HAVE_DECL_TCOON)
24 XLAT(TCOON),
25 #define XLAT_VAL_1 ((unsigned) (TCOON))
26 #define XLAT_STR_1 STRINGIFY(TCOON)
27 #endif
28 #if defined(TCIOFF) || (defined(HAVE_DECL_TCIOFF) && HAVE_DECL_TCIOFF)
29 XLAT(TCIOFF),
30 #define XLAT_VAL_2 ((unsigned) (TCIOFF))
31 #define XLAT_STR_2 STRINGIFY(TCIOFF)
32 #endif
33 #if defined(TCION) || (defined(HAVE_DECL_TCION) && HAVE_DECL_TCION)
34 XLAT(TCION),
35 #define XLAT_VAL_3 ((unsigned) (TCION))
36 #define XLAT_STR_3 STRINGIFY(TCION)
37 #endif
38 };
39 static
40 const struct xlat tcxonc_options[1] = { {
41 .data = tcxonc_options_xdata,
42 .size = ARRAY_SIZE(tcxonc_options_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 */