Blame gnulib/lib/langinfo.in.h

Packit Service a2ae7a
/* Substitute for and wrapper around <langinfo.h>.
Packit Service a2ae7a
   Copyright (C) 2009-2019 Free Software Foundation, Inc.
Packit Service a2ae7a
Packit Service a2ae7a
   This program is free software; you can redistribute it and/or modify
Packit Service a2ae7a
   it under the terms of the GNU Lesser General Public License as published by
Packit Service a2ae7a
   the Free Software Foundation; either version 2.1, or (at your option)
Packit Service a2ae7a
   any later version.
Packit Service a2ae7a
Packit Service a2ae7a
   This program is distributed in the hope that it will be useful,
Packit Service a2ae7a
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service a2ae7a
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service a2ae7a
   GNU Lesser General Public License for more details.
Packit Service a2ae7a
Packit Service a2ae7a
   You should have received a copy of the GNU Lesser General Public License
Packit Service a2ae7a
   along with this program; if not, see <https://www.gnu.org/licenses/>.  */
Packit Service a2ae7a
Packit Service a2ae7a
/*
Packit Service a2ae7a
 * POSIX <langinfo.h> for platforms that lack it or have an incomplete one.
Packit Service a2ae7a
 * <http://www.opengroup.org/onlinepubs/9699919799/basedefs/langinfo.h.html>
Packit Service a2ae7a
 */
