GnuCOBOL  2.0
A free COBOL compiler
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
gettext.h File Reference
#include <libintl.h>
#include <string.h>
#include <stdlib.h>
Include dependency graph for gettext.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define gettext_noop(String)   String
 
#define GETTEXT_CONTEXT_GLUE   "\004"
 
#define pgettext(Msgctxt, Msgid)   pgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES)
 
#define dpgettext(Domainname, Msgctxt, Msgid)   pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES)
 
#define dcpgettext(Domainname, Msgctxt, Msgid, Category)   pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, Category)
 
#define npgettext(Msgctxt, Msgid, MsgidPlural, N)   npgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES)
 
#define dnpgettext(Domainname, Msgctxt, Msgid, MsgidPlural, N)   npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES)
 
#define dcnpgettext(Domainname, Msgctxt, Msgid, MsgidPlural, N, Category)   npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, Category)
 
#define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS   (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)))
 
#define pgettext_expr(Msgctxt, Msgid)   dcpgettext_expr (NULL, Msgctxt, Msgid, LC_MESSAGES)
 
#define dpgettext_expr(Domainname, Msgctxt, Msgid)   dcpgettext_expr (Domainname, Msgctxt, Msgid, LC_MESSAGES)
 
#define npgettext_expr(Msgctxt, Msgid, MsgidPlural, N)   dcnpgettext_expr (NULL, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES)
 
#define dnpgettext_expr(Domainname, Msgctxt, Msgid, MsgidPlural, N)   dcnpgettext_expr (Domainname, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES)
 
#define gettext_noop(String)   String
 
#define GETTEXT_CONTEXT_GLUE   "\004"
 
#define pgettext(Msgctxt, Msgid)   pgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES)
 
#define dpgettext(Domainname, Msgctxt, Msgid)   pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES)
 
#define dcpgettext(Domainname, Msgctxt, Msgid, Category)   pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, Category)
 
#define npgettext(Msgctxt, Msgid, MsgidPlural, N)   npgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES)
 
#define dnpgettext(Domainname, Msgctxt, Msgid, MsgidPlural, N)   npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES)
 
#define dcnpgettext(Domainname, Msgctxt, Msgid, MsgidPlural, N, Category)   npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, Category)
 
#define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS   (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)))
 
#define pgettext_expr(Msgctxt, Msgid)   dcpgettext_expr (NULL, Msgctxt, Msgid, LC_MESSAGES)
 
#define dpgettext_expr(Domainname, Msgctxt, Msgid)   dcpgettext_expr (Domainname, Msgctxt, Msgid, LC_MESSAGES)
 
#define npgettext_expr(Msgctxt, Msgid, MsgidPlural, N)   dcnpgettext_expr (NULL, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES)
 
#define dnpgettext_expr(Domainname, Msgctxt, Msgid, MsgidPlural, N)   dcnpgettext_expr (Domainname, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES)
 
#define gettext_noop(String)   String
 
#define GETTEXT_CONTEXT_GLUE   "\004"
 
#define pgettext(Msgctxt, Msgid)   pgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES)
 
#define dpgettext(Domainname, Msgctxt, Msgid)   pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES)
 
#define dcpgettext(Domainname, Msgctxt, Msgid, Category)   pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, Category)
 
#define npgettext(Msgctxt, Msgid, MsgidPlural, N)   npgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES)
 
#define dnpgettext(Domainname, Msgctxt, Msgid, MsgidPlural, N)   npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES)
 
#define dcnpgettext(Domainname, Msgctxt, Msgid, MsgidPlural, N, Category)   npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, Category)
 
#define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS   (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)))
 
#define pgettext_expr(Msgctxt, Msgid)   dcpgettext_expr (NULL, Msgctxt, Msgid, LC_MESSAGES)
 
#define dpgettext_expr(Domainname, Msgctxt, Msgid)   dcpgettext_expr (Domainname, Msgctxt, Msgid, LC_MESSAGES)
 
#define npgettext_expr(Msgctxt, Msgid, MsgidPlural, N)   dcnpgettext_expr (NULL, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES)
 
#define dnpgettext_expr(Domainname, Msgctxt, Msgid, MsgidPlural, N)   dcnpgettext_expr (Domainname, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES)
 
#define gettext_noop(String)   String
 
#define GETTEXT_CONTEXT_GLUE   "\004"
 
#define pgettext(Msgctxt, Msgid)   pgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES)
 
#define dpgettext(Domainname, Msgctxt, Msgid)   pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES)
 
#define dcpgettext(Domainname, Msgctxt, Msgid, Category)   pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, Category)
 
#define npgettext(Msgctxt, Msgid, MsgidPlural, N)   npgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES)
 
#define dnpgettext(Domainname, Msgctxt, Msgid, MsgidPlural, N)   npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES)
 
#define dcnpgettext(Domainname, Msgctxt, Msgid, MsgidPlural, N, Category)   npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, Category)
 
#define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS   (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)))
 
#define pgettext_expr(Msgctxt, Msgid)   dcpgettext_expr (NULL, Msgctxt, Msgid, LC_MESSAGES)
 
#define dpgettext_expr(Domainname, Msgctxt, Msgid)   dcpgettext_expr (Domainname, Msgctxt, Msgid, LC_MESSAGES)
 
#define npgettext_expr(Msgctxt, Msgid, MsgidPlural, N)   dcnpgettext_expr (NULL, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES)
 
#define dnpgettext_expr(Domainname, Msgctxt, Msgid, MsgidPlural, N)   dcnpgettext_expr (Domainname, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES)
 
#define gettext(Msgid)   ((const char *) (Msgid))
 
#define dgettext(Domainname, Msgid)   ((void) (Domainname), gettext (Msgid))
 
#define dcgettext(Domainname, Msgid, Category)   ((void) (Category), dgettext (Domainname, Msgid))
 
#define ngettext(Msgid1, Msgid2, N)
 
#define dngettext(Domainname, Msgid1, Msgid2, N)   ((void) (Domainname), ngettext (Msgid1, Msgid2, N))
 
#define dcngettext(Domainname, Msgid1, Msgid2, N, Category)   ((void) (Category), dngettext(Domainname, Msgid1, Msgid2, N))
 
#define textdomain(Domainname)   ((const char *) (Domainname))
 
#define bindtextdomain(Domainname, Dirname)   ((void) (Domainname), (const char *) (Dirname))
 
#define bind_textdomain_codeset(Domainname, Codeset)   ((void) (Domainname), (const char *) (Codeset))
 
#define gettext_noop(String)   String
 
#define GETTEXT_CONTEXT_GLUE   "\004"
 
#define pgettext(Msgctxt, Msgid)   pgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES)
 
#define dpgettext(Domainname, Msgctxt, Msgid)   pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES)
 
#define dcpgettext(Domainname, Msgctxt, Msgid, Category)   pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, Category)
 
#define npgettext(Msgctxt, Msgid, MsgidPlural, N)   npgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES)
 
#define dnpgettext(Domainname, Msgctxt, Msgid, MsgidPlural, N)   npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES)
 
#define dcnpgettext(Domainname, Msgctxt, Msgid, MsgidPlural, N, Category)   npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, Category)
 
#define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS   (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)))
 
#define pgettext_expr(Msgctxt, Msgid)   dcpgettext_expr (NULL, Msgctxt, Msgid, LC_MESSAGES)
 
#define dpgettext_expr(Domainname, Msgctxt, Msgid)   dcpgettext_expr (Domainname, Msgctxt, Msgid, LC_MESSAGES)
 
#define npgettext_expr(Msgctxt, Msgid, MsgidPlural, N)   dcnpgettext_expr (NULL, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES)
 
#define dnpgettext_expr(Domainname, Msgctxt, Msgid, MsgidPlural, N)   dcnpgettext_expr (Domainname, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES)
 

Functions

static const char * pgettext_aux (const char *domain, const char *msg_ctxt_id, const char *msgid, int category)
 
static const char * npgettext_aux (const char *domain, const char *msg_ctxt_id, const char *msgid, const char *msgid_plural, unsigned long int n, int category)
 
