/* Generated by ./src/xlat/gen.sh from ./src/xlat/quota_formats.in; do not edit. */

#include "gcc_compat.h"
#include "static_assert.h"

#if defined(QFMT_VFS_OLD) || (defined(HAVE_DECL_QFMT_VFS_OLD) && HAVE_DECL_QFMT_VFS_OLD)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((QFMT_VFS_OLD) == (1), "QFMT_VFS_OLD != 1");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define QFMT_VFS_OLD 1
#endif
#if defined(QFMT_VFS_V0) || (defined(HAVE_DECL_QFMT_VFS_V0) && HAVE_DECL_QFMT_VFS_V0)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((QFMT_VFS_V0) == (2), "QFMT_VFS_V0 != 2");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define QFMT_VFS_V0 2
#endif
#if defined(QFMT_OCFS2) || (defined(HAVE_DECL_QFMT_OCFS2) && HAVE_DECL_QFMT_OCFS2)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((QFMT_OCFS2) == (3), "QFMT_OCFS2 != 3");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define QFMT_OCFS2 3
#endif
#if defined(QFMT_VFS_V1) || (defined(HAVE_DECL_QFMT_VFS_V1) && HAVE_DECL_QFMT_VFS_V1)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((QFMT_VFS_V1) == (4), "QFMT_VFS_V1 != 4");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define QFMT_VFS_V1 4
#endif
#if defined(QFMT_SHMEM) || (defined(HAVE_DECL_QFMT_SHMEM) && HAVE_DECL_QFMT_SHMEM)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((QFMT_SHMEM) == (5), "QFMT_SHMEM != 5");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define QFMT_SHMEM 5
#endif
#undef XLAT_PREV_VAL

#ifndef XLAT_MACROS_ONLY

# ifdef IN_MPERS

#  error static const struct xlat quota_formats in mpers mode

# else

DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
static const struct xlat_data quota_formats_xdata[] = {
 [QFMT_VFS_OLD] = XLAT(QFMT_VFS_OLD),
 #define XLAT_VAL_0 ((unsigned) (QFMT_VFS_OLD))
 #define XLAT_STR_0 STRINGIFY(QFMT_VFS_OLD)
 [QFMT_VFS_V0] = XLAT(QFMT_VFS_V0),
 #define XLAT_VAL_1 ((unsigned) (QFMT_VFS_V0))
 #define XLAT_STR_1 STRINGIFY(QFMT_VFS_V0)
 [QFMT_OCFS2] = XLAT(QFMT_OCFS2),
 #define XLAT_VAL_2 ((unsigned) (QFMT_OCFS2))
 #define XLAT_STR_2 STRINGIFY(QFMT_OCFS2)
 [QFMT_VFS_V1] = XLAT(QFMT_VFS_V1),
 #define XLAT_VAL_3 ((unsigned) (QFMT_VFS_V1))
 #define XLAT_STR_3 STRINGIFY(QFMT_VFS_V1)
 [QFMT_SHMEM] = XLAT(QFMT_SHMEM),
 #define XLAT_VAL_4 ((unsigned) (QFMT_SHMEM))
 #define XLAT_STR_4 STRINGIFY(QFMT_SHMEM)
};
static
const struct xlat quota_formats[1] = { {
 .data = quota_formats_xdata,
 .size = ARRAY_SIZE(quota_formats_xdata),
 .type = XT_INDEXED,
 .flags_mask = 0
#  ifdef XLAT_VAL_0
  | XLAT_VAL_0
#  endif
#  ifdef XLAT_VAL_1
  | XLAT_VAL_1
#  endif
#  ifdef XLAT_VAL_2
  | XLAT_VAL_2
#  endif
#  ifdef XLAT_VAL_3
  | XLAT_VAL_3
#  endif
#  ifdef XLAT_VAL_4
  | XLAT_VAL_4
#  endif
  ,
 .flags_strsz = 0
#  ifdef XLAT_STR_0
  + sizeof(XLAT_STR_0)
#  endif
#  ifdef XLAT_STR_1
  + sizeof(XLAT_STR_1)
#  endif
#  ifdef XLAT_STR_2
  + sizeof(XLAT_STR_2)
#  endif
#  ifdef XLAT_STR_3
  + sizeof(XLAT_STR_3)
#  endif
#  ifdef XLAT_STR_4
  + sizeof(XLAT_STR_4)
#  endif
  ,
} };
DIAG_POP_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE

#  undef XLAT_STR_0
#  undef XLAT_VAL_0
#  undef XLAT_STR_1
#  undef XLAT_VAL_1
#  undef XLAT_STR_2
#  undef XLAT_VAL_2
#  undef XLAT_STR_3
#  undef XLAT_VAL_3
#  undef XLAT_STR_4
#  undef XLAT_VAL_4
# endif /* !IN_MPERS */

#endif /* !XLAT_MACROS_ONLY */
