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