~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to lib/locale.in.h

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-11-28 03:03:42 UTC
  • mfrom: (8.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20121128030342-21zanj8354gas5gr
Tags: 8.20-3ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Make 'uname -i -p' return the real processor/hardware, instead of
    unknown.
  - Build-depend on gettext:any instead of on gettext, so that apt-get can
    properly resolve build-dependencies on the tool when cross-building.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* A POSIX <locale.h>.
2
 
   Copyright (C) 2007-2011 Free Software Foundation, Inc.
 
2
   Copyright (C) 2007-2012 Free Software Foundation, Inc.
3
3
 
4
4
   This program is free software: you can redistribute it and/or modify
5
5
   it under the terms of the GNU General Public License as published by
30
30
/* NetBSD 5.0 mis-defines NULL.  */
31
31
#include <stddef.h>
32
32
 
33
 
/* MacOS X 10.5 defines the locale_t type in <xlocale.h>.  */
 
33
/* Mac OS X 10.5 defines the locale_t type in <xlocale.h>.  */
34
34
#if @HAVE_XLOCALE_H@
35
35
# include <xlocale.h>
36
36
#endif
47
47
# define LC_MESSAGES 1729
48
48
#endif
49
49
 
 
50
/* Bionic libc's 'struct lconv' is just a dummy.  */
 
51
#if @REPLACE_STRUCT_LCONV@
 
52
# define lconv rpl_lconv
 
53
struct lconv
 
54
{
 
55
  /* All 'char *' are actually 'const char *'.  */
 
56
 
 
57
  /* Members that depend on the LC_NUMERIC category of the locale.  See
 
58
     <http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap07.html#tag_07_03_04> */
 
59
 
 
60
  /* Symbol used as decimal point.  */
 
61
  char *decimal_point;
 
62
  /* Symbol used to separate groups of digits to the left of the decimal
 
63
     point.  */
 
64
  char *thousands_sep;
 
65
  /* Definition of the size of groups of digits to the left of the decimal
 
66
     point.  */
 
67
  char *grouping;
 
68
 
 
69
  /* Members that depend on the LC_MONETARY category of the locale.  See
 
70
     <http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap07.html#tag_07_03_03> */
 
71
 
 
72
  /* Symbol used as decimal point.  */
 
73
  char *mon_decimal_point;
 
74
  /* Symbol used to separate groups of digits to the left of the decimal
 
75
     point.  */
 
76
  char *mon_thousands_sep;
 
77
  /* Definition of the size of groups of digits to the left of the decimal
 
78
     point.  */
 
79
  char *mon_grouping;
 
80
  /* Sign used to indicate a value >= 0.  */
 
81
  char *positive_sign;
 
82
  /* Sign used to indicate a value < 0.  */
 
83
  char *negative_sign;
 
84
 
 
85
  /* For formatting local currency.  */
 
86
  /* Currency symbol (3 characters) followed by separator (1 character).  */
 
87
  char *currency_symbol;
 
88
  /* Number of digits after the decimal point.  */
 
89
  char frac_digits;
 
90
  /* For values >= 0: 1 if the currency symbol precedes the number, 0 if it
 
91
     comes after the number.  */
 
92
  char p_cs_precedes;
 
93
  /* For values >= 0: Position of the sign.  */
 
94
  char p_sign_posn;
 
95
  /* For values >= 0: Placement of spaces between currency symbol, sign, and
 
96
     number.  */
 
97
  char p_sep_by_space;
 
98
  /* For values < 0: 1 if the currency symbol precedes the number, 0 if it
 
99
     comes after the number.  */
 
100
  char n_cs_precedes;
 
101
  /* For values < 0: Position of the sign.  */
 
102
  char n_sign_posn;
 
103
  /* For values < 0: Placement of spaces between currency symbol, sign, and
 
104
     number.  */
 
105
  char n_sep_by_space;
 
106
 
 
107
  /* For formatting international currency.  */
 
108
  /* Currency symbol (3 characters) followed by separator (1 character).  */
 
109
  char *int_curr_symbol;
 
110
  /* Number of digits after the decimal point.  */
 
111
  char int_frac_digits;
 
112
  /* For values >= 0: 1 if the currency symbol precedes the number, 0 if it
 
113
     comes after the number.  */
 
114
  char int_p_cs_precedes;
 
115
  /* For values >= 0: Position of the sign.  */
 
116
  char int_p_sign_posn;
 
117
  /* For values >= 0: Placement of spaces between currency symbol, sign, and
 
118
     number.  */
 
119
  char int_p_sep_by_space;
 
120
  /* For values < 0: 1 if the currency symbol precedes the number, 0 if it
 
121
     comes after the number.  */
 
122
  char int_n_cs_precedes;
 
123
  /* For values < 0: Position of the sign.  */
 
124
  char int_n_sign_posn;
 
125
  /* For values < 0: Placement of spaces between currency symbol, sign, and
 
126
     number.  */
 
127
  char int_n_sep_by_space;
 
128
};
 
129
#endif
 
130
 
 
131
#if @GNULIB_LOCALECONV@
 
132
# if @REPLACE_LOCALECONV@
 
133
#  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
 
134
#   undef localeconv
 
135
#   define localeconv rpl_localeconv
 
136
#  endif
 
137
_GL_FUNCDECL_RPL (localeconv, struct lconv *, (void));
 
138
_GL_CXXALIAS_RPL (localeconv, struct lconv *, (void));
 
139
# else
 
140
_GL_CXXALIAS_SYS (localeconv, struct lconv *, (void));
 
141
# endif
 
142
_GL_CXXALIASWARN (localeconv);
 
143
#elif @REPLACE_STRUCT_LCONV@
 
144
# undef localeconv
 
145
# define localeconv localeconv_used_without_requesting_gnulib_module_localeconv
 
146
#elif defined GNULIB_POSIXCHECK
 
147
# undef localeconv
 
148
# if HAVE_RAW_DECL_LOCALECONV
 
149
_GL_WARN_ON_USE (localeconv,
 
150
                 "localeconv returns too few information on some platforms - "
 
151
                 "use gnulib module localeconv for portability");
 
152
# endif
 
153
#endif
 
154
 
50
155
#if @GNULIB_SETLOCALE@
51
156
# if @REPLACE_SETLOCALE@
52
157
#  if !(defined __cplusplus && defined GNULIB_NAMESPACE)