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

« back to all changes in this revision

Viewing changes to intl/dngettext.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 the dngettext(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
20
20
# include <config.h>
21
21
#endif
22
22
 
 
23
#include "gettextP.h"
 
24
 
23
25
#include <locale.h>
24
26
 
25
 
#include "gettextP.h"
26
27
#ifdef _LIBC
27
28
# include <libintl.h>
28
29
#else
39
40
# define DNGETTEXT __dngettext
40
41
# define DCNGETTEXT __dcngettext
41
42
#else
42
 
# define DNGETTEXT dngettext__
43
 
# define DCNGETTEXT dcngettext__
 
43
# define DNGETTEXT libintl_dngettext
 
44
# define DCNGETTEXT libintl_dcngettext
44
45
#endif
45
46
 
46
47
/* Look up MSGID in the DOMAINNAME message catalog of the current
47
48
   LC_MESSAGES locale and skip message according to the plural form.  */
48
49
char *
49
 
DNGETTEXT (domainname, msgid1, msgid2, n)
50
 
     const char *domainname;
51
 
     const char *msgid1;
52
 
     const char *msgid2;
53
 
     unsigned long int n;
 
50
DNGETTEXT (const char *domainname,
 
51
           const char *msgid1, const char *msgid2, unsigned long int n)
54
52
{
55
53
  return DCNGETTEXT (domainname, msgid1, msgid2, n, LC_MESSAGES);
56
54
}