mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Flag the L_() function with attribute format_arg.
* agent/agent.h (LunderscorePROTO): New. * common/util.h (GNUPG_GCC_ATTR_FORMAT_ARG): New. * common/i18n.h (GNUPG_GCC_ATTR_FORMAT_ARG): New. Use for i18n_localegettext. Expand LunderscorePROTO. * agent/genkey.c (check_passphrase_constraints): Use xtryasprintf again to keep the old translations. -- Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
e76d4c05b2
commit
232af382e5
4 changed files with 26 additions and 3 deletions
|
@ -301,6 +301,10 @@ typedef int (*lookup_ttl_t)(const char *hexgrip);
|
|||
the connection. The macro LunderscoreIMPL is used by i18n to
|
||||
actually define the inline function when needed. */
|
||||
#define L_(a) agent_Lunderscore (ctrl, (a))
|
||||
#define LunderscorePROTO \
|
||||
static inline const char *agent_Lunderscore (ctrl_t ctrl, \
|
||||
const char *string) \
|
||||
GNUPG_GCC_ATTR_FORMAT_ARG(2);
|
||||
#define LunderscoreIMPL \
|
||||
static inline const char * \
|
||||
agent_Lunderscore (ctrl_t ctrl, const char *string) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue