OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [intl/] [intl-compat.c] - Diff between revs 154 and 816

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 154 Rev 816
/* intl-compat.c - Stub functions to call gettext functions from GNU gettext
/* intl-compat.c - Stub functions to call gettext functions from GNU gettext
   Library.
   Library.
   Copyright (C) 1995, 2000-2003 Software Foundation, Inc.
   Copyright (C) 1995, 2000-2003 Software Foundation, Inc.
 
 
   This program is free software; you can redistribute it and/or modify it
   This program is free software; you can redistribute it and/or modify it
   under the terms of the GNU Library General Public License as published
   under the terms of the GNU Library General Public License as published
   by the Free Software Foundation; either version 2, or (at your option)
   by the Free Software Foundation; either version 2, or (at your option)
   any later version.
   any later version.
 
 
   This program is distributed in the hope that it will be useful,
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Library General Public License for more details.
   Library General Public License for more details.
 
 
   You should have received a copy of the GNU Library General Public
   You should have received a copy of the GNU Library General Public
   License along with this program; if not, write to the Free Software
   License along with this program; if not, write to the Free Software
   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301,
   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301,
   USA.  */
   USA.  */
 
 
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include <config.h>
# include <config.h>
#endif
#endif
 
 
#include "gettextP.h"
#include "gettextP.h"
 
 
/* @@ end of prolog @@ */
/* @@ end of prolog @@ */
 
 
/* This file redirects the gettext functions (without prefix) to those
/* This file redirects the gettext functions (without prefix) to those
   defined in the included GNU libintl library (with "libintl_" prefix).
   defined in the included GNU libintl library (with "libintl_" prefix).
   It is compiled into libintl in order to make the AM_GNU_GETTEXT test
   It is compiled into libintl in order to make the AM_GNU_GETTEXT test
   of gettext <= 0.11.2 work with the libintl library >= 0.11.3 which
   of gettext <= 0.11.2 work with the libintl library >= 0.11.3 which
   has the redirections primarily in the <libintl.h> include file.
   has the redirections primarily in the <libintl.h> include file.
   It is also compiled into libgnuintl so that libgnuintl.so can be used
   It is also compiled into libgnuintl so that libgnuintl.so can be used
   as LD_PRELOADable library on glibc systems, to provide the extra
   as LD_PRELOADable library on glibc systems, to provide the extra
   features that the functions in the libc don't have (namely, logging).  */
   features that the functions in the libc don't have (namely, logging).  */
 
 
 
 
#undef gettext
#undef gettext
#undef dgettext
#undef dgettext
#undef dcgettext
#undef dcgettext
#undef ngettext
#undef ngettext
#undef dngettext
#undef dngettext
#undef dcngettext
#undef dcngettext
#undef textdomain
#undef textdomain
#undef bindtextdomain
#undef bindtextdomain
#undef bind_textdomain_codeset
#undef bind_textdomain_codeset
 
 
 
 
/* When building a DLL, we must export some functions.  Note that because
/* When building a DLL, we must export some functions.  Note that because
   the functions are only defined for binary backward compatibility, we
   the functions are only defined for binary backward compatibility, we
   don't need to use __declspec(dllimport) in any case.  */
   don't need to use __declspec(dllimport) in any case.  */
#if defined _MSC_VER && BUILDING_DLL
#if defined _MSC_VER && BUILDING_DLL
# define DLL_EXPORTED __declspec(dllexport)
# define DLL_EXPORTED __declspec(dllexport)
#else
#else
# define DLL_EXPORTED
# define DLL_EXPORTED
#endif
#endif
 
 
 
 
DLL_EXPORTED
DLL_EXPORTED
char *
char *
gettext (msgid)
gettext (msgid)
     const char *msgid;
     const char *msgid;
{
{
  return libintl_gettext (msgid);
  return libintl_gettext (msgid);
}
}
 
 
 
 
DLL_EXPORTED
DLL_EXPORTED
char *
char *
dgettext (domainname, msgid)
dgettext (domainname, msgid)
     const char *domainname;
     const char *domainname;
     const char *msgid;
     const char *msgid;
{
{
  return libintl_dgettext (domainname, msgid);
  return libintl_dgettext (domainname, msgid);
}
}
 
 
 
 
DLL_EXPORTED
DLL_EXPORTED
char *
char *
dcgettext (domainname, msgid, category)
dcgettext (domainname, msgid, category)
     const char *domainname;
     const char *domainname;
     const char *msgid;
     const char *msgid;
     int category;
     int category;
{
{
  return libintl_dcgettext (domainname, msgid, category);
  return libintl_dcgettext (domainname, msgid, category);
}
}
 
 
 
 
DLL_EXPORTED
DLL_EXPORTED
char *
char *
ngettext (msgid1, msgid2, n)
ngettext (msgid1, msgid2, n)
     const char *msgid1;
     const char *msgid1;
     const char *msgid2;
     const char *msgid2;
     unsigned long int n;
     unsigned long int n;
{
{
  return libintl_ngettext (msgid1, msgid2, n);
  return libintl_ngettext (msgid1, msgid2, n);
}
}
 
 
 
 
DLL_EXPORTED
DLL_EXPORTED
char *
char *
dngettext (domainname, msgid1, msgid2, n)
dngettext (domainname, msgid1, msgid2, n)
     const char *domainname;
     const char *domainname;
     const char *msgid1;
     const char *msgid1;
     const char *msgid2;
     const char *msgid2;
     unsigned long int n;
     unsigned long int n;
{
{
  return libintl_dngettext (domainname, msgid1, msgid2, n);
  return libintl_dngettext (domainname, msgid1, msgid2, n);
}
}
 
 
 
 
DLL_EXPORTED
DLL_EXPORTED
char *
char *
dcngettext (domainname, msgid1, msgid2, n, category)
dcngettext (domainname, msgid1, msgid2, n, category)
     const char *domainname;
     const char *domainname;
     const char *msgid1;
     const char *msgid1;
     const char *msgid2;
     const char *msgid2;
     unsigned long int n;
     unsigned long int n;
     int category;
     int category;
{
{
  return libintl_dcngettext (domainname, msgid1, msgid2, n, category);
  return libintl_dcngettext (domainname, msgid1, msgid2, n, category);
}
}
 
 
 
 
DLL_EXPORTED
DLL_EXPORTED
char *
char *
textdomain (domainname)
textdomain (domainname)
     const char *domainname;
     const char *domainname;
{
{
  return libintl_textdomain (domainname);
  return libintl_textdomain (domainname);
}
}
 
 
 
 
DLL_EXPORTED
DLL_EXPORTED
char *
char *
bindtextdomain (domainname, dirname)
bindtextdomain (domainname, dirname)
     const char *domainname;
     const char *domainname;
     const char *dirname;
     const char *dirname;
{
{
  return libintl_bindtextdomain (domainname, dirname);
  return libintl_bindtextdomain (domainname, dirname);
}
}
 
 
 
 
DLL_EXPORTED
DLL_EXPORTED
char *
char *
bind_textdomain_codeset (domainname, codeset)
bind_textdomain_codeset (domainname, codeset)
     const char *domainname;
     const char *domainname;
     const char *codeset;
     const char *codeset;
{
{
  return libintl_bind_textdomain_codeset (domainname, codeset);
  return libintl_bind_textdomain_codeset (domainname, codeset);
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.