diff options
Diffstat (limited to 'gl/langinfo.in.h')
-rw-r--r-- | gl/langinfo.in.h | 66 |
1 files changed, 56 insertions, 10 deletions
diff --git a/gl/langinfo.in.h b/gl/langinfo.in.h index 5388ce62..c7555a6a 100644 --- a/gl/langinfo.in.h +++ b/gl/langinfo.in.h | |||
@@ -1,22 +1,22 @@ | |||
1 | /* Substitute for and wrapper around <langinfo.h>. | 1 | /* Substitute for and wrapper around <langinfo.h>. |
2 | Copyright (C) 2009-2013 Free Software Foundation, Inc. | 2 | Copyright (C) 2009-2023 Free Software Foundation, Inc. |
3 | 3 | ||
4 | This program is free software; you can redistribute it and/or modify | 4 | This file is free software: you can redistribute it and/or modify |
5 | it under the terms of the GNU General Public License as published by | 5 | it under the terms of the GNU Lesser General Public License as |
6 | the Free Software Foundation; either version 3, or (at your option) | 6 | published by the Free Software Foundation; either version 2.1 of the |
7 | any later version. | 7 | License, or (at your option) any later version. |
8 | 8 | ||
9 | This program is distributed in the hope that it will be useful, | 9 | This file is distributed in the hope that it will be useful, |
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | GNU General Public License for more details. | 12 | GNU Lesser General Public License for more details. |
13 | 13 | ||
14 | You should have received a copy of the GNU General Public License | 14 | You should have received a copy of the GNU Lesser General Public License |
15 | along with this program; if not, see <http://www.gnu.org/licenses/>. */ | 15 | along with this program. If not, see <https://www.gnu.org/licenses/>. */ |
16 | 16 | ||
17 | /* | 17 | /* |
18 | * POSIX <langinfo.h> for platforms that lack it or have an incomplete one. | 18 | * POSIX <langinfo.h> for platforms that lack it or have an incomplete one. |
19 | * <http://www.opengroup.org/onlinepubs/9699919799/basedefs/langinfo.h.html> | 19 | * <https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/langinfo.h.html> |
20 | */ | 20 | */ |
21 | 21 | ||
22 | #ifndef _@GUARD_PREFIX@_LANGINFO_H | 22 | #ifndef _@GUARD_PREFIX@_LANGINFO_H |
@@ -49,7 +49,10 @@ typedef int nl_item; | |||
49 | # define CODESET 10000 | 49 | # define CODESET 10000 |
50 | /* nl_langinfo items of the LC_NUMERIC category */ | 50 | /* nl_langinfo items of the LC_NUMERIC category */ |
51 | # define RADIXCHAR 10001 | 51 | # define RADIXCHAR 10001 |
52 | # define DECIMAL_POINT RADIXCHAR | ||
52 | # define THOUSEP 10002 | 53 | # define THOUSEP 10002 |
54 | # define THOUSANDS_SEP THOUSEP | ||
55 | # define GROUPING 10114 | ||
53 | /* nl_langinfo items of the LC_TIME category */ | 56 | /* nl_langinfo items of the LC_TIME category */ |
54 | # define D_T_FMT 10003 | 57 | # define D_T_FMT 10003 |
55 | # define D_FMT 10004 | 58 | # define D_FMT 10004 |
@@ -83,6 +86,18 @@ typedef int nl_item; | |||
83 | # define MON_10 (MON_1 + 9) | 86 | # define MON_10 (MON_1 + 9) |
84 | # define MON_11 (MON_1 + 10) | 87 | # define MON_11 (MON_1 + 10) |
85 | # define MON_12 (MON_1 + 11) | 88 | # define MON_12 (MON_1 + 11) |
89 | # define ALTMON_1 10200 | ||
90 | # define ALTMON_2 (ALTMON_1 + 1) | ||
91 | # define ALTMON_3 (ALTMON_1 + 2) | ||
92 | # define ALTMON_4 (ALTMON_1 + 3) | ||
93 | # define ALTMON_5 (ALTMON_1 + 4) | ||
94 | # define ALTMON_6 (ALTMON_1 + 5) | ||
95 | # define ALTMON_7 (ALTMON_1 + 6) | ||
96 | # define ALTMON_8 (ALTMON_1 + 7) | ||
97 | # define ALTMON_9 (ALTMON_1 + 8) | ||
98 | # define ALTMON_10 (ALTMON_1 + 9) | ||
99 | # define ALTMON_11 (ALTMON_1 + 10) | ||
100 | # define ALTMON_12 (ALTMON_1 + 11) | ||
86 | # define ABMON_1 10035 | 101 | # define ABMON_1 10035 |
87 | # define ABMON_2 (ABMON_1 + 1) | 102 | # define ABMON_2 (ABMON_1 + 1) |
88 | # define ABMON_3 (ABMON_1 + 2) | 103 | # define ABMON_3 (ABMON_1 + 2) |
@@ -102,6 +117,21 @@ typedef int nl_item; | |||
102 | # define ALT_DIGITS 10051 | 117 | # define ALT_DIGITS 10051 |
103 | /* nl_langinfo items of the LC_MONETARY category */ | 118 | /* nl_langinfo items of the LC_MONETARY category */ |
104 | # define CRNCYSTR 10052 | 119 | # define CRNCYSTR 10052 |
120 | # define CURRENCY_SYMBOL CRNCYSTR | ||
121 | # define INT_CURR_SYMBOL 10100 | ||
122 | # define MON_DECIMAL_POINT 10101 | ||
123 | # define MON_THOUSANDS_SEP 10102 | ||
124 | # define MON_GROUPING 10103 | ||
125 | # define POSITIVE_SIGN 10104 | ||
126 | # define NEGATIVE_SIGN 10105 | ||
127 | # define FRAC_DIGITS 10106 | ||
128 | # define INT_FRAC_DIGITS 10107 | ||
129 | # define P_CS_PRECEDES 10108 | ||
130 | # define N_CS_PRECEDES 10109 | ||
131 | # define P_SEP_BY_SPACE 10110 | ||
132 | # define N_SEP_BY_SPACE 10111 | ||
133 | # define P_SIGN_POSN 10112 | ||
134 | # define N_SIGN_POSN 10113 | ||
105 | /* nl_langinfo items of the LC_MESSAGES category */ | 135 | /* nl_langinfo items of the LC_MESSAGES category */ |
106 | # define YESEXPR 10053 | 136 | # define YESEXPR 10053 |
107 | # define NOEXPR 10054 | 137 | # define NOEXPR 10054 |
@@ -120,6 +150,22 @@ typedef int nl_item; | |||
120 | # define GNULIB_defined_T_FMT_AMPM 1 | 150 | # define GNULIB_defined_T_FMT_AMPM 1 |
121 | # endif | 151 | # endif |
122 | 152 | ||
153 | # if !@HAVE_LANGINFO_ALTMON@ | ||
154 | # define ALTMON_1 10200 | ||
155 | # define ALTMON_2 (ALTMON_1 + 1) | ||
156 | # define ALTMON_3 (ALTMON_1 + 2) | ||
157 | # define ALTMON_4 (ALTMON_1 + 3) | ||
158 | # define ALTMON_5 (ALTMON_1 + 4) | ||
159 | # define ALTMON_6 (ALTMON_1 + 5) | ||
160 | # define ALTMON_7 (ALTMON_1 + 6) | ||
161 | # define ALTMON_8 (ALTMON_1 + 7) | ||
162 | # define ALTMON_9 (ALTMON_1 + 8) | ||
163 | # define ALTMON_10 (ALTMON_1 + 9) | ||
164 | # define ALTMON_11 (ALTMON_1 + 10) | ||
165 | # define ALTMON_12 (ALTMON_1 + 11) | ||
166 | # define GNULIB_defined_ALTMON 1 | ||
167 | # endif | ||
168 | |||
123 | # if !@HAVE_LANGINFO_ERA@ | 169 | # if !@HAVE_LANGINFO_ERA@ |
124 | # define ERA 10047 | 170 | # define ERA 10047 |
125 | # define ERA_D_FMT 10048 | 171 | # define ERA_D_FMT 10048 |