annotate lib/langinfo.in.h @ 13761:a19ace3ba849

Avoid line length limitation from HP NonStop system header files. * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS. * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS. * lib/ctype.in.h: Likewise. * lib/dirent.in.h: Likewise. * lib/errno.in.h: Likewise. * lib/fcntl.in.h: Likewise. * lib/float.in.h: Likewise. * lib/getopt.in.h: Likewise. * lib/iconv.in.h: Likewise. * lib/inttypes.in.h: Likewise. * lib/langinfo.in.h: Likewise. * lib/locale.in.h: Likewise. * lib/math.in.h: Likewise. * lib/netdb.in.h: Likewise. * lib/netinet_in.in.h: Likewise. * lib/poll.in.h: Likewise. * lib/pthread.in.h: Likewise. * lib/pty.in.h: Likewise. * lib/sched.in.h: Likewise. * lib/se-selinux.in.h: Likewise. * lib/search.in.h: Likewise. * lib/signal.in.h: Likewise. * lib/spawn.in.h: Likewise. * lib/stdarg.in.h: Likewise. * lib/stddef.in.h: Likewise. * lib/stdint.in.h: Likewise. * lib/stdio.in.h: Likewise. * lib/stdlib.in.h: Likewise. * lib/string.in.h: Likewise. * lib/strings.in.h: Likewise. * lib/sys_file.in.h: Likewise. * lib/sys_ioctl.in.h: Likewise. * lib/sys_select.in.h: Likewise. * lib/sys_socket.in.h: Likewise. * lib/sys_stat.in.h: Likewise. * lib/sys_time.in.h: Likewise. * lib/sys_times.in.h: Likewise. * lib/sys_utsname.in.h: Likewise. * lib/sys_wait.in.h: Likewise. * lib/sysexits.in.h: Likewise. * lib/termios.in.h: Likewise. * lib/time.in.h: Likewise. * lib/unistd.in.h: Likewise. * lib/wchar.in.h: Likewise. * lib/wctype.in.h: Likewise. * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS. * modules/ctype (Makefile.am): Likewise. * modules/dirent (Makefile.am): Likewise. * modules/errno (Makefile.am): Likewise. * modules/fcntl-h (Makefile.am): Likewise. * modules/float (Makefile.am): Likewise. * modules/getopt-posix (Makefile.am): Likewise. * modules/iconv-h (Makefile.am): Likewise. * modules/inttypes (Makefile.am): Likewise. * modules/langinfo (Makefile.am): Likewise. * modules/locale (Makefile.am): Likewise. * modules/math (Makefile.am): Likewise. * modules/netdb (Makefile.am): Likewise. * modules/netinet_in (Makefile.am): Likewise. * modules/poll-h (Makefile.am): Likewise. * modules/pthread (Makefile.am): Likewise. * modules/pty (Makefile.am): Likewise. * modules/sched (Makefile.am): Likewise. * modules/search (Makefile.am): Likewise. * modules/selinux-h (Makefile.am): Likewise. * modules/signal (Makefile.am): Likewise. * modules/spawn (Makefile.am): Likewise. * modules/stdarg (Makefile.am): Likewise. * modules/stddef (Makefile.am): Likewise. * modules/stdint (Makefile.am): Likewise. * modules/stdio (Makefile.am): Likewise. * modules/stdlib (Makefile.am): Likewise. * modules/string (Makefile.am): Likewise. * modules/strings (Makefile.am): Likewise. * modules/sys_file (Makefile.am): Likewise. * modules/sys_ioctl (Makefile.am): Likewise. * modules/sys_select (Makefile.am): Likewise. * modules/sys_socket (Makefile.am): Likewise. * modules/sys_stat (Makefile.am): Likewise. * modules/sys_time (Makefile.am): Likewise. * modules/sys_times (Makefile.am): Likewise. * modules/sys_utsname (Makefile.am): Likewise. * modules/sys_wait (Makefile.am): Likewise. * modules/sysexits (Makefile.am): Likewise. * modules/termios (Makefile.am): Likewise. * modules/time (Makefile.am): Likewise. * modules/unistd (Makefile.am): Likewise. * modules/wchar (Makefile.am): Likewise. * modules/wctype (Makefile.am): Likewise.
author Bruno Haible <bruno@clisp.org>
date Mon, 04 Oct 2010 23:35:51 +0200
parents 9dc0f85b1c1c
children 97fc9a21a8fb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12428
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 /* Substitute for and wrapper around <langinfo.h>.
12559
c2cbabec01dd update nearly all FSF copyright year lists to include 2010
Jim Meyering <meyering@redhat.com>
parents: 12524
diff changeset
2 Copyright (C) 2009, 2010 Free Software Foundation, Inc.
12428
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 This program is free software; you can redistribute it and/or modify
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 it under the terms of the GNU General Public License as published by
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 the Free Software Foundation; either version 2, or (at your option)
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 any later version.
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 This program is distributed in the hope that it will be useful,
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 GNU General Public License for more details.
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 You should have received a copy of the GNU General Public License
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 along with this program; if not, write to the Free Software Foundation,
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18 /*
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 * POSIX <langinfo.h> for platforms that lack it or have an incomplete one.
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20 * <http://www.opengroup.org/onlinepubs/9699919799/basedefs/langinfo.h.html>
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21 */
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22
13094
2ed0fc659db8 Emit #pragma system_header after the inclusion guard, not before.
Bruno Haible <bruno@clisp.org>
parents: 13055
diff changeset
23 #ifndef _GL_LANGINFO_H
2ed0fc659db8 Emit #pragma system_header after the inclusion guard, not before.
Bruno Haible <bruno@clisp.org>
parents: 13055
diff changeset
24
12428
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 #if __GNUC__ >= 3
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26 @PRAGMA_SYSTEM_HEADER@
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 #endif
13761
a19ace3ba849 Avoid line length limitation from HP NonStop system header files.
Bruno Haible <bruno@clisp.org>
parents: 13663
diff changeset
28 @PRAGMA_COLUMNS@
12428
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
29
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
30 /* The include_next requires a split double-inclusion guard. */
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
31 #if @HAVE_LANGINFO_H@
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
32 # @INCLUDE_NEXT@ @NEXT_LANGINFO_H@
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
33 #endif
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
34
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
35 #ifndef _GL_LANGINFO_H
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
36 #define _GL_LANGINFO_H
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
37
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
38
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
39 #if !@HAVE_LANGINFO_H@
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
40
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
41 /* A platform that lacks <langinfo.h>. */
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
42
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
43 /* Assume that it also lacks <nl_types.h> and the nl_item type. */
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
44 typedef int nl_item;
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
45
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
46 /* nl_langinfo items of the LC_CTYPE category */
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
47 # define CODESET 10000
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
48 /* nl_langinfo items of the LC_NUMERIC category */
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
49 # define RADIXCHAR 10001
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
50 # define THOUSEP 10002
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
51 /* nl_langinfo items of the LC_TIME category */
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
52 # define D_T_FMT 10003
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
53 # define D_FMT 10004
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
54 # define T_FMT 10005
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
55 # define T_FMT_AMPM 10006
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
56 # define AM_STR 10007
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
57 # define PM_STR 10008
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
58 # define DAY_1 10009
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
59 # define DAY_2 (DAY_1 + 1)
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
60 # define DAY_3 (DAY_1 + 2)
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
61 # define DAY_4 (DAY_1 + 3)
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
62 # define DAY_5 (DAY_1 + 4)
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
63 # define DAY_6 (DAY_1 + 5)
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
64 # define DAY_7 (DAY_1 + 6)
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
65 # define ABDAY_1 10016
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
66 # define ABDAY_2 (ABDAY_1 + 1)
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
67 # define ABDAY_3 (ABDAY_1 + 2)
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
68 # define ABDAY_4 (ABDAY_1 + 3)
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
69 # define ABDAY_5 (ABDAY_1 + 4)
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
70 # define ABDAY_6 (ABDAY_1 + 5)
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
71 # define ABDAY_7 (ABDAY_1 + 6)
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
72 # define MON_1 10023
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
73 # define MON_2 (MON_1 + 1)
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
74 # define MON_3 (MON_1 + 2)
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
75 # define MON_4 (MON_1 + 3)
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
76 # define MON_5 (MON_1 + 4)
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
77 # define MON_6 (MON_1 + 5)
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
78 # define MON_7 (MON_1 + 6)
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
79 # define MON_8 (MON_1 + 7)
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
80 # define MON_9 (MON_1 + 8)
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
81 # define MON_10 (MON_1 + 9)
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
82 # define MON_11 (MON_1 + 10)
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
83 # define MON_12 (MON_1 + 11)
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
84 # define ABMON_1 10035
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
85 # define ABMON_2 (ABMON_1 + 1)
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
86 # define ABMON_3 (ABMON_1 + 2)
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
87 # define ABMON_4 (ABMON_1 + 3)
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
88 # define ABMON_5 (ABMON_1 + 4)
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
89 # define ABMON_6 (ABMON_1 + 5)
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
90 # define ABMON_7 (ABMON_1 + 6)
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
91 # define ABMON_8 (ABMON_1 + 7)
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
92 # define ABMON_9 (ABMON_1 + 8)
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
93 # define ABMON_10 (ABMON_1 + 9)
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
94 # define ABMON_11 (ABMON_1 + 10)
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
95 # define ABMON_12 (ABMON_1 + 11)
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
96 # define ERA 10047
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
97 # define ERA_D_FMT 10048
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
98 # define ERA_D_T_FMT 10049
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
99 # define ERA_T_FMT 10050
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
100 # define ALT_DIGITS 10051
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
101 /* nl_langinfo items of the LC_MONETARY category */
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
102 # define CRNCYSTR 10052
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
103 /* nl_langinfo items of the LC_MESSAGES category */
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
104 # define YESEXPR 10053
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
105 # define NOEXPR 10054
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
106
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
107 #else
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
108
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
109 /* A platform that has <langinfo.h>. */
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
110
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
111 # if !@HAVE_LANGINFO_CODESET@
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
112 # define CODESET 10000
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
113 # define GNULIB_defined_CODESET 1
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
114 # endif
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
115
13663
9dc0f85b1c1c langinfo, nl_langinfo: Fix for IRIX 5.3.
Bruno Haible <bruno@clisp.org>
parents: 13094
diff changeset
116 # if !@HAVE_LANGINFO_T_FMT_AMPM@
9dc0f85b1c1c langinfo, nl_langinfo: Fix for IRIX 5.3.
Bruno Haible <bruno@clisp.org>
parents: 13094
diff changeset
117 # define T_FMT_AMPM 10006
9dc0f85b1c1c langinfo, nl_langinfo: Fix for IRIX 5.3.
Bruno Haible <bruno@clisp.org>
parents: 13094
diff changeset
118 # define GNULIB_defined_T_FMT_AMPM 1
9dc0f85b1c1c langinfo, nl_langinfo: Fix for IRIX 5.3.
Bruno Haible <bruno@clisp.org>
parents: 13094
diff changeset
119 # endif
9dc0f85b1c1c langinfo, nl_langinfo: Fix for IRIX 5.3.
Bruno Haible <bruno@clisp.org>
parents: 13094
diff changeset
120
12428
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
121 # if !@HAVE_LANGINFO_ERA@
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
122 # define ERA 10047
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
123 # define ERA_D_FMT 10048
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
124 # define ERA_D_T_FMT 10049
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
125 # define ERA_T_FMT 10050
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
126 # define ALT_DIGITS 10051
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
127 # define GNULIB_defined_ERA 1
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
128 # endif
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
129
13663
9dc0f85b1c1c langinfo, nl_langinfo: Fix for IRIX 5.3.
Bruno Haible <bruno@clisp.org>
parents: 13094
diff changeset
130 # if !@HAVE_LANGINFO_YESEXPR@
9dc0f85b1c1c langinfo, nl_langinfo: Fix for IRIX 5.3.
Bruno Haible <bruno@clisp.org>
parents: 13094
diff changeset
131 # define YESEXPR 10053
9dc0f85b1c1c langinfo, nl_langinfo: Fix for IRIX 5.3.
Bruno Haible <bruno@clisp.org>
parents: 13094
diff changeset
132 # define NOEXPR 10054
9dc0f85b1c1c langinfo, nl_langinfo: Fix for IRIX 5.3.
Bruno Haible <bruno@clisp.org>
parents: 13094
diff changeset
133 # define GNULIB_defined_YESEXPR 1
9dc0f85b1c1c langinfo, nl_langinfo: Fix for IRIX 5.3.
Bruno Haible <bruno@clisp.org>
parents: 13094
diff changeset
134 # endif
9dc0f85b1c1c langinfo, nl_langinfo: Fix for IRIX 5.3.
Bruno Haible <bruno@clisp.org>
parents: 13094
diff changeset
135
12428
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
136 #endif
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
137
12934
480ece83bf05 langinfo: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents: 12766
diff changeset
138 /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */
480ece83bf05 langinfo: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents: 12766
diff changeset
139
12766
2c14f1e449e5 warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents: 12559
diff changeset
140 /* The definition of _GL_WARN_ON_USE is copied here. */
12428
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
141
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
142 /* Declare overridden functions. */
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
143
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
144
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
145 /* Return a piece of locale dependent information.
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
146 Note: The difference between nl_langinfo (CODESET) and locale_charset ()
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
147 is that the latter normalizes the encoding names to GNU conventions. */
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
148
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
149 #if @GNULIB_NL_LANGINFO@
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
150 # if @REPLACE_NL_LANGINFO@
12934
480ece83bf05 langinfo: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents: 12766
diff changeset
151 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
480ece83bf05 langinfo: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents: 12766
diff changeset
152 # undef nl_langinfo
480ece83bf05 langinfo: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents: 12766
diff changeset
153 # define nl_langinfo rpl_nl_langinfo
480ece83bf05 langinfo: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents: 12766
diff changeset
154 # endif
480ece83bf05 langinfo: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents: 12766
diff changeset
155 _GL_FUNCDECL_RPL (nl_langinfo, char *, (nl_item item));
480ece83bf05 langinfo: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents: 12766
diff changeset
156 _GL_CXXALIAS_RPL (nl_langinfo, char *, (nl_item item));
480ece83bf05 langinfo: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents: 12766
diff changeset
157 # else
480ece83bf05 langinfo: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents: 12766
diff changeset
158 # if !@HAVE_NL_LANGINFO@
480ece83bf05 langinfo: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents: 12766
diff changeset
159 _GL_FUNCDECL_SYS (nl_langinfo, char *, (nl_item item));
480ece83bf05 langinfo: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents: 12766
diff changeset
160 # endif
480ece83bf05 langinfo: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents: 12766
diff changeset
161 _GL_CXXALIAS_SYS (nl_langinfo, char *, (nl_item item));
12428
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
162 # endif
12934
480ece83bf05 langinfo: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents: 12766
diff changeset
163 _GL_CXXALIASWARN (nl_langinfo);
12428
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
164 #elif defined GNULIB_POSIXCHECK
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
165 # undef nl_langinfo
12766
2c14f1e449e5 warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents: 12559
diff changeset
166 # if HAVE_RAW_DECL_NL_LANGINFO
2c14f1e449e5 warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents: 12559
diff changeset
167 _GL_WARN_ON_USE (nl_langinfo, "nl_langinfo is not portable - "
2c14f1e449e5 warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents: 12559
diff changeset
168 "use gnulib module nl_langinfo for portability");
2c14f1e449e5 warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents: 12559
diff changeset
169 # endif
12428
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
170 #endif
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
171
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
172
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
173 #endif /* _GL_LANGINFO_H */
bffc7ab27488 New module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
174 #endif /* _GL_LANGINFO_H */