Packit Service a2ae7a
Packit Service a2ae7a
#ifndef _@GUARD_PREFIX@_LANGINFO_H
Packit Service a2ae7a
Packit Service a2ae7a
#if __GNUC__ >= 3
Packit Service a2ae7a
@PRAGMA_SYSTEM_HEADER@
Packit Service a2ae7a
#endif
Packit Service a2ae7a
@PRAGMA_COLUMNS@
Packit Service a2ae7a
Packit Service a2ae7a
/* The include_next requires a split double-inclusion guard.  */
Packit Service a2ae7a
#if @HAVE_LANGINFO_H@
Packit Service a2ae7a
# @INCLUDE_NEXT@ @NEXT_LANGINFO_H@
Packit Service a2ae7a
#endif
Packit Service a2ae7a
Packit Service a2ae7a
#ifndef _@GUARD_PREFIX@_LANGINFO_H
Packit Service a2ae7a
#define _@GUARD_PREFIX@_LANGINFO_H
Packit Service a2ae7a
Packit Service a2ae7a
Packit Service a2ae7a
#if !@HAVE_LANGINFO_H@
Packit Service a2ae7a
Packit Service a2ae7a
/* A platform that lacks <langinfo.h>.  */
Packit Service a2ae7a
Packit Service a2ae7a
/* Assume that it also lacks <nl_types.h> and the nl_item type.  */
Packit Service a2ae7a
# if !GNULIB_defined_nl_item
Packit Service a2ae7a
typedef int nl_item;
Packit Service a2ae7a
#  define GNULIB_defined_nl_item 1
Packit Service a2ae7a
# endif
Packit Service a2ae7a
Packit Service a2ae7a
/* nl_langinfo items of the LC_CTYPE category */
Packit Service a2ae7a
# define CODESET     10000
Packit Service a2ae7a
/* nl_langinfo items of the LC_NUMERIC category */
Packit Service a2ae7a
# define RADIXCHAR   10001
Packit Service a2ae7a
# define DECIMAL_POINT RADIXCHAR
Packit Service a2ae7a
# define THOUSEP     10002
Packit Service a2ae7a
# define THOUSANDS_SEP THOUSEP
Packit Service a2ae7a
# define GROUPING    10114
Packit Service a2ae7a
/* nl_langinfo items of the LC_TIME category */
Packit Service a2ae7a
# define D_T_FMT     10003
Packit Service a2ae7a
# define D_FMT       10004
Packit Service a2ae7a
# define T_FMT       10005
Packit Service a2ae7a
# define T_FMT_AMPM  10006
Packit Service a2ae7a
# define AM_STR      10007
Packit Service a2ae7a
# define PM_STR      10008
Packit Service a2ae7a
# define DAY_1       10009
Packit Service a2ae7a
# define DAY_2       (DAY_1 + 1)
Packit Service a2ae7a
# define DAY_3       (DAY_1 + 2)
Packit Service a2ae7a
# define DAY_4       (DAY_1 + 3)
Packit Service a2ae7a
# define DAY_5       (DAY_1 + 4)
Packit Service a2ae7a
# define DAY_6       (DAY_1 + 5)
Packit Service a2ae7a
# define DAY_7       (DAY_1 + 6)
Packit Service a2ae7a
# define ABDAY_1     10016
Packit Service a2ae7a
# define ABDAY_2     (ABDAY_1 + 1)
Packit Service a2ae7a
# define ABDAY_3     (ABDAY_1 + 2)
Packit Service a2ae7a
# define ABDAY_4     (ABDAY_1 + 3)
Packit Service a2ae7a
# define ABDAY_5     (ABDAY_1 + 4)
Packit Service a2ae7a
# define ABDAY_6     (ABDAY_1 + 5)
Packit Service a2ae7a
# define ABDAY_7     (ABDAY_1 + 6)
Packit Service a2ae7a
# define MON_1       10023
Packit Service a2ae7a
# define MON_2       (MON_1 + 1)
Packit Service a2ae7a
# define MON_3       (MON_1 + 2)
Packit Service a2ae7a
# define MON_4       (MON_1 + 3)
Packit Service a2ae7a
# define MON_5       (MON_1 + 4)
Packit Service a2ae7a
# define MON_6       (MON_1 + 5)
Packit Service a2ae7a
# define MON_7       (MON_1 + 6)
Packit Service a2ae7a
# define MON_8       (MON_1 + 7)
Packit Service a2ae7a
# define MON_9       (MON_1 + 8)
Packit Service a2ae7a
# define MON_10      (MON_1 + 9)
Packit Service a2ae7a
# define MON_11      (MON_1 + 10)
Packit Service a2ae7a
# define MON_12      (MON_1 + 11)
Packit Service a2ae7a
# define ALTMON_1    10200
Packit Service a2ae7a
# define ALTMON_2    (ALTMON_1 + 1)
Packit Service a2ae7a
# define ALTMON_3    (ALTMON_1 + 2)
Packit Service a2ae7a
# define ALTMON_4    (ALTMON_1 + 3)
Packit Service a2ae7a
# define ALTMON_5    (ALTMON_1 + 4)
Packit Service a2ae7a
# define ALTMON_6    (ALTMON_1 + 5)
Packit Service a2ae7a
# define ALTMON_7    (ALTMON_1 + 6)
Packit Service a2ae7a
# define ALTMON_8    (ALTMON_1 + 7)
Packit Service a2ae7a
# define ALTMON_9    (ALTMON_1 + 8)
Packit Service a2ae7a
# define ALTMON_10   (ALTMON_1 + 9)
Packit Service a2ae7a
# define ALTMON_11   (ALTMON_1 + 10)
Packit Service a2ae7a
# define ALTMON_12   (ALTMON_1 + 11)
Packit Service a2ae7a
# define ABMON_1     10035
Packit Service a2ae7a
# define ABMON_2     (ABMON_1 + 1)
Packit Service a2ae7a
# define ABMON_3     (ABMON_1 + 2)
Packit Service a2ae7a
# define ABMON_4     (ABMON_1 + 3)
Packit Service a2ae7a
# define ABMON_5     (ABMON_1 + 4)
Packit Service a2ae7a
# define ABMON_6     (ABMON_1 + 5)
Packit Service a2ae7a
# define ABMON_7     (ABMON_1 + 6)
Packit Service a2ae7a
# define ABMON_8     (ABMON_1 + 7)
Packit Service a2ae7a
# define ABMON_9     (ABMON_1 + 8)
Packit Service a2ae7a
# define ABMON_10    (ABMON_1 + 9)
Packit Service a2ae7a
# define ABMON_11    (ABMON_1 + 10)
Packit Service a2ae7a
# define ABMON_12    (ABMON_1 + 11)
Packit Service a2ae7a
# define ERA         10047
Packit Service a2ae7a
# define ERA_D_FMT   10048
Packit Service a2ae7a
# define ERA_D_T_FMT 10049
Packit Service a2ae7a
# define ERA_T_FMT   10050
Packit Service a2ae7a
# define ALT_DIGITS  10051
Packit Service a2ae7a
/* nl_langinfo items of the LC_MONETARY category */
Packit Service a2ae7a
# define CRNCYSTR    10052
Packit Service a2ae7a
# define CURRENCY_SYMBOL   CRNCYSTR
Packit Service a2ae7a
# define INT_CURR_SYMBOL   10100
Packit Service a2ae7a
# define MON_DECIMAL_POINT 10101
Packit Service a2ae7a
# define MON_THOUSANDS_SEP 10102
Packit Service a2ae7a
# define MON_GROUPING      10103
Packit Service a2ae7a
# define POSITIVE_SIGN     10104
Packit Service a2ae7a
# define NEGATIVE_SIGN     10105
Packit Service a2ae7a
# define FRAC_DIGITS       10106
Packit Service a2ae7a
# define INT_FRAC_DIGITS   10107
Packit Service a2ae7a
# define P_CS_PRECEDES     10108
Packit Service a2ae7a
# define N_CS_PRECEDES     10109
Packit Service a2ae7a
# define P_SEP_BY_SPACE    10110
Packit Service a2ae7a
# define N_SEP_BY_SPACE    10111
Packit Service a2ae7a
# define P_SIGN_POSN       10112
Packit Service a2ae7a
# define N_SIGN_POSN       10113
Packit Service a2ae7a
/* nl_langinfo items of the LC_MESSAGES category */
Packit Service a2ae7a
# define YESEXPR     10053
Packit Service a2ae7a
# define NOEXPR      10054
Packit Service a2ae7a
Packit Service a2ae7a
#else
Packit Service a2ae7a
Packit Service a2ae7a
/* A platform that has <langinfo.h>.  */
Packit Service a2ae7a
Packit Service a2ae7a
# if !@HAVE_LANGINFO_CODESET@
Packit Service a2ae7a
#  define CODESET     10000
Packit Service a2ae7a
#  define GNULIB_defined_CODESET 1
Packit Service a2ae7a
# endif
Packit Service a2ae7a
Packit Service a2ae7a
# if !@HAVE_LANGINFO_T_FMT_AMPM@
Packit Service a2ae7a
#  define T_FMT_AMPM  10006
Packit Service a2ae7a
#  define GNULIB_defined_T_FMT_AMPM 1
Packit Service a2ae7a
# endif
Packit Service a2ae7a
Packit Service a2ae7a
# if !@HAVE_LANGINFO_ALTMON@
Packit Service a2ae7a
#  define ALTMON_1    10200
Packit Service a2ae7a
#  define ALTMON_2    (ALTMON_1 + 1)
Packit Service a2ae7a
#  define ALTMON_3    (ALTMON_1 + 2)
Packit Service a2ae7a
#  define ALTMON_4    (ALTMON_1 + 3)
Packit Service a2ae7a
#  define ALTMON_5    (ALTMON_1 + 4)
Packit Service a2ae7a
#  define ALTMON_6    (ALTMON_1 + 5)
Packit Service a2ae7a
#  define ALTMON_7    (ALTMON_1 + 6)
Packit Service a2ae7a
#  define ALTMON_8    (ALTMON_1 + 7)
Packit Service a2ae7a
#  define ALTMON_9    (ALTMON_1 + 8)
Packit Service a2ae7a
#  define ALTMON_10   (ALTMON_1 + 9)
Packit Service a2ae7a
#  define ALTMON_11   (ALTMON_1 + 10)
Packit Service a2ae7a
#  define ALTMON_12   (ALTMON_1 + 11)
Packit Service a2ae7a
#  define GNULIB_defined_ALTMON 1
Packit Service a2ae7a
# endif
Packit Service a2ae7a
Packit Service a2ae7a
# if !@HAVE_LANGINFO_ERA@
Packit Service a2ae7a
#  define ERA         10047
Packit Service a2ae7a
#  define ERA_D_FMT   10048
Packit Service a2ae7a
#  define ERA_D_T_FMT 10049
Packit Service a2ae7a
#  define ERA_T_FMT   10050
Packit Service a2ae7a
#  define ALT_DIGITS  10051
Packit Service a2ae7a
#  define GNULIB_defined_ERA 1
Packit Service a2ae7a
# endif
Packit Service a2ae7a
Packit Service a2ae7a
# if !@HAVE_LANGINFO_YESEXPR@
Packit Service a2ae7a
#  define YESEXPR     10053
Packit Service a2ae7a
#  define NOEXPR      10054
Packit Service a2ae7a
#  define GNULIB_defined_YESEXPR 1
Packit Service a2ae7a
# endif
Packit Service a2ae7a
Packit Service a2ae7a
#endif
Packit Service a2ae7a
Packit Service a2ae7a
/* The definitions of _GL_FUNCDECL_RPL etc. are copied here.  */
Packit Service a2ae7a
Packit Service a2ae7a
/* The definition of _GL_WARN_ON_USE is copied here.  */
Packit Service a2ae7a
Packit Service a2ae7a
/* Declare overridden functions.  */
Packit Service a2ae7a
Packit Service a2ae7a
Packit Service a2ae7a
/* Return a piece of locale dependent information.
Packit Service a2ae7a
   Note: The difference between nl_langinfo (CODESET) and locale_charset ()
Packit Service a2ae7a
   is that the latter normalizes the encoding names to GNU conventions.  */
