Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

intl-compat.c

00001 /* intl-compat.c - Stub functions to call gettext functions from GNU gettext
00002    Library.
00003    Copyright (C) 1995, 2000-2002 Software Foundation, Inc.
00004 
00005    This program is free software; you can redistribute it and/or modify it
00006    under the terms of the GNU Library General Public License as published
00007    by the Free Software Foundation; either version 2, or (at your option)
00008    any later version.
00009 
00010    This program is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015    You should have received a copy of the GNU Library General Public
00016    License along with this program; if not, write to the Free Software
00017    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
00018    USA.  */
00019 
00020 #ifdef HAVE_CONFIG_H
00021 # include <config.h>
00022 #endif
00023 
00024 #define _INTL_REDIRECT_MACROS
00025 #include "libgnuintl.h"
00026 #include "gettextP.h"
00027 
00028 /* @@ end of prolog @@ */
00029 
00030 /* This file redirects the gettext functions (without prefix) to those
00031    defined in the included GNU libintl library (with "libintl_" prefix).
00032    It is compiled into libintl in order to make the AM_GNU_GETTEXT test
00033    of gettext <= 0.11.2 work with the libintl library >= 0.11.3 which
00034    has the redirections primarily in the <libintl.h> include file.  */
00035 
00036 
00037 #undef gettext
00038 #undef dgettext
00039 #undef dcgettext
00040 #undef ngettext
00041 #undef dngettext
00042 #undef dcngettext
00043 #undef textdomain
00044 #undef bindtextdomain
00045 #undef bind_textdomain_codeset
00046 
00047 
00048 char *
00049 gettext (msgid)
00050      const char *msgid;
00051 {
00052   return libintl_gettext (msgid);
00053 }
00054 
00055 
00056 char *
00057 dgettext (domainname, msgid)
00058      const char *domainname;
00059      const char *msgid;
00060 {
00061   return libintl_dgettext (domainname, msgid);
00062 }
00063 
00064 
00065 char *
00066 dcgettext (domainname, msgid, category)
00067      const char *domainname;
00068      const char *msgid;
00069      int category;
00070 {
00071   return libintl_dcgettext (domainname, msgid, category);
00072 }
00073 
00074 
00075 char *
00076 ngettext (msgid1, msgid2, n)
00077      const char *msgid1;
00078      const char *msgid2;
00079      unsigned long int n;
00080 {
00081   return libintl_ngettext (msgid1, msgid2, n);
00082 }
00083 
00084 
00085 char *
00086 dngettext (domainname, msgid1, msgid2, n)
00087      const char *domainname;
00088      const char *msgid1;
00089      const char *msgid2;
00090      unsigned long int n;
00091 {
00092   return libintl_dngettext (domainname, msgid1, msgid2, n);
00093 }
00094 
00095 
00096 char *
00097 dcngettext (domainname, msgid1, msgid2, n, category)
00098      const char *domainname;
00099      const char *msgid1;
00100      const char *msgid2;
00101      unsigned long int n;
00102      int category;
00103 {
00104   return libintl_dcngettext (domainname, msgid1, msgid2, n, category);
00105 }
00106 
00107 
00108 char *
00109 textdomain (domainname)
00110      const char *domainname;
00111 {
00112   return libintl_textdomain (domainname);
00113 }
00114 
00115 
00116 char *
00117 bindtextdomain (domainname, dirname)
00118      const char *domainname;
00119      const char *dirname;
00120 {
00121   return libintl_bindtextdomain (domainname, dirname);
00122 }
00123 
00124 
00125 char *
00126 bind_textdomain_codeset (domainname, codeset)
00127      const char *domainname;
00128      const char *codeset;
00129 {
00130   return libintl_bind_textdomain_codeset (domainname, codeset);
00131 }

Generated on Tue Dec 20 10:14:20 2005 for vlc-0.8.4a by  doxygen 1.4.2