static const char * dcpgettext_expr (const char *domain, const char *msgctxt, const char *msgid, int category)
 
static const char * dcnpgettext_expr (const char *domain, const char *msgctxt, const char *msgid, const char *msgid_plural, unsigned long int n, int category)
 

Macro Definition Documentation

#define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS   (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)))
#define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS   (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)))
#define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS   (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)))
#define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS   (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)))
#define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS   (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)))
#define bind_textdomain_codeset (   Domainname,
  Codeset 
)    ((void) (Domainname), (const char *) (Codeset))
#define bindtextdomain (   Domainname,
  Dirname 
)    ((void) (Domainname), (const char *) (Dirname))

Referenced by main().

#define dcgettext (   Domainname,
  Msgid,
  Category 
)    ((void) (Category), dgettext (Domainname, Msgid))

Referenced by dcpgettext_expr(), and pgettext_aux().

#define dcngettext (   Domainname,
  Msgid1,
  Msgid2,
  N,
  Category 
)    ((void) (Category), dngettext(Domainname, Msgid1, Msgid2, N))

Referenced by dcnpgettext_expr(), and npgettext_aux().

#define dcnpgettext (   Domainname,
  Msgctxt,
  Msgid,
  MsgidPlural,
  N,
  Category 
)    npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, Category)
#define dcnpgettext (   Domainname,
  Msgctxt,
  Msgid,
  MsgidPlural,
  N,
  Category 
)    npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, Category)
#define dcnpgettext (   Domainname,
  Msgctxt,
  Msgid,
  MsgidPlural,
  N,
  Category 
)    npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, Category)
#define dcnpgettext (   Domainname,
  Msgctxt,
  Msgid,
  MsgidPlural,
  N,
  Category 
)    npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, Category)
#define dcnpgettext (   Domainname,
  Msgctxt,
  Msgid,
  MsgidPlural,
  N,
  Category 
)    npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, Category)
#define dcpgettext (   Domainname,
  Msgctxt,
  Msgid,
  Category 
)    pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, Category)
#define dcpgettext (   Domainname,
  Msgctxt,
  Msgid,
  Category 
)    pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, Category)
#define dcpgettext (   Domainname,
  Msgctxt,
  Msgid,
  Category 
)    pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, Category)
#define dcpgettext (   Domainname,
  Msgctxt,
  Msgid,
  Category 
)    pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, Category)
#define dcpgettext (   Domainname,
  Msgctxt,
  Msgid,
  Category 
)    pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, Category)
#define dgettext (   Domainname,
  Msgid 
)    ((void) (Domainname), gettext (Msgid))
#define dngettext (   Domainname,
  Msgid1,
  Msgid2,
 
)    ((void) (Domainname), ngettext (Msgid1, Msgid2, N))
#define dnpgettext (   Domainname,
  Msgctxt,
  Msgid,
  MsgidPlural,
 
)    npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES)
#define dnpgettext (   Domainname,
  Msgctxt,
  Msgid,
  MsgidPlural,
 
)    npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES)
#define dnpgettext (   Domainname,
  Msgctxt,
  Msgid,
  MsgidPlural,
 
)    npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES)
#define dnpgettext (   Domainname,
  Msgctxt,
  Msgid,
  MsgidPlural,
 
)    npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES)
#define dnpgettext (   Domainname,
  Msgctxt,
  Msgid,
  MsgidPlural,
 
)    npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES)
#define dnpgettext_expr (   Domainname,
  Msgctxt,
  Msgid,
  MsgidPlural,
 
)    dcnpgettext_expr (Domainname, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES)
#define dnpgettext_expr (   Domainname,
  Msgctxt,
  Msgid,
  MsgidPlural,
 
)    dcnpgettext_expr (Domainname, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES)
#define dnpgettext_expr (   Domainname,
  Msgctxt,
  Msgid,
  MsgidPlural,
 
)    dcnpgettext_expr (Domainname, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES)
#define dnpgettext_expr (   Domainname,
  Msgctxt,
  Msgid,
  MsgidPlural,
 
)    dcnpgettext_expr (Domainname, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES)
#define dnpgettext_expr (   Domainname,
  Msgctxt,
  Msgid,
  MsgidPlural,
 
)    dcnpgettext_expr (Domainname, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES)
#define dpgettext (   Domainname,
  Msgctxt,
  Msgid 
)    pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES)
#define dpgettext (   Domainname,
  Msgctxt,
  Msgid 
)    pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES)
#define dpgettext (   Domainname,
  Msgctxt,
  Msgid 
)    pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES)
#define dpgettext (   Domainname,
  Msgctxt,
  Msgid 
)    pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES)
#define dpgettext (   Domainname,
  Msgctxt,
  Msgid 
)    pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES)
#define dpgettext_expr (   Domainname,
  Msgctxt,
  Msgid 
)    dcpgettext_expr (Domainname, Msgctxt, Msgid, LC_MESSAGES)
#define dpgettext_expr (   Domainname,
  Msgctxt,
  Msgid 
)    dcpgettext_expr (Domainname, Msgctxt, Msgid, LC_MESSAGES)
#define dpgettext_expr (   Domainname,
  Msgctxt,
  Msgid 
)    dcpgettext_expr (Domainname, Msgctxt, Msgid, LC_MESSAGES)
#define dpgettext_expr (   Domainname,
  Msgctxt,
  Msgid 
)    dcpgettext_expr (Domainname, Msgctxt, Msgid, LC_MESSAGES)
#define dpgettext_expr (   Domainname,
  Msgctxt,
  Msgid 
)    dcpgettext_expr (Domainname, Msgctxt, Msgid, LC_MESSAGES)
#define gettext (   Msgid)    ((const char *) (Msgid))
#define GETTEXT_CONTEXT_GLUE   "\004"
#define GETTEXT_CONTEXT_GLUE   "\004"
#define GETTEXT_CONTEXT_GLUE   "\004"
#define GETTEXT_CONTEXT_GLUE   "\004"
#define GETTEXT_CONTEXT_GLUE   "\004"
#define gettext_noop (   String)    String
#define gettext_noop (   String)    String
#define gettext_noop (   String)    String
#define gettext_noop (   String)    String
#define gettext_noop (   String)    String
#define ngettext (   Msgid1,
  Msgid2,
 
)
Value:
((N) == 1 \
? ((void) (Msgid2), (const char *) (Msgid1)) \
: ((void) (Msgid1), (const char *) (Msgid2)))
#define npgettext (   Msgctxt,
  Msgid,
  MsgidPlural,
 
)    npgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES)
#define npgettext (   Msgctxt,
  Msgid,
  MsgidPlural,
 
)    npgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES)
#define npgettext (   Msgctxt,
  Msgid,
  MsgidPlural,
 
)    npgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES)
#define npgettext (   Msgctxt,
  Msgid,
  MsgidPlural,
 
)    npgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES)
#define npgettext (   Msgctxt,
  Msgid,
  MsgidPlural,
 
)    npgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES)
#define npgettext_expr (   Msgctxt,
  Msgid,
  MsgidPlural,
 
)    dcnpgettext_expr (NULL, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES)
#define npgettext_expr (   Msgctxt,
  Msgid,
  MsgidPlural,
 
)    dcnpgettext_expr (NULL, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES)
#define npgettext_expr (   Msgctxt,
  Msgid,
  MsgidPlural,
 
)    dcnpgettext_expr (NULL, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES)
#define npgettext_expr (   Msgctxt,
  Msgid,
  MsgidPlural,
 
)    dcnpgettext_expr (NULL, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES)
#define npgettext_expr (   Msgctxt,
  Msgid,
  MsgidPlural,
 
)    dcnpgettext_expr (NULL, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES)
#define pgettext (   Msgctxt,
  Msgid 
)    pgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES)
#define pgettext (   Msgctxt,
  Msgid 
)    pgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES)
#define pgettext (   Msgctxt,
  Msgid 
)    pgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES)
#define pgettext (   Msgctxt,
  Msgid 
)    pgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES)
#define pgettext (   Msgctxt,
  Msgid 
)    pgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES)
#define pgettext_expr (   Msgctxt,
  Msgid 
)    dcpgettext_expr (NULL, Msgctxt, Msgid, LC_MESSAGES)
#define pgettext_expr (   Msgctxt,
  Msgid 
)    dcpgettext_expr (NULL, Msgctxt, Msgid, LC_MESSAGES)
#define pgettext_expr (   Msgctxt,
  Msgid 
)    dcpgettext_expr (NULL, Msgctxt, Msgid, LC_MESSAGES)
#define pgettext_expr (   Msgctxt,
  Msgid 
)    dcpgettext_expr (NULL, Msgctxt, Msgid, LC_MESSAGES)
#define pgettext_expr (   Msgctxt,
  Msgid 
)    dcpgettext_expr (NULL, Msgctxt, Msgid, LC_MESSAGES)
#define textdomain (   Domainname)    ((const char *) (Domainname))

