xref: /openbsd-src/gnu/usr.bin/binutils/intl/intl-compat.c (revision f7cc78ec694aa42ece3363be499a17e16a4780bc)
1*f7cc78ecSespie /* intl-compat.c - Stub functions to call gettext functions from GNU gettext
2*f7cc78ecSespie    Library.
3*f7cc78ecSespie    Copyright (C) 1995 Software Foundation, Inc.
4*f7cc78ecSespie 
5*f7cc78ecSespie This program is free software; you can redistribute it and/or modify
6*f7cc78ecSespie it under the terms of the GNU General Public License as published by
7*f7cc78ecSespie the Free Software Foundation; either version 2, or (at your option)
8*f7cc78ecSespie any later version.
9*f7cc78ecSespie 
10*f7cc78ecSespie This program is distributed in the hope that it will be useful,
11*f7cc78ecSespie but WITHOUT ANY WARRANTY; without even the implied warranty of
12*f7cc78ecSespie MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13*f7cc78ecSespie GNU General Public License for more details.
14*f7cc78ecSespie 
15*f7cc78ecSespie You should have received a copy of the GNU General Public License
16*f7cc78ecSespie along with this program; if not, write to the Free Software
17*f7cc78ecSespie Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
18*f7cc78ecSespie 
19*f7cc78ecSespie #ifdef HAVE_CONFIG_H
20*f7cc78ecSespie # include <config.h>
21*f7cc78ecSespie #endif
22*f7cc78ecSespie 
23*f7cc78ecSespie #include "libgettext.h"
24*f7cc78ecSespie 
25*f7cc78ecSespie /* @@ end of prolog @@ */
26*f7cc78ecSespie 
27*f7cc78ecSespie 
28*f7cc78ecSespie #undef gettext
29*f7cc78ecSespie #undef dgettext
30*f7cc78ecSespie #undef dcgettext
31*f7cc78ecSespie #undef textdomain
32*f7cc78ecSespie #undef bindtextdomain
33*f7cc78ecSespie 
34*f7cc78ecSespie 
35*f7cc78ecSespie char *
bindtextdomain(domainname,dirname)36*f7cc78ecSespie bindtextdomain (domainname, dirname)
37*f7cc78ecSespie      const char *domainname;
38*f7cc78ecSespie      const char *dirname;
39*f7cc78ecSespie {
40*f7cc78ecSespie   return bindtextdomain__ (domainname, dirname);
41*f7cc78ecSespie }
42*f7cc78ecSespie 
43*f7cc78ecSespie 
44*f7cc78ecSespie char *
dcgettext(domainname,msgid,category)45*f7cc78ecSespie dcgettext (domainname, msgid, category)
46*f7cc78ecSespie      const char *domainname;
47*f7cc78ecSespie      const char *msgid;
48*f7cc78ecSespie      int category;
49*f7cc78ecSespie {
50*f7cc78ecSespie   return dcgettext__ (domainname, msgid, category);
51*f7cc78ecSespie }
52*f7cc78ecSespie 
53*f7cc78ecSespie 
54*f7cc78ecSespie char *
dgettext(domainname,msgid)55*f7cc78ecSespie dgettext (domainname, msgid)
56*f7cc78ecSespie      const char *domainname;
57*f7cc78ecSespie      const char *msgid;
58*f7cc78ecSespie {
59*f7cc78ecSespie   return dgettext__ (domainname, msgid);
60*f7cc78ecSespie }
61*f7cc78ecSespie 
62*f7cc78ecSespie 
63*f7cc78ecSespie char *
gettext(msgid)64*f7cc78ecSespie gettext (msgid)
65*f7cc78ecSespie      const char *msgid;
66*f7cc78ecSespie {
67*f7cc78ecSespie   return gettext__ (msgid);
68*f7cc78ecSespie }
69*f7cc78ecSespie 
70*f7cc78ecSespie 
71*f7cc78ecSespie char *
textdomain(domainname)72*f7cc78ecSespie textdomain (domainname)
73*f7cc78ecSespie      const char *domainname;
74*f7cc78ecSespie {
75*f7cc78ecSespie   return textdomain__ (domainname);
76*f7cc78ecSespie }
77