1998-09-07 07:45:24 +08:00
|
|
|
#ifndef _LIBINTL_H
|
1995-11-11 04:38:31 +08:00
|
|
|
#include <intl/libintl.h>
|
1998-08-10 01:39:48 +08:00
|
|
|
|
|
|
|
/* Now define the internal interfaces. */
|
1999-11-24 01:22:17 +08:00
|
|
|
extern char *__gettext (__const char *__msgid);
|
1999-10-19 21:53:34 +08:00
|
|
|
extern char *__dgettext (__const char *__domainname,
|
1999-11-24 01:22:17 +08:00
|
|
|
__const char *__msgid);
|
1999-10-19 21:53:34 +08:00
|
|
|
extern char *__dcgettext (__const char *__domainname,
|
1999-11-24 01:22:17 +08:00
|
|
|
__const char *__msgid, int __category);
|
|
|
|
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);
|
1999-06-19 17:58:37 +08:00
|
|
|
extern const char _libc_intl_domainname[];
|
|
|
|
|
|
|
|
/* 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
|
|
|
# ifdef dgettext
|
|
|
|
/* This is defined as an optimizing macro, so use it. */
|
|
|
|
# define _(msgid) dgettext (_libc_intl_domainname, (msgid))
|
|
|
|
# else
|
|
|
|
/* Be sure to use only the __ name when `dgettext' is a plain function
|
|
|
|
instead of an optimizing macro. */
|
|
|
|
# define _(msgid) __dgettext (_libc_intl_domainname, (msgid))
|
|
|
|
# endif
|
|
|
|
|
1998-09-07 07:45:24 +08:00
|
|
|
#endif
|