2 * Copyright © 2023 Nick Bowler
4 * Stub gettext macros for test purposes.
6 * License WTFPL2: Do What The Fuck You Want To Public License, version 2.
7 * This is free software: you are free to do what the fuck you want to.
8 * There is NO WARRANTY, to the extent permitted by law.
11 #ifndef TEST_NLS_GETTEXT_H_
12 #define TEST_NLS_GETTEXT_H_
17 #define gettext(s) (s)
18 #define pgettext_expr(a, s) (s)
21 * We don't need a real snprintf for testing help functionality; substitute
22 * using vsprintf to ease testing on C89 implementations.
24 #define help_do_snprintf help_do_snprintf
25 static inline int help_do_snprintf(char *buf, size_t n, const char *fmt, ...)
31 ret = vsprintf(buf, fmt, ap);