(root)/
strace-6.5/
src/
xlat/
nfc_protocols.h
       1  /* Generated by ./src/xlat/gen.sh from ./src/xlat/nfc_protocols.in; do not edit. */
       2  
       3  #include "gcc_compat.h"
       4  #include "static_assert.h"
       5  
       6  #if defined(NFC_SOCKPROTO_RAW) || (defined(HAVE_DECL_NFC_SOCKPROTO_RAW) && HAVE_DECL_NFC_SOCKPROTO_RAW)
       7  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
       8  static_assert((NFC_SOCKPROTO_RAW) == (0), "NFC_SOCKPROTO_RAW != 0");
       9  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      10  #else
      11  # define NFC_SOCKPROTO_RAW 0
      12  #endif
      13  #if defined(NFC_SOCKPROTO_LLCP) || (defined(HAVE_DECL_NFC_SOCKPROTO_LLCP) && HAVE_DECL_NFC_SOCKPROTO_LLCP)
      14  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      15  static_assert((NFC_SOCKPROTO_LLCP) == (1), "NFC_SOCKPROTO_LLCP != 1");
      16  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      17  #else
      18  # define NFC_SOCKPROTO_LLCP 1
      19  #endif
      20  #undef XLAT_PREV_VAL
      21  
      22  #ifndef XLAT_MACROS_ONLY
      23  
      24  # ifdef IN_MPERS
      25  
      26  #  error static const struct xlat nfc_protocols in mpers mode
      27  
      28  # else
      29  
      30  DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
      31  static const struct xlat_data nfc_protocols_xdata[] = {
      32   [NFC_SOCKPROTO_RAW] = XLAT(NFC_SOCKPROTO_RAW),
      33   #define XLAT_VAL_0 ((unsigned) (NFC_SOCKPROTO_RAW))
      34   #define XLAT_STR_0 STRINGIFY(NFC_SOCKPROTO_RAW)
      35   [NFC_SOCKPROTO_LLCP] = XLAT(NFC_SOCKPROTO_LLCP),
      36   #define XLAT_VAL_1 ((unsigned) (NFC_SOCKPROTO_LLCP))
      37   #define XLAT_STR_1 STRINGIFY(NFC_SOCKPROTO_LLCP)
      38  };
      39  static
      40  const struct xlat nfc_protocols[1] = { {
      41   .data = nfc_protocols_xdata,
      42   .size = ARRAY_SIZE(nfc_protocols_xdata),
      43   .type = XT_INDEXED,
      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    ,
      52   .flags_strsz = 0
      53  #  ifdef XLAT_STR_0
      54    + sizeof(XLAT_STR_0)
      55  #  endif
      56  #  ifdef XLAT_STR_1
      57    + sizeof(XLAT_STR_1)
      58  #  endif
      59    ,
      60  } };
      61  DIAG_POP_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
      62  
      63  #  undef XLAT_STR_0
      64  #  undef XLAT_VAL_0
      65  #  undef XLAT_STR_1
      66  #  undef XLAT_VAL_1
      67  # endif /* !IN_MPERS */
      68  
      69  #endif /* !XLAT_MACROS_ONLY */