Referenced by main().

Function Documentation

static const char* dcnpgettext_expr ( const char *  domain,
const char *  msgctxt,
const char *  msgid,
const char *  msgid_plural,
unsigned long int  n,
int  category 
)
static

References dcngettext, and NULL.

241 {
242  size_t msgctxt_len = strlen (msgctxt) + 1;
243  size_t msgid_len = strlen (msgid) + 1;
244  const char *translation;
245 #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
246  char msg_ctxt_id[msgctxt_len + msgid_len];
247 #else
248  char buf[1024];
249  char *msg_ctxt_id =
250  (msgctxt_len + msgid_len <= sizeof (buf)
251  ? buf
252  : (char *) malloc (msgctxt_len + msgid_len));
253  if (msg_ctxt_id != NULL)
254 #endif
255  {
256  memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1);
257  msg_ctxt_id[msgctxt_len - 1] = '\004';
258  memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len);
259  translation = dcngettext (domain, msg_ctxt_id, msgid_plural, n, category);
260 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
261  if (msg_ctxt_id != buf)
262  free (msg_ctxt_id);
263 #endif
264  if (!(translation == msg_ctxt_id || translation == msgid_plural))
265  return translation;
266  }
267  return (n == 1 ? msgid : msgid_plural);
268 }
static const char* dcpgettext_expr ( const char *  domain,
const char *  msgctxt,
const char *  msgid,
int  category 
)
static

