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

« back to all changes in this revision

Viewing changes to intl/ngettext.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 ngettext(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
46
46
# define NGETTEXT __ngettext
47
47
# define DCNGETTEXT __dcngettext
48
48
#else
49
 
# define NGETTEXT ngettext__
50
 
# define DCNGETTEXT dcngettext__
 
49
# define NGETTEXT libintl_ngettext
 
50
# define DCNGETTEXT libintl_dcngettext
51
51
#endif
52
52
 
53
53
/* Look up MSGID in the current default message catalog for the current
54
54
   LC_MESSAGES locale.  If not found, returns MSGID itself (the default
55
55
   text).  */
56
56
char *
57
 
NGETTEXT (msgid1, msgid2, n)
58
 
     const char *msgid1;
59
 
     const char *msgid2;
60
 
     unsigned long int n;
 
57
NGETTEXT (const char *msgid1, const char *msgid2, unsigned long int n)
61
58
{
62
59
  return DCNGETTEXT (NULL, msgid1, msgid2, n, LC_MESSAGES);
63
60
}