1998-09-07 07:45:24 +08:00
|
|
|
#ifndef _LIBINTL_H
|
1995-11-11 04:38:31 +08:00
|
|
|
#include <intl/libintl.h>
|
2000-08-29 07:52:21 +08:00
|
|
|
#include <locale.h>
|
1998-08-10 01:39:48 +08:00
|
|
|
|
|
|
|
/* Now define the internal interfaces. */
|
2002-05-02 00:41:24 +08:00
|
|
|
extern char *__gettext (__const char *__msgid)
|
|
|
|
__attribute_format_arg__ (1);
|
1999-10-19 21:53:34 +08:00
|
|
|
extern char *__dgettext (__const char *__domainname,
|
2002-05-02 00:41:24 +08:00
|
|
|
__const char *__msgid)
|
|
|
|
__attribute_format_arg__ (2);
|
1999-10-19 21:53:34 +08:00
|
|
|
extern char *__dcgettext (__const char *__domainname,
|
2002-05-02 00:41:24 +08:00
|
|
|
__const char *__msgid, int __category)
|
|
|
|
__attribute_format_arg__ (2);
|
2002-04-08 16:59:00 +08:00
|
|
|
extern char *__dcgettext_internal (__const char *__domainname,
|
|
|
|
__const char *__msgid, int __category)
|
2002-05-02 00:41:24 +08:00
|
|
|
__attribute_format_arg__ (2)
|
2002-04-08 16:59:00 +08:00
|
|
|
attribute_hidden;
|
2002-05-02 00:41:24 +08:00
|
|
|
|
|
|
|
extern char *__ngettext (__const char *__msgid1, __const char *__msgid2,
|
|
|
|
unsigned long int __n)
|
|
|
|
__attribute_format_arg__ (1) __attribute_format_arg__ (2);
|
|
|
|
extern char *__dngettext (__const char *__domainname,
|
|
|
|
__const char *__msgid1, __const char *__msgid2,
|
|
|
|
unsigned long int __n)
|
|
|
|
__attribute_format_arg__ (2) __attribute_format_arg__ (3);
|
|
|
|
extern char *__dcngettext (__const char *__domainname,
|
|
|
|
__const char *__msgid1, __const char *__msgid2,
|
|
|
|
unsigned long int __n, int __category)
|
|
|
|
__attribute_format_arg__ (2) __attribute_format_arg__ (3);
|
|
|
|
extern char *__dcngettext_internal (__const char *__domainname,
|
|
|
|
__const char *__msgid1,
|
|
|
|
__const char *__msgid2,
|
|
|
|
unsigned long int __n, int __category)
|
|
|
|
__attribute_format_arg__ (2) __attribute_format_arg__ (3)
|
|
|
|
attribute_hidden;
|
|
|
|
|
1999-11-24 01:22:17 +08:00
|
|
|
extern char *__textdomain (__const char *__domainname);
|
1999-10-19 21:53:34 +08:00
|
|
|
extern char *__bindtextdomain (__const char *__domainname,
|
1999-11-24 01:22:17 +08:00
|
|
|
__const char *__dirname);
|
2000-05-08 23:57:36 +08:00
|
|
|
extern char *__bind_textdomain_codeset (__const char *__domainname,
|
|
|
|
__const char *__codeset);
|
2002-05-02 00:41:24 +08:00
|
|
|
|
1999-06-19 17:58:37 +08:00
|
|
|
extern const char _libc_intl_domainname[];
|
2002-04-08 16:59:00 +08:00
|
|
|
extern const char _libc_intl_domainname_internal[] attribute_hidden;
|
1999-06-19 17:58:37 +08:00
|
|
|
|
|
|
|
/* Define the macros `_' and `N_' for conveniently marking translatable
|
1999-07-24 07:10:36 +08:00
|
|
|
strings in the libc source code. We have to make sure we get the
|
|
|
|
correct definitions so we undefine the macros first. */
|
1999-06-19 17:58:37 +08:00
|
|
|
|
1999-07-24 07:10:36 +08:00
|
|
|
# undef N_
|
1999-06-19 17:58:37 +08:00
|
|
|
# define N_(msgid) msgid
|
|
|
|
|
1999-07-24 07:10:36 +08:00
|
|
|
# undef _
|
1999-06-19 17:58:37 +08:00
|
|
|
/* This is defined as an optimizing macro, so use it. */
|
2002-04-09 02:50:41 +08:00
|
|
|
# if !defined NOT_IN_libc && defined SHARED
|
2002-04-08 16:59:00 +08:00
|
|
|
# define _(msgid) \
|
2002-04-18 16:08:23 +08:00
|
|
|
__dcgettext_internal (_libc_intl_domainname_internal, msgid, LC_MESSAGES)
|
2002-04-08 16:59:00 +08:00
|
|
|
# else
|
|
|
|
# define _(msgid) \
|
2002-04-18 16:08:23 +08:00
|
|
|
__dcgettext (_libc_intl_domainname, msgid, LC_MESSAGES)
|
2002-04-08 16:59:00 +08:00
|
|
|
#endif
|
1999-06-19 17:58:37 +08:00
|
|
|
|
1998-09-07 07:45:24 +08:00
|
|
|
#endif
|