1 /* Generated by ./src/xlat/gen.sh from ./src/xlat/term_cflags.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_cflags in mpers mode
13
14 # else
15
16 DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
17 static const struct xlat_data term_cflags_xdata[] = {
18 #if defined(CSTOPB) || (defined(HAVE_DECL_CSTOPB) && HAVE_DECL_CSTOPB)
19 XLAT(CSTOPB),
20 #define XLAT_VAL_0 ((unsigned) (CSTOPB))
21 #define XLAT_STR_0 STRINGIFY(CSTOPB)
22 #endif
23 #if defined(CREAD) || (defined(HAVE_DECL_CREAD) && HAVE_DECL_CREAD)
24 XLAT(CREAD),
25 #define XLAT_VAL_1 ((unsigned) (CREAD))
26 #define XLAT_STR_1 STRINGIFY(CREAD)
27 #endif
28 #if defined(PARENB) || (defined(HAVE_DECL_PARENB) && HAVE_DECL_PARENB)
29 XLAT(PARENB),
30 #define XLAT_VAL_2 ((unsigned) (PARENB))
31 #define XLAT_STR_2 STRINGIFY(PARENB)
32 #endif
33 #if defined(PARODD) || (defined(HAVE_DECL_PARODD) && HAVE_DECL_PARODD)
34 XLAT(PARODD),
35 #define XLAT_VAL_3 ((unsigned) (PARODD))
36 #define XLAT_STR_3 STRINGIFY(PARODD)
37 #endif
38 #if defined(HUPCL) || (defined(HAVE_DECL_HUPCL) && HAVE_DECL_HUPCL)
39 XLAT(HUPCL),
40 #define XLAT_VAL_4 ((unsigned) (HUPCL))
41 #define XLAT_STR_4 STRINGIFY(HUPCL)
42 #endif
43 #if defined(CLOCAL) || (defined(HAVE_DECL_CLOCAL) && HAVE_DECL_CLOCAL)
44 XLAT(CLOCAL),
45 #define XLAT_VAL_5 ((unsigned) (CLOCAL))
46 #define XLAT_STR_5 STRINGIFY(CLOCAL)
47 #endif
48 #if defined(CTVB) || (defined(HAVE_DECL_CTVB) && HAVE_DECL_CTVB)
49 XLAT(CTVB),
50 #define XLAT_VAL_6 ((unsigned) (CTVB))
51 #define XLAT_STR_6 STRINGIFY(CTVB)
52 #endif
53 #if defined(CMSPAR) || (defined(HAVE_DECL_CMSPAR) && HAVE_DECL_CMSPAR)
54 XLAT(CMSPAR),
55 #define XLAT_VAL_7 ((unsigned) (CMSPAR))
56 #define XLAT_STR_7 STRINGIFY(CMSPAR)
57 #endif
58 #if defined(CRTSCTS) || (defined(HAVE_DECL_CRTSCTS) && HAVE_DECL_CRTSCTS)
59 XLAT(CRTSCTS),
60 #define XLAT_VAL_8 ((unsigned) (CRTSCTS))
61 #define XLAT_STR_8 STRINGIFY(CRTSCTS)
62 #endif
63 };
64 static
65 const struct xlat term_cflags[1] = { {
66 .data = term_cflags_xdata,
67 .size = ARRAY_SIZE(term_cflags_xdata),
68 .type = XT_NORMAL,
69 .flags_mask = 0
70 # ifdef XLAT_VAL_0
71 | XLAT_VAL_0
72 # endif
73 # ifdef XLAT_VAL_1
74 | XLAT_VAL_1
75 # endif
76 # ifdef XLAT_VAL_2
77 | XLAT_VAL_2
78 # endif
79 # ifdef XLAT_VAL_3
80 | XLAT_VAL_3
81 # endif
82 # ifdef XLAT_VAL_4
83 | XLAT_VAL_4
84 # endif
85 # ifdef XLAT_VAL_5
86 | XLAT_VAL_5
87 # endif
88 # ifdef XLAT_VAL_6
89 | XLAT_VAL_6
90 # endif
91 # ifdef XLAT_VAL_7
92 | XLAT_VAL_7
93 # endif
94 # ifdef XLAT_VAL_8
95 | XLAT_VAL_8
96 # endif
97 ,
98 .flags_strsz = 0
99 # ifdef XLAT_STR_0
100 + sizeof(XLAT_STR_0)
101 # endif
102 # ifdef XLAT_STR_1
103 + sizeof(XLAT_STR_1)
104 # endif
105 # ifdef XLAT_STR_2
106 + sizeof(XLAT_STR_2)
107 # endif
108 # ifdef XLAT_STR_3
109 + sizeof(XLAT_STR_3)
110 # endif
111 # ifdef XLAT_STR_4
112 + sizeof(XLAT_STR_4)
113 # endif
114 # ifdef XLAT_STR_5
115 + sizeof(XLAT_STR_5)
116 # endif
117 # ifdef XLAT_STR_6
118 + sizeof(XLAT_STR_6)
119 # endif
120 # ifdef XLAT_STR_7
121 + sizeof(XLAT_STR_7)
122 # endif
123 # ifdef XLAT_STR_8
124 + sizeof(XLAT_STR_8)
125 # endif
126 ,
127 } };
128 DIAG_POP_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
129
130 # undef XLAT_STR_0
131 # undef XLAT_VAL_0
132 # undef XLAT_STR_1
133 # undef XLAT_VAL_1
134 # undef XLAT_STR_2
135 # undef XLAT_VAL_2
136 # undef XLAT_STR_3
137 # undef XLAT_VAL_3
138 # undef XLAT_STR_4
139 # undef XLAT_VAL_4
140 # undef XLAT_STR_5
141 # undef XLAT_VAL_5
142 # undef XLAT_STR_6
143 # undef XLAT_VAL_6
144 # undef XLAT_STR_7
145 # undef XLAT_VAL_7
146 # undef XLAT_STR_8
147 # undef XLAT_VAL_8
148 # endif /* !IN_MPERS */
149
150 #endif /* !XLAT_MACROS_ONLY */