Mercurial > hg > octave-lojdl > gnulib-hg
annotate lib/locale.in.h @ 17325:9d7698fd5b5f
openpty: fix bug where HAVE_OPENPTY is mistakenly 1
Problem reported by Mats Erik Andersson in
<http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
* m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
openpty function exists, not merely when we intend to replace it.
This corrects the 2013-01-31 patch, which mistakenly defined
HAVE_OPENPTY even on hosts that lacked it.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Fri, 08 Feb 2013 08:03:23 -0800 |
parents | a4996fb12971 |
children |
rev | line source |
---|---|
9254
aa96ae5634ab
Rename locale_.h to locale.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
1 /* A POSIX <locale.h>. |
17249
e542fd46ad6f
maint: update all copyright year number ranges
Eric Blake <eblake@redhat.com>
parents:
16935
diff
changeset
|
2 Copyright (C) 2007-2013 Free Software Foundation, Inc. |
9254
aa96ae5634ab
Rename locale_.h to locale.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
3 |
9309
bbbbbf4cd1c5
Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents:
9254
diff
changeset
|
4 This program is free software: you can redistribute it and/or modify |
9254
aa96ae5634ab
Rename locale_.h to locale.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
5 it under the terms of the GNU General Public License as published by |
9309
bbbbbf4cd1c5
Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents:
9254
diff
changeset
|
6 the Free Software Foundation; either version 3 of the License, or |
bbbbbf4cd1c5
Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents:
9254
diff
changeset
|
7 (at your option) any later version. |
9254
aa96ae5634ab
Rename locale_.h to locale.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
8 |
aa96ae5634ab
Rename locale_.h to locale.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
9 This program is distributed in the hope that it will be useful, |
aa96ae5634ab
Rename locale_.h to locale.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
10 but WITHOUT ANY WARRANTY; without even the implied warranty of |
aa96ae5634ab
Rename locale_.h to locale.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
aa96ae5634ab
Rename locale_.h to locale.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
12 GNU General Public License for more details. |
aa96ae5634ab
Rename locale_.h to locale.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
13 |
aa96ae5634ab
Rename locale_.h to locale.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
14 You should have received a copy of the GNU General Public License |
9309
bbbbbf4cd1c5
Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents:
9254
diff
changeset
|
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
9254
aa96ae5634ab
Rename locale_.h to locale.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
16 |
10655
8668b19a7032
Avoid gcc warnings because of #pragma GCC system_header on older gcc.
Bruno Haible <bruno@clisp.org>
parents:
10375
diff
changeset
|
17 #if __GNUC__ >= 3 |
10375
f96e845fc36d
Avoid some "gcc -pedantic" warnings.
Bruno Haible <bruno@clisp.org>
parents:
9309
diff
changeset
|
18 @PRAGMA_SYSTEM_HEADER@ |
10655
8668b19a7032
Avoid gcc warnings because of #pragma GCC system_header on older gcc.
Bruno Haible <bruno@clisp.org>
parents:
10375
diff
changeset
|
19 #endif |
13761
a19ace3ba849
Avoid line length limitation from HP NonStop system header files.
Bruno Haible <bruno@clisp.org>
parents:
13113
diff
changeset
|
20 @PRAGMA_COLUMNS@ |
10375
f96e845fc36d
Avoid some "gcc -pedantic" warnings.
Bruno Haible <bruno@clisp.org>
parents:
9309
diff
changeset
|
21 |
17282
a4996fb12971
locale: port to Solaris 2.6 and 7 + GNU gettext
Paul Eggert <eggert@cs.ucla.edu>
parents:
17249
diff
changeset
|
22 #ifdef _GL_ALREADY_INCLUDING_LOCALE_H |
a4996fb12971
locale: port to Solaris 2.6 and 7 + GNU gettext
Paul Eggert <eggert@cs.ucla.edu>
parents:
17249
diff
changeset
|
23 |
a4996fb12971
locale: port to Solaris 2.6 and 7 + GNU gettext
Paul Eggert <eggert@cs.ucla.edu>
parents:
17249
diff
changeset
|
24 /* Special invocation conventions to handle Solaris header files |
a4996fb12971
locale: port to Solaris 2.6 and 7 + GNU gettext
Paul Eggert <eggert@cs.ucla.edu>
parents:
17249
diff
changeset
|
25 (through Solaris 10) when combined with gettext's libintl.h. */ |
a4996fb12971
locale: port to Solaris 2.6 and 7 + GNU gettext
Paul Eggert <eggert@cs.ucla.edu>
parents:
17249
diff
changeset
|
26 |
a4996fb12971
locale: port to Solaris 2.6 and 7 + GNU gettext
Paul Eggert <eggert@cs.ucla.edu>
parents:
17249
diff
changeset
|
27 #@INCLUDE_NEXT@ @NEXT_LOCALE_H@ |
a4996fb12971
locale: port to Solaris 2.6 and 7 + GNU gettext
Paul Eggert <eggert@cs.ucla.edu>
parents:
17249
diff
changeset
|
28 |
a4996fb12971
locale: port to Solaris 2.6 and 7 + GNU gettext
Paul Eggert <eggert@cs.ucla.edu>
parents:
17249
diff
changeset
|
29 #else |
a4996fb12971
locale: port to Solaris 2.6 and 7 + GNU gettext
Paul Eggert <eggert@cs.ucla.edu>
parents:
17249
diff
changeset
|
30 /* Normal invocation convention. */ |
a4996fb12971
locale: port to Solaris 2.6 and 7 + GNU gettext
Paul Eggert <eggert@cs.ucla.edu>
parents:
17249
diff
changeset
|
31 |
a4996fb12971
locale: port to Solaris 2.6 and 7 + GNU gettext
Paul Eggert <eggert@cs.ucla.edu>
parents:
17249
diff
changeset
|
32 #ifndef _@GUARD_PREFIX@_LOCALE_H |
a4996fb12971
locale: port to Solaris 2.6 and 7 + GNU gettext
Paul Eggert <eggert@cs.ucla.edu>
parents:
17249
diff
changeset
|
33 |
a4996fb12971
locale: port to Solaris 2.6 and 7 + GNU gettext
Paul Eggert <eggert@cs.ucla.edu>
parents:
17249
diff
changeset
|
34 #define _GL_ALREADY_INCLUDING_LOCALE_H |
a4996fb12971
locale: port to Solaris 2.6 and 7 + GNU gettext
Paul Eggert <eggert@cs.ucla.edu>
parents:
17249
diff
changeset
|
35 |
9254
aa96ae5634ab
Rename locale_.h to locale.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
36 /* The include_next requires a split double-inclusion guard. */ |
aa96ae5634ab
Rename locale_.h to locale.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
37 #@INCLUDE_NEXT@ @NEXT_LOCALE_H@ |
aa96ae5634ab
Rename locale_.h to locale.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
38 |
17282
a4996fb12971
locale: port to Solaris 2.6 and 7 + GNU gettext
Paul Eggert <eggert@cs.ucla.edu>
parents:
17249
diff
changeset
|
39 #undef _GL_ALREADY_INCLUDING_LOCALE_H |
a4996fb12971
locale: port to Solaris 2.6 and 7 + GNU gettext
Paul Eggert <eggert@cs.ucla.edu>
parents:
17249
diff
changeset
|
40 |
14840
5f709022a256
Allow multiple gnulib generated include files to be combined.
Bruno Haible <bruno@clisp.org>
parents:
14339
diff
changeset
|
41 #ifndef _@GUARD_PREFIX@_LOCALE_H |
5f709022a256
Allow multiple gnulib generated include files to be combined.
Bruno Haible <bruno@clisp.org>
parents:
14339
diff
changeset
|
42 #define _@GUARD_PREFIX@_LOCALE_H |
9254
aa96ae5634ab
Rename locale_.h to locale.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
43 |
11832
ff3dd373542b
stddef: fix NetBSD 5.0 NULL bug, rather than working around it
Eric Blake <ebb9@byu.net>
parents:
10655
diff
changeset
|
44 /* NetBSD 5.0 mis-defines NULL. */ |
ff3dd373542b
stddef: fix NetBSD 5.0 NULL bug, rather than working around it
Eric Blake <ebb9@byu.net>
parents:
10655
diff
changeset
|
45 #include <stddef.h> |
ff3dd373542b
stddef: fix NetBSD 5.0 NULL bug, rather than working around it
Eric Blake <ebb9@byu.net>
parents:
10655
diff
changeset
|
46 |
16935
498a2211d839
Write "Mac OS X" instead of "MacOS X".
Bruno Haible <bruno@clisp.org>
parents:
16720
diff
changeset
|
47 /* Mac OS X 10.5 defines the locale_t type in <xlocale.h>. */ |
12340
2da64958ab60
locale: Make locale_t available when possible.
Bruno Haible <bruno@clisp.org>
parents:
11832
diff
changeset
|
48 #if @HAVE_XLOCALE_H@ |
2da64958ab60
locale: Make locale_t available when possible.
Bruno Haible <bruno@clisp.org>
parents:
11832
diff
changeset
|
49 # include <xlocale.h> |
2da64958ab60
locale: Make locale_t available when possible.
Bruno Haible <bruno@clisp.org>
parents:
11832
diff
changeset
|
50 #endif |
2da64958ab60
locale: Make locale_t available when possible.
Bruno Haible <bruno@clisp.org>
parents:
11832
diff
changeset
|
51 |
12935
3e591f7f34d8
locale: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
12766
diff
changeset
|
52 /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ |
3e591f7f34d8
locale: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
12766
diff
changeset
|
53 |
12766
2c14f1e449e5
warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents:
12559
diff
changeset
|
54 /* The definition of _GL_ARG_NONNULL is copied here. */ |
12524
8db404cb2e51
link-warning: make usage consistent
Eric Blake <ebb9@byu.net>
parents:
12422
diff
changeset
|
55 |
12766
2c14f1e449e5
warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents:
12559
diff
changeset
|
56 /* The definition of _GL_WARN_ON_USE is copied here. */ |
12422
f7842310a565
New module 'arg-nonnull'. Declare which arguments expect non-NULL values.
Bruno Haible <bruno@clisp.org>
parents:
12342
diff
changeset
|
57 |
9254
aa96ae5634ab
Rename locale_.h to locale.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
58 /* The LC_MESSAGES locale category is specified in POSIX, but not in ISO C. |
aa96ae5634ab
Rename locale_.h to locale.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
59 On systems that don't define it, use the same value as GNU libintl. */ |
aa96ae5634ab
Rename locale_.h to locale.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
60 #if !defined LC_MESSAGES |
aa96ae5634ab
Rename locale_.h to locale.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
61 # define LC_MESSAGES 1729 |
aa96ae5634ab
Rename locale_.h to locale.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
62 #endif |
aa96ae5634ab
Rename locale_.h to locale.in.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
63 |
16717
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
64 /* Bionic libc's 'struct lconv' is just a dummy. */ |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
65 #if @REPLACE_STRUCT_LCONV@ |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
66 # define lconv rpl_lconv |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
67 struct lconv |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
68 { |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
69 /* All 'char *' are actually 'const char *'. */ |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
70 |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
71 /* Members that depend on the LC_NUMERIC category of the locale. See |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
72 <http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap07.html#tag_07_03_04> */ |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
73 |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
74 /* Symbol used as decimal point. */ |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
75 char *decimal_point; |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
76 /* Symbol used to separate groups of digits to the left of the decimal |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
77 point. */ |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
78 char *thousands_sep; |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
79 /* Definition of the size of groups of digits to the left of the decimal |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
80 point. */ |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
81 char *grouping; |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
82 |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
83 /* Members that depend on the LC_MONETARY category of the locale. See |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
84 <http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap07.html#tag_07_03_03> */ |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
85 |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
86 /* Symbol used as decimal point. */ |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
87 char *mon_decimal_point; |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
88 /* Symbol used to separate groups of digits to the left of the decimal |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
89 point. */ |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
90 char *mon_thousands_sep; |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
91 /* Definition of the size of groups of digits to the left of the decimal |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
92 point. */ |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
93 char *mon_grouping; |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
94 /* Sign used to indicate a value >= 0. */ |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
95 char *positive_sign; |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
96 /* Sign used to indicate a value < 0. */ |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
97 char *negative_sign; |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
98 |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
99 /* For formatting local currency. */ |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
100 /* Currency symbol (3 characters) followed by separator (1 character). */ |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
101 char *currency_symbol; |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
102 /* Number of digits after the decimal point. */ |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
103 char frac_digits; |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
104 /* For values >= 0: 1 if the currency symbol precedes the number, 0 if it |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
105 comes after the number. */ |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
106 char p_cs_precedes; |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
107 /* For values >= 0: Position of the sign. */ |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
108 char p_sign_posn; |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
109 /* For values >= 0: Placement of spaces between currency symbol, sign, and |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
110 number. */ |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
111 char p_sep_by_space; |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
112 /* For values < 0: 1 if the currency symbol precedes the number, 0 if it |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
113 comes after the number. */ |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
114 char n_cs_precedes; |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
115 /* For values < 0: Position of the sign. */ |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
116 char n_sign_posn; |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
117 /* For values < 0: Placement of spaces between currency symbol, sign, and |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
118 number. */ |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
119 char n_sep_by_space; |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
120 |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
121 /* For formatting international currency. */ |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
122 /* Currency symbol (3 characters) followed by separator (1 character). */ |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
123 char *int_curr_symbol; |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
124 /* Number of digits after the decimal point. */ |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
125 char int_frac_digits; |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
126 /* For values >= 0: 1 if the currency symbol precedes the number, 0 if it |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
127 comes after the number. */ |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
128 char int_p_cs_precedes; |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
129 /* For values >= 0: Position of the sign. */ |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
130 char int_p_sign_posn; |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
131 /* For values >= 0: Placement of spaces between currency symbol, sign, and |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
132 number. */ |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
133 char int_p_sep_by_space; |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
134 /* For values < 0: 1 if the currency symbol precedes the number, 0 if it |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
135 comes after the number. */ |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
136 char int_n_cs_precedes; |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
137 /* For values < 0: Position of the sign. */ |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
138 char int_n_sign_posn; |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
139 /* For values < 0: Placement of spaces between currency symbol, sign, and |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
140 number. */ |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
141 char int_n_sep_by_space; |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
142 }; |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
143 #endif |
474c0712e7aa
locale: Provide a working 'struct lconv'.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
144 |
16720 | 145 #if @GNULIB_LOCALECONV@ |
146 # if @REPLACE_LOCALECONV@ | |
147 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | |
148 # undef localeconv | |
149 # define localeconv rpl_localeconv | |
150 # endif | |
151 _GL_FUNCDECL_RPL (localeconv, struct lconv *, (void)); | |
152 _GL_CXXALIAS_RPL (localeconv, struct lconv *, (void)); | |
153 # else | |
154 _GL_CXXALIAS_SYS (localeconv, struct lconv *, (void)); | |
155 # endif | |
156 _GL_CXXALIASWARN (localeconv); | |
157 #elif @REPLACE_STRUCT_LCONV@ | |
158 # undef localeconv | |
159 # define localeconv localeconv_used_without_requesting_gnulib_module_localeconv | |
160 #elif defined GNULIB_POSIXCHECK | |
161 # undef localeconv | |
162 # if HAVE_RAW_DECL_LOCALECONV | |
163 _GL_WARN_ON_USE (localeconv, | |
164 "localeconv returns too few information on some platforms - " | |
165 "use gnulib module localeconv for portability"); | |
166 # endif | |
167 #endif | |
168 | |
14330 | 169 #if @GNULIB_SETLOCALE@ |
170 # if @REPLACE_SETLOCALE@ | |
171 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | |
172 # undef setlocale | |
173 # define setlocale rpl_setlocale | |
14339
79ce823766c3
setlocale: Prefer gnulib's override over libintl's override.
Bruno Haible <bruno@clisp.org>
parents:
14330
diff
changeset
|
174 # define GNULIB_defined_setlocale 1 |
14330 | 175 # endif |
176 _GL_FUNCDECL_RPL (setlocale, char *, (int category, const char *locale)); | |
177 _GL_CXXALIAS_RPL (setlocale, char *, (int category, const char *locale)); | |
178 # else | |
179 _GL_CXXALIAS_SYS (setlocale, char *, (int category, const char *locale)); | |
180 # endif | |
181 _GL_CXXALIASWARN (setlocale); | |
182 #elif defined GNULIB_POSIXCHECK | |
183 # undef setlocale | |
184 # if HAVE_RAW_DECL_SETLOCALE | |
185 _GL_WARN_ON_USE (setlocale, "setlocale works differently on native Windows - " | |
186 "use gnulib module setlocale for portability"); | |
187 # endif | |
188 #endif | |
189 | |
12342 | 190 #if @GNULIB_DUPLOCALE@ |
191 # if @REPLACE_DUPLOCALE@ | |
12935
3e591f7f34d8
locale: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
12766
diff
changeset
|
192 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
3e591f7f34d8
locale: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
12766
diff
changeset
|
193 # undef duplocale |
3e591f7f34d8
locale: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
12766
diff
changeset
|
194 # define duplocale rpl_duplocale |
3e591f7f34d8
locale: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
12766
diff
changeset
|
195 # endif |
3e591f7f34d8
locale: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
12766
diff
changeset
|
196 _GL_FUNCDECL_RPL (duplocale, locale_t, (locale_t locale) _GL_ARG_NONNULL ((1))); |
3e591f7f34d8
locale: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
12766
diff
changeset
|
197 _GL_CXXALIAS_RPL (duplocale, locale_t, (locale_t locale)); |
3e591f7f34d8
locale: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
12766
diff
changeset
|
198 # else |
3e591f7f34d8
locale: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
12766
diff
changeset
|
199 # if @HAVE_DUPLOCALE@ |
3e591f7f34d8
locale: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
12766
diff
changeset
|
200 _GL_CXXALIAS_SYS (duplocale, locale_t, (locale_t locale)); |
3e591f7f34d8
locale: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
12766
diff
changeset
|
201 # endif |
12342 | 202 # endif |
13113
f9a2da4bbba9
locale: Make C++ tests work on Cygwin and mingw.
Bruno Haible <bruno@clisp.org>
parents:
13094
diff
changeset
|
203 # if @HAVE_DUPLOCALE@ |
12935
3e591f7f34d8
locale: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
12766
diff
changeset
|
204 _GL_CXXALIASWARN (duplocale); |
13113
f9a2da4bbba9
locale: Make C++ tests work on Cygwin and mingw.
Bruno Haible <bruno@clisp.org>
parents:
13094
diff
changeset
|
205 # endif |
12342 | 206 #elif defined GNULIB_POSIXCHECK |
207 # undef duplocale | |
12766
2c14f1e449e5
warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents:
12559
diff
changeset
|
208 # if HAVE_RAW_DECL_DUPLOCALE |
2c14f1e449e5
warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents:
12559
diff
changeset
|
209 _GL_WARN_ON_USE (duplocale, "duplocale is buggy on some glibc systems - " |
2c14f1e449e5
warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents:
12559
diff
changeset
|
210 "use gnulib module duplocale for portability"); |
2c14f1e449e5
warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents:
12559
diff
changeset
|
211 # endif |
12342 | 212 #endif |
213 | |
14840
5f709022a256
Allow multiple gnulib generated include files to be combined.
Bruno Haible <bruno@clisp.org>
parents:
14339
diff
changeset
|
214 #endif /* _@GUARD_PREFIX@_LOCALE_H */ |
17282
a4996fb12971
locale: port to Solaris 2.6 and 7 + GNU gettext
Paul Eggert <eggert@cs.ucla.edu>
parents:
17249
diff
changeset
|
215 #endif /* ! _GL_ALREADY_INCLUDING_LOCALE_H */ |
14840
5f709022a256
Allow multiple gnulib generated include files to be combined.
Bruno Haible <bruno@clisp.org>
parents:
14339
diff
changeset
|
216 #endif /* _@GUARD_PREFIX@_LOCALE_H */ |