]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/intl.h
* doc/md.texi: Document vec_shl_<mode> pattern.
[thirdparty/gcc.git] / gcc / intl.h
CommitLineData
81f6d38d 1/* intl.h - internationalization
fbd26352 2 Copyright (C) 1998-2019 Free Software Foundation, Inc.
81f6d38d 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
8c4c00c1 6 the Free Software Foundation; either version 3, or (at your option)
81f6d38d 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
8c4c00c1 15 along with GCC; see the file COPYING3. If not see
16 <http://www.gnu.org/licenses/>. */
81f6d38d 17
eb718689 18#ifndef GCC_INTL_H
19#define GCC_INTL_H
20
81f6d38d 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
eb718689 29#ifdef ENABLE_NLS
45cde32d 30#include <libintl.h>
1a97be37 31extern void gcc_init_libintl (void);
32extern size_t gcc_gettext_width (const char *);
eb718689 33#else
34/* Stubs. */
35# undef textdomain
81f6d38d 36# define textdomain(domain) (domain)
eb718689 37# undef bindtextdomain
81f6d38d 38# define bindtextdomain(domain, directory) (domain)
eb718689 39# undef gettext
81f6d38d 40# define gettext(msgid) (msgid)
9af5ce0c 41# define ngettext(singular,plural,n) fake_ngettext (singular, plural, n)
eb718689 42# define gcc_init_libintl() /* nothing */
9af5ce0c 43# define gcc_gettext_width(s) strlen (s)
70da6ffe 44
9af5ce0c 45extern const char *fake_ngettext (const char *singular, const char *plural,
46 unsigned long int n);
70da6ffe 47
81f6d38d 48#endif
49
50#ifndef _
51# define _(msgid) gettext (msgid)
52#endif
53
54#ifndef N_
59921254 55# define N_(msgid) msgid
81f6d38d 56#endif
eb718689 57
380c6697 58#ifndef G_
59# define G_(gmsgid) gmsgid
60#endif
61
7dde752d 62extern char *get_spaces (const char *);
63
89e7e005 64extern const char *open_quote;
65extern const char *close_quote;
27746e01 66extern const char *locale_encoding;
67extern bool locale_utf8;
89e7e005 68
eb718689 69#endif /* intl.h */