~ubuntu-branches/ubuntu/vivid/libidn/vivid

« back to all changes in this revision

Viewing changes to lib/gl/gettext.h

  • Committer: Bazaar Package Importer
  • Author(s): Simon Josefsson, Simon Josefsson
  • Date: 2009-06-08 11:59:06 UTC
  • mfrom: (1.2.12 upstream) (3.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090608115906-6k6b5vy645zv0r77
Tags: 1.15-1
[ Simon Josefsson ]
* Let install-info decide where to put libidn.info.
* New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Convenience header for conditional use of GNU <libintl.h>.
2
 
   Copyright (C) 1995-1998, 2000-2002, 2004-2006 Free Software Foundation, Inc.
 
2
   Copyright (C) 1995-1998, 2000-2002, 2004-2006, 2009 Free Software Foundation, Inc.
3
3
 
4
4
   This program is free software; you can redistribute it and/or modify
5
5
   it under the terms of the GNU Lesser General Public License as published by
63
63
   for invalid uses of the value returned from these functions.
64
64
   On pre-ANSI systems without 'const', the config.h file is supposed to
65
65
   contain "#define const".  */
 
66
# undef gettext
66
67
# define gettext(Msgid) ((const char *) (Msgid))
 
68
# undef dgettext
67
69
# define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid))
 
70
# undef dcgettext
68
71
# define dcgettext(Domainname, Msgid, Category) \
69
72
    ((void) (Category), dgettext (Domainname, Msgid))
 
73
# undef ngettext
70
74
# define ngettext(Msgid1, Msgid2, N) \
71
75
    ((N) == 1 \
72
76
     ? ((void) (Msgid2), (const char *) (Msgid1)) \
73
77
     : ((void) (Msgid1), (const char *) (Msgid2)))
 
78
# undef dngettext
74
79
# define dngettext(Domainname, Msgid1, Msgid2, N) \
75
80
    ((void) (Domainname), ngettext (Msgid1, Msgid2, N))
 
81
# undef dcngettext
76
82
# define dcngettext(Domainname, Msgid1, Msgid2, N, Category) \
77
83
    ((void) (Category), dngettext(Domainname, Msgid1, Msgid2, N))
 
84
# undef textdomain
78
85
# define textdomain(Domainname) ((const char *) (Domainname))
 
86
# undef bindtextdomain
79
87
# define bindtextdomain(Domainname, Dirname) \
80
88
    ((void) (Domainname), (const char *) (Dirname))
 
89
# undef bind_textdomain_codeset
81
90
# define bind_textdomain_codeset(Domainname, Codeset) \
82
91
    ((void) (Domainname), (const char *) (Codeset))
83
92