~ubuntu-branches/ubuntu/maverick/texinfo/maverick

« back to all changes in this revision

Viewing changes to intl/gettext.c

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Preining
  • Date: 2005-10-28 15:10:30 UTC
  • mto: (2.1.1 dapper) (3.1.4 hardy)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20051028151030-9nsf2s2k2z3fktjt
Tags: upstream-4.8
ImportĀ upstreamĀ versionĀ 4.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Implementation of gettext(3) function.
2
 
   Copyright (C) 1995, 1997, 2000, 2001 Free Software Foundation, Inc.
 
2
   Copyright (C) 1995, 1997, 2000-2003 Free Software Foundation, Inc.
3
3
 
4
4
   This program is free software; you can redistribute it and/or modify it
5
5
   under the terms of the GNU Library General Public License as published
42
42
   prefix.  So we have to make a difference here.  */
43
43
#ifdef _LIBC
44
44
# define GETTEXT __gettext
45
 
# define DCGETTEXT __dcgettext
 
45
# define DCGETTEXT INTUSE(__dcgettext)
46
46
#else
47
 
# define GETTEXT gettext__
48
 
# define DCGETTEXT dcgettext__
 
47
# define GETTEXT libintl_gettext
 
48
# define DCGETTEXT libintl_dcgettext
49
49
#endif
50
50
 
51
51
/* Look up MSGID in the current default message catalog for the current
52
52
   LC_MESSAGES locale.  If not found, returns MSGID itself (the default
53
53
   text).  */
54
54
char *
55
 
GETTEXT (msgid)
56
 
     const char *msgid;
 
55
GETTEXT (const char *msgid)
57
56
{
58
57
  return DCGETTEXT (NULL, msgid, LC_MESSAGES);
59
58
}