1 /* -*- buffer-read-only: t -*- vi: set ro: */
2 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
3 /* Substitute for and wrapper around <langinfo.h>.
4    Copyright (C) 2009-2019 Free Software Foundation, Inc.
5 
6    This program is free software; you can redistribute it and/or modify
7    it under the terms of the GNU General Public License as published by
8    the Free Software Foundation; either version 3, or (at your option)
9    any later version.
10 
11    This program is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14    GNU General Public License for more details.
15 
16    You should have received a copy of the GNU General Public License
17    along with this program; if not, see <https://www.gnu.org/licenses/>.  */
18 
19 /*
20  * POSIX <langinfo.h> for platforms that lack it or have an incomplete one.
21  * <http://www.opengroup.org/onlinepubs/9699919799/basedefs/langinfo.h.html>
22  */
23 
24 #ifndef _@GUARD_PREFIX@_LANGINFO_H
25 
26 #if __GNUC__ >= 3
27 @PRAGMA_SYSTEM_HEADER@
28 #endif
29 @PRAGMA_COLUMNS@
30 
31 /* The include_next requires a split double-inclusion guard.  */
32 #if @HAVE_LANGINFO_H@
33 # @INCLUDE_NEXT@ @NEXT_LANGINFO_H@
34 #endif
35 
36 #ifndef _@GUARD_PREFIX@_LANGINFO_H
37 #define _@GUARD_PREFIX@_LANGINFO_H
38 
39 
40 #if !@HAVE_LANGINFO_H@
41 
42 /* A platform that lacks <langinfo.h>.  */
43 
44 /* Assume that it also lacks <nl_types.h> and the nl_item type.  */
45 # if !GNULIB_defined_nl_item
46 typedef int nl_item;
47 #  define GNULIB_defined_nl_item 1
48 # endif
49 
50 /* nl_langinfo items of the LC_CTYPE category */
51 # define CODESET     10000
52 /* nl_langinfo items of the LC_NUMERIC category */
53 # define RADIXCHAR   10001
54 # define DECIMAL_POINT RADIXCHAR
55 # define THOUSEP     10002
56 # define THOUSANDS_SEP THOUSEP
57 # define GROUPING    10114
58 /* nl_langinfo items of the LC_TIME category */
59 # define D_T_FMT     10003
60 # define D_FMT       10004
61 # define T_FMT       10005
62 # define T_FMT_AMPM  10006
63 # define AM_STR      10007
64 # define PM_STR      10008
65 # define DAY_1       10009
66 # define DAY_2       (DAY_1 + 1)
67 # define DAY_3       (DAY_1 + 2)
68 # define DAY_4       (DAY_1 + 3)
69 # define DAY_5       (DAY_1 + 4)
70 # define DAY_6       (DAY_1 + 5)
71 # define DAY_7       (DAY_1 + 6)
72 # define ABDAY_1     10016
73 # define ABDAY_2     (ABDAY_1 + 1)
74 # define ABDAY_3     (ABDAY_1 + 2)
75 # define ABDAY_4     (ABDAY_1 + 3)
76 # define ABDAY_5     (ABDAY_1 + 4)
77 # define ABDAY_6     (ABDAY_1 + 5)
78 # define ABDAY_7     (ABDAY_1 + 6)
79 # define MON_1       10023
80 # define MON_2       (MON_1 + 1)
81 # define MON_3       (MON_1 + 2)
82 # define MON_4       (MON_1 + 3)
83 # define MON_5       (MON_1 + 4)
84 # define MON_6       (MON_1 + 5)
85 # define MON_7       (MON_1 + 6)
86 # define MON_8       (MON_1 + 7)
87 # define MON_9       (MON_1 + 8)
88 # define MON_10      (MON_1 + 9)
89 # define MON_11      (MON_1 + 10)
90 # define MON_12      (MON_1 + 11)
91 # define ALTMON_1    10200
92 # define ALTMON_2    (ALTMON_1 + 1)
93 # define ALTMON_3    (ALTMON_1 + 2)
94 # define ALTMON_4    (ALTMON_1 + 3)
95 # define ALTMON_5    (ALTMON_1 + 4)
96 # define ALTMON_6    (ALTMON_1 + 5)
97 # define ALTMON_7    (ALTMON_1 + 6)
98 # define ALTMON_8    (ALTMON_1 + 7)
99 # define ALTMON_9    (ALTMON_1 + 8)
100 # define ALTMON_10   (ALTMON_1 + 9)
101 # define ALTMON_11   (ALTMON_1 + 10)
102 # define ALTMON_12   (ALTMON_1 + 11)
103 # define ABMON_1     10035
104 # define ABMON_2     (ABMON_1 + 1)
105 # define ABMON_3     (ABMON_1 + 2)
106 # define ABMON_4     (ABMON_1 + 3)
107 # define ABMON_5     (ABMON_1 + 4)
108 # define ABMON_6     (ABMON_1 + 5)
109 # define ABMON_7     (ABMON_1 + 6)
110 # define ABMON_8     (ABMON_1 + 7)
111 # define ABMON_9     (ABMON_1 + 8)
112 # define ABMON_10    (ABMON_1 + 9)
113 # define ABMON_11    (ABMON_1 + 10)
114 # define ABMON_12    (ABMON_1 + 11)
115 # define ERA         10047
116 # define ERA_D_FMT   10048
117 # define ERA_D_T_FMT 10049
118 # define ERA_T_FMT   10050
119 # define ALT_DIGITS  10051
120 /* nl_langinfo items of the LC_MONETARY category */
121 # define CRNCYSTR    10052
122 # define CURRENCY_SYMBOL   CRNCYSTR
123 # define INT_CURR_SYMBOL   10100
124 # define MON_DECIMAL_POINT 10101
125 # define MON_THOUSANDS_SEP 10102
126 # define MON_GROUPING      10103
127 # define POSITIVE_SIGN     10104
128 # define NEGATIVE_SIGN     10105
129 # define FRAC_DIGITS       10106
130 # define INT_FRAC_DIGITS   10107
131 # define P_CS_PRECEDES     10108
132 # define N_CS_PRECEDES     10109
133 # define P_SEP_BY_SPACE    10110
134 # define N_SEP_BY_SPACE    10111
135 # define P_SIGN_POSN       10112
136 # define N_SIGN_POSN       10113
137 /* nl_langinfo items of the LC_MESSAGES category */
138 # define YESEXPR     10053
139 # define NOEXPR      10054
140 
141 #else
142 
143 /* A platform that has <langinfo.h>.  */
144 
145 # if !@HAVE_LANGINFO_CODESET@
146 #  define CODESET     10000
147 #  define GNULIB_defined_CODESET 1
148 # endif
149 
150 # if !@HAVE_LANGINFO_T_FMT_AMPM@
151 #  define T_FMT_AMPM  10006
152 #  define GNULIB_defined_T_FMT_AMPM 1
153 # endif
154 
155 # if !@HAVE_LANGINFO_ALTMON@
156 #  define ALTMON_1    10200
157 #  define ALTMON_2    (ALTMON_1 + 1)
158 #  define ALTMON_3    (ALTMON_1 + 2)
159 #  define ALTMON_4    (ALTMON_1 + 3)
160 #  define ALTMON_5    (ALTMON_1 + 4)
161 #  define ALTMON_6    (ALTMON_1 + 5)
162 #  define ALTMON_7    (ALTMON_1 + 6)
163 #  define ALTMON_8    (ALTMON_1 + 7)
164 #  define ALTMON_9    (ALTMON_1 + 8)
165 #  define ALTMON_10   (ALTMON_1 + 9)
166 #  define ALTMON_11   (ALTMON_1 + 10)
167 #  define ALTMON_12   (ALTMON_1 + 11)
168 #  define GNULIB_defined_ALTMON 1
169 # endif
170 
171 # if !@HAVE_LANGINFO_ERA@
172 #  define ERA         10047
173 #  define ERA_D_FMT   10048
174 #  define ERA_D_T_FMT 10049
175 #  define ERA_T_FMT   10050
176 #  define ALT_DIGITS  10051
177 #  define GNULIB_defined_ERA 1
178 # endif
179 
180 # if !@HAVE_LANGINFO_YESEXPR@
181 #  define YESEXPR     10053
182 #  define NOEXPR      10054
183 #  define GNULIB_defined_YESEXPR 1
184 # endif
185 
186 #endif
187 
188 /* The definitions of _GL_FUNCDECL_RPL etc. are copied here.  */
189 
190 /* The definition of _GL_WARN_ON_USE is copied here.  */
191 
192 /* Declare overridden functions.  */
193 
194 
195 /* Return a piece of locale dependent information.
196    Note: The difference between nl_langinfo (CODESET) and locale_charset ()
197    is that the latter normalizes the encoding names to GNU conventions.  */
198 
199 #if @GNULIB_NL_LANGINFO@
200 # if @REPLACE_NL_LANGINFO@
201 #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
202 #   undef nl_langinfo
203 #   define nl_langinfo rpl_nl_langinfo
204 #  endif
205 _GL_FUNCDECL_RPL (nl_langinfo, char *, (nl_item item));
206 _GL_CXXALIAS_RPL (nl_langinfo, char *, (nl_item item));
207 # else
208 #  if !@HAVE_NL_LANGINFO@
209 _GL_FUNCDECL_SYS (nl_langinfo, char *, (nl_item item));
210 #  endif
211 _GL_CXXALIAS_SYS (nl_langinfo, char *, (nl_item item));
212 # endif
213 _GL_CXXALIASWARN (nl_langinfo);
214 #elif defined GNULIB_POSIXCHECK
215 # undef nl_langinfo
216 # if HAVE_RAW_DECL_NL_LANGINFO
217 _GL_WARN_ON_USE (nl_langinfo, "nl_langinfo is not portable - "
218                  "use gnulib module nl_langinfo for portability");
219 # endif
220 #endif
221 
222 
223 #endif /* _@GUARD_PREFIX@_LANGINFO_H */
224 #endif /* _@GUARD_PREFIX@_LANGINFO_H */
225