Packit Service a2ae7a
Packit Service a2ae7a
#if @GNULIB_NL_LANGINFO@
Packit Service a2ae7a
# if @REPLACE_NL_LANGINFO@
Packit Service a2ae7a
#  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
Packit Service a2ae7a
#   undef nl_langinfo
Packit Service a2ae7a
#   define nl_langinfo rpl_nl_langinfo
Packit Service a2ae7a
#  endif
Packit Service a2ae7a
_GL_FUNCDECL_RPL (nl_langinfo, char *, (nl_item item));
Packit Service a2ae7a
_GL_CXXALIAS_RPL (nl_langinfo, char *, (nl_item item));
Packit Service a2ae7a
# else
Packit Service a2ae7a
#  if !@HAVE_NL_LANGINFO@
Packit Service a2ae7a
_GL_FUNCDECL_SYS (nl_langinfo, char *, (nl_item item));
Packit Service a2ae7a
#  endif
Packit Service a2ae7a
_GL_CXXALIAS_SYS (nl_langinfo, char *, (nl_item item));
Packit Service a2ae7a
# endif
Packit Service a2ae7a
_GL_CXXALIASWARN (nl_langinfo);
Packit Service a2ae7a
#elif defined GNULIB_POSIXCHECK
Packit Service a2ae7a
# undef nl_langinfo
Packit Service a2ae7a
# if HAVE_RAW_DECL_NL_LANGINFO
Packit Service a2ae7a
_GL_WARN_ON_USE (nl_langinfo, "nl_langinfo is not portable - "
Packit Service a2ae7a
                 "use gnulib module nl_langinfo for portability");
Packit Service a2ae7a
# endif
Packit Service a2ae7a
#endif
Packit Service a2ae7a
Packit Service a2ae7a
Packit Service a2ae7a
#endif /* _@GUARD_PREFIX@_LANGINFO_H */
Packit Service a2ae7a
#endif /* _@GUARD_PREFIX@_LANGINFO_H */