1 /* Generated by ./xlat/gen.sh from ./xlat/f_seals.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(F_SEAL_SEAL) || (defined(HAVE_DECL_F_SEAL_SEAL) && HAVE_DECL_F_SEAL_SEAL) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((F_SEAL_SEAL) == (1), "F_SEAL_SEAL != 1"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define F_SEAL_SEAL 1 12 #endif 13 #if defined(F_SEAL_SHRINK) || (defined(HAVE_DECL_F_SEAL_SHRINK) && HAVE_DECL_F_SEAL_SHRINK) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((F_SEAL_SHRINK) == (2), "F_SEAL_SHRINK != 2"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define F_SEAL_SHRINK 2 19 #endif 20 #if defined(F_SEAL_GROW) || (defined(HAVE_DECL_F_SEAL_GROW) && HAVE_DECL_F_SEAL_GROW) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((F_SEAL_GROW) == (4), "F_SEAL_GROW != 4"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define F_SEAL_GROW 4 26 #endif 27 #if defined(F_SEAL_WRITE) || (defined(HAVE_DECL_F_SEAL_WRITE) && HAVE_DECL_F_SEAL_WRITE) 28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 29 static_assert((F_SEAL_WRITE) == (8), "F_SEAL_WRITE != 8"); 30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 31 #else 32 # define F_SEAL_WRITE 8 33 #endif 34 35 #ifndef XLAT_MACROS_ONLY 36 37 # ifdef IN_MPERS 38 39 # error static const struct xlat f_seals in mpers mode 40 41 # else 42 43 static 44 const struct xlat f_seals[] = { 45 XLAT(F_SEAL_SEAL), 46 XLAT(F_SEAL_SHRINK), 47 XLAT(F_SEAL_GROW), 48 XLAT(F_SEAL_WRITE), 49 XLAT_END 50 }; 51 52 # endif /* !IN_MPERS */ 53 54 #endif /* !XLAT_MACROS_ONLY */ 55