|
Packit Service |
82fcde |
/* Implementation of the dcngettext(3) function.
|
|
Packit Service |
82fcde |
Copyright (C) 1995-2018 Free Software Foundation, Inc.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
This program is free software: you can redistribute it and/or modify
|
|
Packit Service |
82fcde |
it under the terms of the GNU Lesser General Public License as published by
|
|
Packit Service |
82fcde |
the Free Software Foundation; either version 2.1 of the License, or
|
|
Packit Service |
82fcde |
(at your option) any later version.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
This program is distributed in the hope that it will be useful,
|
|
Packit Service |
82fcde |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
82fcde |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit Service |
82fcde |
GNU Lesser General Public License for more details.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
You should have received a copy of the GNU Lesser General Public License
|
|
Packit Service |
82fcde |
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#ifdef HAVE_CONFIG_H
|
|
Packit Service |
82fcde |
# include <config.h>
|
|
Packit Service |
82fcde |
#endif
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#include "gettextP.h"
|
|
Packit Service |
82fcde |
#ifdef _LIBC
|
|
Packit Service |
82fcde |
# include <libintl.h>
|
|
Packit Service |
82fcde |
#else
|
|
Packit Service |
82fcde |
# include "libgnuintl.h"
|
|
Packit Service |
82fcde |
#endif
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
/* @@ end of prolog @@ */
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
/* Names for the libintl functions are a problem. They must not clash
|
|
Packit Service |
82fcde |
with existing names and they should follow ANSI C. But this source
|
|
Packit Service |
82fcde |
code is also used in GNU C Library where the names have a __
|
|
Packit Service |
82fcde |
prefix. So we have to make a difference here. */
|
|
Packit Service |
82fcde |
#ifdef _LIBC
|
|
Packit Service |
82fcde |
# define DCNGETTEXT __dcngettext
|
|
Packit Service |
82fcde |
# define DCIGETTEXT __dcigettext
|
|
Packit Service |
82fcde |
#else
|
|
Packit Service |
82fcde |
# define DCNGETTEXT libintl_dcngettext
|
|
Packit Service |
82fcde |
# define DCIGETTEXT libintl_dcigettext
|
|
Packit Service |
82fcde |
#endif
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
/* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY
|
|
Packit Service |
82fcde |
locale. */
|
|
Packit Service |
82fcde |
char *
|
|
Packit Service |
82fcde |
DCNGETTEXT (const char *domainname,
|
|
Packit Service |
82fcde |
const char *msgid1, const char *msgid2, unsigned long int n,
|
|
Packit Service |
82fcde |
int category)
|
|
Packit Service |
82fcde |
{
|
|
Packit Service |
82fcde |
return DCIGETTEXT (domainname, msgid1, msgid2, 1, n, category);
|
|
Packit Service |
82fcde |
}
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#ifdef _LIBC
|
|
Packit Service |
82fcde |
/* Alias for function name in GNU C Library. */
|
|
Packit Service |
82fcde |
weak_alias (__dcngettext, dcngettext);
|
|
Packit Service |
82fcde |
#endif
|