References dcgettext, and NULL.

195 {
196  size_t msgctxt_len = strlen (msgctxt) + 1;
197  size_t msgid_len = strlen (msgid) + 1;
198  const char *translation;
199 #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
200  char msg_ctxt_id[msgctxt_len + msgid_len];
201 #else
202  char buf[1024];
203  char *msg_ctxt_id =
204  (msgctxt_len + msgid_len <= sizeof (buf)
205  ? buf
206  : (char *) malloc (msgctxt_len + msgid_len));
207  if (msg_ctxt_id != NULL)
208 #endif
209  {
210  memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1);
211  msg_ctxt_id[msgctxt_len - 1] = '\004';
212  memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len);
213  translation = dcgettext (domain, msg_ctxt_id, category);
214 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
215  if (msg_ctxt_id != buf)
216  free (msg_ctxt_id);
217 #endif
218  if (translation != msg_ctxt_id)
219  return translation;
220  }
221  return msgid;
222 }
static const char* npgettext_aux ( const char *  domain,
const char *  msg_ctxt_id,
const char *  msgid,
const char *  msgid_plural,
unsigned long int  n,
int  category 
)
static

References dcngettext.

157 {
158  const char *translation =
159  dcngettext (domain, msg_ctxt_id, msgid_plural, n, category);
160  if (translation == msg_ctxt_id || translation == msgid_plural)
161  return (n == 1 ? msgid : msgid_plural);
162  else
163  return translation;
164 }
static const char* pgettext_aux ( const char *  domain,
const char *  msg_ctxt_id,
const char *  msgid,
int  category 
)
static

References dcgettext.

137 {
138  const char *translation = dcgettext (domain, msg_ctxt_id, category);
139  if (translation == msg_ctxt_id)
140  return msgid;
141  else
142  return translation;
143 }