1 /* Generated by ./xlat/gen.sh from ./xlat/sock_ax25_options.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(AX25_WINDOW) || (defined(HAVE_DECL_AX25_WINDOW) && HAVE_DECL_AX25_WINDOW)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((AX25_WINDOW) == (1), "AX25_WINDOW != 1");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define AX25_WINDOW 1
12 #endif
13 #if defined(AX25_T1) || (defined(HAVE_DECL_AX25_T1) && HAVE_DECL_AX25_T1)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((AX25_T1) == (2), "AX25_T1 != 2");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define AX25_T1 2
19 #endif
20 #if defined(AX25_N2) || (defined(HAVE_DECL_AX25_N2) && HAVE_DECL_AX25_N2)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((AX25_N2) == (3), "AX25_N2 != 3");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define AX25_N2 3
26 #endif
27 #if defined(AX25_T3) || (defined(HAVE_DECL_AX25_T3) && HAVE_DECL_AX25_T3)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((AX25_T3) == (4), "AX25_T3 != 4");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define AX25_T3 4
33 #endif
34 #if defined(AX25_T2) || (defined(HAVE_DECL_AX25_T2) && HAVE_DECL_AX25_T2)
35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
36 static_assert((AX25_T2) == (5), "AX25_T2 != 5");
37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
38 #else
39 # define AX25_T2 5
40 #endif
41 #if defined(AX25_BACKOFF) || (defined(HAVE_DECL_AX25_BACKOFF) && HAVE_DECL_AX25_BACKOFF)
42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
43 static_assert((AX25_BACKOFF) == (6), "AX25_BACKOFF != 6");
44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
45 #else
46 # define AX25_BACKOFF 6
47 #endif
48 #if defined(AX25_EXTSEQ) || (defined(HAVE_DECL_AX25_EXTSEQ) && HAVE_DECL_AX25_EXTSEQ)
49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
50 static_assert((AX25_EXTSEQ) == (7), "AX25_EXTSEQ != 7");
51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
52 #else
53 # define AX25_EXTSEQ 7
54 #endif
55 #if defined(AX25_PIDINCL) || (defined(HAVE_DECL_AX25_PIDINCL) && HAVE_DECL_AX25_PIDINCL)
56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
57 static_assert((AX25_PIDINCL) == (8), "AX25_PIDINCL != 8");
58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
59 #else
60 # define AX25_PIDINCL 8
61 #endif
62 #if defined(AX25_IDLE) || (defined(HAVE_DECL_AX25_IDLE) && HAVE_DECL_AX25_IDLE)
63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
64 static_assert((AX25_IDLE) == (9), "AX25_IDLE != 9");
65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
66 #else
67 # define AX25_IDLE 9
68 #endif
69 #if defined(AX25_PACLEN) || (defined(HAVE_DECL_AX25_PACLEN) && HAVE_DECL_AX25_PACLEN)
70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
71 static_assert((AX25_PACLEN) == (10), "AX25_PACLEN != 10");
72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
73 #else
74 # define AX25_PACLEN 10
75 #endif
76 #if defined(AX25_IAMDIGI) || (defined(HAVE_DECL_AX25_IAMDIGI) && HAVE_DECL_AX25_IAMDIGI)
77 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
78 static_assert((AX25_IAMDIGI) == (12), "AX25_IAMDIGI != 12");
79 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
80 #else
81 # define AX25_IAMDIGI 12
82 #endif
83 
84 #ifndef XLAT_MACROS_ONLY
85 
86 # ifdef IN_MPERS
87 
88 #  error static const struct xlat sock_ax25_options in mpers mode
89 
90 # else
91 
92 static
93 const struct xlat sock_ax25_options[] = {
94 
95  XLAT(AX25_WINDOW),
96  XLAT(AX25_T1),
97  XLAT(AX25_N2),
98  XLAT(AX25_T3),
99  XLAT(AX25_T2),
100  XLAT(AX25_BACKOFF),
101  XLAT(AX25_EXTSEQ),
102  XLAT(AX25_PIDINCL),
103  XLAT(AX25_IDLE),
104  XLAT(AX25_PACLEN),
105  XLAT(AX25_IAMDIGI),
106 
107 
108 #if defined(SO_BINDTODEVICE) || (defined(HAVE_DECL_SO_BINDTODEVICE) && HAVE_DECL_SO_BINDTODEVICE)
109   XLAT(SO_BINDTODEVICE),
110 #endif
111  XLAT_END
112 };
113 
114 # endif /* !IN_MPERS */
115 
116 #endif /* !XLAT_MACROS_ONLY */
117