Initial revision
[official-gcc.git] / gcc / intl / intl-compat.c
blob503efa0fa9c5179f26a8b6cbd57ec36e1398b662
1 /* intl-compat.c - Stub functions to call gettext functions from GNU gettext
2 Library.
3 Copyright (C) 1995 Software Foundation, Inc.
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2, or (at your option)
8 any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
19 #ifdef HAVE_CONFIG_H
20 # include <config.h>
21 #endif
23 #include "libgettext.h"
25 /* @@ end of prolog @@ */
28 #undef gettext
29 #undef dgettext
30 #undef dcgettext
31 #undef textdomain
32 #undef bindtextdomain
35 char *
36 bindtextdomain (domainname, dirname)
37 const char *domainname;
38 const char *dirname;
40 return bindtextdomain__ (domainname, dirname);
44 char *
45 dcgettext (domainname, msgid, category)
46 const char *domainname;
47 const char *msgid;
48 int category;
50 return dcgettext__ (domainname, msgid, category);
54 char *
55 dgettext (domainname, msgid)
56 const char *domainname;
57 const char *msgid;
59 return dgettext__ (domainname, msgid);
63 char *
64 gettext (msgid)
65 const char *msgid;
67 return gettext__ (msgid);
71 char *
72 textdomain (domainname)
73 const char *domainname;
75 return textdomain__ (domainname);