Blame intl/dcgettext.c

Packit 8a864e
/* Implementation of the dcgettext(3) function.
Packit 8a864e
   Copyright (C) 1995-1999, 2000-2003 Free Software Foundation, Inc.
Packit 8a864e
Packit 8a864e
   This program is free software; you can redistribute it and/or modify it
Packit 8a864e
   under the terms of the GNU Library General Public License as published
Packit 8a864e
   by the Free Software Foundation; either version 2, or (at your option)
Packit 8a864e
   any later version.
Packit 8a864e
Packit 8a864e
   This program is distributed in the hope that it will be useful,
Packit 8a864e
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 8a864e
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 8a864e
   Library General Public License for more details.
Packit 8a864e
Packit 8a864e
   You should have received a copy of the GNU Library General Public
Packit 8a864e
   License along with this program; if not, write to the Free Software
Packit 8a864e
   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
Packit 8a864e
   USA.  */
Packit 8a864e
Packit 8a864e
#ifdef HAVE_CONFIG_H
Packit 8a864e
# include <config.h>
Packit 8a864e
#endif
Packit 8a864e
Packit 8a864e
#include "gettextP.h"
Packit 8a864e
#ifdef _LIBC
Packit 8a864e
# include <libintl.h>
Packit 8a864e
#else
Packit 8a864e
# include "libgnuintl.h"
Packit 8a864e
#endif
Packit 8a864e
Packit 8a864e
/* @@ end of prolog @@ */
Packit 8a864e
Packit 8a864e
/* Names for the libintl functions are a problem.  They must not clash
Packit 8a864e
   with existing names and they should follow ANSI C.  But this source
Packit 8a864e
   code is also used in GNU C Library where the names have a __
Packit 8a864e
   prefix.  So we have to make a difference here.  */
Packit 8a864e
#ifdef _LIBC
Packit 8a864e
# define DCGETTEXT __dcgettext
Packit 8a864e
# define DCIGETTEXT __dcigettext
Packit 8a864e
#else
Packit 8a864e
# define DCGETTEXT libintl_dcgettext
Packit 8a864e
# define DCIGETTEXT libintl_dcigettext
Packit 8a864e
#endif
Packit 8a864e
Packit 8a864e
/* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY
Packit 8a864e
   locale.  */
Packit 8a864e
char *
Packit 8a864e
DCGETTEXT (const char *domainname, const char *msgid, int category)
Packit 8a864e
{
Packit 8a864e
  return DCIGETTEXT (domainname, msgid, NULL, 0, 0, category);
Packit 8a864e
}
Packit 8a864e
Packit 8a864e
#ifdef _LIBC
Packit 8a864e
/* Alias for function name in GNU C Library.  */
Packit 8a864e
INTDEF(__dcgettext)
Packit 8a864e
weak_alias (__dcgettext, dcgettext);
Packit 8a864e
#endif