Mercurial > hg > CbC > CbC_gcc
annotate gcc/intl.h @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
rev | line source |
---|---|
0 | 1 /* intl.h - internationalization |
131 | 2 Copyright (C) 1998-2018 Free Software Foundation, Inc. |
0 | 3 |
4 GCC is free software; you can redistribute it and/or modify | |
5 it under the terms of the GNU General Public License as published by | |
6 the Free Software Foundation; either version 3, or (at your option) | |
7 any later version. | |
8 | |
9 GCC is distributed in the hope that it will be useful, | |
10 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 GNU General Public License for more details. | |
13 | |
14 You should have received a copy of the GNU General Public License | |
15 along with GCC; see the file COPYING3. If not see | |
16 <http://www.gnu.org/licenses/>. */ | |
17 | |
18 #ifndef GCC_INTL_H | |
19 #define GCC_INTL_H | |
20 | |
21 #ifdef HAVE_LOCALE_H | |
22 # include <locale.h> | |
23 #endif | |
24 | |
25 #ifndef HAVE_SETLOCALE | |
26 # define setlocale(category, locale) (locale) | |
27 #endif | |
28 | |
29 #ifdef ENABLE_NLS | |
30 #include <libintl.h> | |
31 extern void gcc_init_libintl (void); | |
32 extern size_t gcc_gettext_width (const char *); | |
33 #else | |
34 /* Stubs. */ | |
35 # undef textdomain | |
36 # define textdomain(domain) (domain) | |
37 # undef bindtextdomain | |
38 # define bindtextdomain(domain, directory) (domain) | |
39 # undef gettext | |
40 # define gettext(msgid) (msgid) | |
111 | 41 # define ngettext(singular,plural,n) fake_ngettext (singular, plural, n) |
0 | 42 # define gcc_init_libintl() /* nothing */ |
111 | 43 # define gcc_gettext_width(s) strlen (s) |
63
b7f97abdc517
update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
44 |
111 | 45 extern const char *fake_ngettext (const char *singular, const char *plural, |
46 unsigned long int n); | |
63
b7f97abdc517
update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
47 |
0 | 48 #endif |
49 | |
50 #ifndef _ | |
51 # define _(msgid) gettext (msgid) | |
52 #endif | |
53 | |
54 #ifndef N_ | |
55 # define N_(msgid) msgid | |
56 #endif | |
57 | |
58 #ifndef G_ | |
59 # define G_(gmsgid) gmsgid | |
60 #endif | |
61 | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
62 extern char *get_spaces (const char *); |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
63 |
0 | 64 extern const char *open_quote; |
65 extern const char *close_quote; | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
66 extern const char *locale_encoding; |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
67 extern bool locale_utf8; |
0 | 68 |
69 #endif /* intl.h */ |