1 /* Generated by ./src/xlat/gen.sh from ./src/xlat/mctl_sync.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 mctl_sync in mpers mode
13
14 # else
15
16 DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
17 static const struct xlat_data mctl_sync_xdata[] = {
18 #if defined(MS_SYNC) || (defined(HAVE_DECL_MS_SYNC) && HAVE_DECL_MS_SYNC)
19 XLAT(MS_SYNC),
20 #define XLAT_VAL_0 ((unsigned) (MS_SYNC))
21 #define XLAT_STR_0 STRINGIFY(MS_SYNC)
22 #endif
23 #if defined(MS_ASYNC) || (defined(HAVE_DECL_MS_ASYNC) && HAVE_DECL_MS_ASYNC)
24 XLAT(MS_ASYNC),
25 #define XLAT_VAL_1 ((unsigned) (MS_ASYNC))
26 #define XLAT_STR_1 STRINGIFY(MS_ASYNC)
27 #endif
28 #if defined(MS_INVALIDATE) || (defined(HAVE_DECL_MS_INVALIDATE) && HAVE_DECL_MS_INVALIDATE)
29 XLAT(MS_INVALIDATE),
30 #define XLAT_VAL_2 ((unsigned) (MS_INVALIDATE))
31 #define XLAT_STR_2 STRINGIFY(MS_INVALIDATE)
32 #endif
33 };
34 static
35 const struct xlat mctl_sync[1] = { {
36 .data = mctl_sync_xdata,
37 .size = ARRAY_SIZE(mctl_sync_xdata),
38 .type = XT_NORMAL,
39 .flags_mask = 0
40 # ifdef XLAT_VAL_0
41 | XLAT_VAL_0
42 # endif
43 # ifdef XLAT_VAL_1
44 | XLAT_VAL_1
45 # endif
46 # ifdef XLAT_VAL_2
47 | XLAT_VAL_2
48 # endif
49 ,
50 .flags_strsz = 0
51 # ifdef XLAT_STR_0
52 + sizeof(XLAT_STR_0)
53 # endif
54 # ifdef XLAT_STR_1
55 + sizeof(XLAT_STR_1)
56 # endif
57 # ifdef XLAT_STR_2
58 + sizeof(XLAT_STR_2)
59 # endif
60 ,
61 } };
62 DIAG_POP_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
63
64 # undef XLAT_STR_0
65 # undef XLAT_VAL_0
66 # undef XLAT_STR_1
67 # undef XLAT_VAL_1
68 # undef XLAT_STR_2
69 # undef XLAT_VAL_2
70 # endif /* !IN_MPERS */
71
72 #endif /* !XLAT_MACROS_ONLY */