|
Packit |
fc043f |
## w32-add.h - Snippet to be be included into gpg-error.h.
|
|
Packit |
fc043f |
## Comments are indicated by a double hash mark. Due to a
|
|
Packit |
fc043f |
## peculiarity of the script the first used line must not
|
|
Packit |
fc043f |
## start with a hash mark.
|
|
Packit |
fc043f |
|
|
Packit |
fc043f |
/* Decide whether to use the format_arg attribute. */
|
|
Packit |
fc043f |
#if _GPG_ERR_GCC_VERSION > 20800
|
|
Packit |
fc043f |
# define _GPG_ERR_ATTR_FORMAT_ARG(a) __attribute__ ((__format_arg__ (a)))
|
|
Packit |
fc043f |
#else
|
|
Packit |
fc043f |
# define _GPG_ERR_ATTR_FORMAT_ARG(a)
|
|
Packit |
fc043f |
#endif
|
|
Packit |
fc043f |
|
|
Packit |
fc043f |
/* A lean gettext implementation based on GNU style mo files which are
|
|
Packit |
fc043f |
required to be encoded in UTF-8. There is a limit on 65534 entries
|
|
Packit |
fc043f |
to save some RAM. Only Germanic plural rules are supported. */
|
|
Packit |
fc043f |
const char *_gpg_w32_bindtextdomain (const char *domainname,
|
|
Packit |
fc043f |
const char *dirname);
|
|
Packit |
fc043f |
const char *_gpg_w32_textdomain (const char *domainname);
|
|
Packit |
fc043f |
const char *_gpg_w32_gettext (const char *msgid)
|
|
Packit |
fc043f |
_GPG_ERR_ATTR_FORMAT_ARG (1);
|
|
Packit |
fc043f |
const char *_gpg_w32_dgettext (const char *domainname, const char *msgid)
|
|
Packit |
fc043f |
_GPG_ERR_ATTR_FORMAT_ARG (2);
|
|
Packit |
fc043f |
const char *_gpg_w32_dngettext (const char *domainname, const char *msgid1,
|
|
Packit |
fc043f |
const char *msgid2, unsigned long int n)
|
|
Packit |
fc043f |
_GPG_ERR_ATTR_FORMAT_ARG (2) _GPG_ERR_ATTR_FORMAT_ARG (3);
|
|
Packit |
fc043f |
const char *_gpg_w32_gettext_localename (void);
|
|
Packit |
fc043f |
int _gpg_w32_gettext_use_utf8 (int value);
|
|
Packit |
fc043f |
|
|
Packit |
fc043f |
#ifdef GPG_ERR_ENABLE_GETTEXT_MACROS
|
|
Packit |
fc043f |
# define bindtextdomain(a,b) _gpg_w32_bindtextdomain ((a), (b))
|
|
Packit |
fc043f |
# define textdomain(a) _gpg_w32_textdomain ((a))
|
|
Packit |
fc043f |
# define gettext(a) _gpg_w32_gettext ((a))
|
|
Packit |
fc043f |
# define dgettext(a,b) _gpg_w32_dgettext ((a), (b))
|
|
Packit |
fc043f |
# define ngettext(a,b,c) _gpg_w32_dngettext (NULL, (a), (b), (c))
|
|
Packit |
fc043f |
# define dngettext(a,b,c,d) _gpg_w32_dngettext ((a), (b), (c), (d))
|
|
Packit |
fc043f |
# define gettext_localename() _gpg_w32_gettext_localename ()
|
|
Packit |
fc043f |
# define gettext_use_utf8(a) _gpg_w32_gettext_use_utf8 (a)
|
|
Packit |
fc043f |
#endif /*GPG_ERR_ENABLE_GETTEXT_MACROS*/
|
|
Packit |
fc043f |
|
|
Packit |
fc043f |
|
|
Packit |
fc043f |
/* A simple iconv implementation w/o the need for an extra DLL. */
|
|
Packit |
fc043f |
struct _gpgrt_w32_iconv_s;
|
|
Packit |
fc043f |
typedef struct _gpgrt_w32_iconv_s *gpgrt_w32_iconv_t;
|
|
Packit |
fc043f |
|
|
Packit |
fc043f |
gpgrt_w32_iconv_t gpgrt_w32_iconv_open (const char *tocode,
|
|
Packit |
fc043f |
const char *fromcode);
|
|
Packit |
fc043f |
int gpgrt_w32_iconv_close (gpgrt_w32_iconv_t cd);
|
|
Packit |
fc043f |
size_t gpgrt_w32_iconv (gpgrt_w32_iconv_t cd,
|
|
Packit |
fc043f |
const char **inbuf, size_t *inbytesleft,
|
|
Packit |
fc043f |
char **outbuf, size_t *outbytesleft);
|
|
Packit |
fc043f |
|
|
Packit |
fc043f |
#ifdef GPGRT_ENABLE_W32_ICONV_MACROS
|
|
Packit |
fc043f |
# define ICONV_CONST const
|
|
Packit |
fc043f |
# define iconv_t gpgrt_w32_iconv_t
|
|
Packit |
fc043f |
# define iconv_open(a,b) gpgrt_w32_iconv_open ((a), (b))
|
|
Packit |
fc043f |
# define iconv_close(a) gpgrt_w32_iconv_close ((a))
|
|
Packit |
fc043f |
# define iconv(a,b,c,d,e) gpgrt_w32_iconv ((a),(b),(c),(d),(e))
|
|
Packit |
fc043f |
#endif /*GPGRT_ENABLE_W32_ICONV_MACROS*/
|
|
Packit |
fc043f |
|
|
Packit |
fc043f |
/* Query a string in the registry. */
|
|
Packit |
fc043f |
char *gpgrt_w32_reg_query_string (const char *root,
|
|
Packit |
fc043f |
const char *dir,
|
|
Packit |
fc043f |
const char *name);
|