4 /* Convenience macros */
5 #define streq(a, b) (strcmp(a, b) == 0)
6 #define strcaseeq(a, b) (strcasecmp(a, b) == 0)
7 #define strneq(a, b, n) (strncmp(a, b, n) == 0)
8 #define strncaseeq(a, b, n) (strncasecmp(a, b, n) == 0)
10 #define NOFAIL(ptr) do_nofail((ptr), __FILE__, __LINE__)
12 /* Portability macros */
14 # define NORETURN __attribute__((noreturn))
24 # define AI_ADDRCONFIG 0
27 #ifdef HAVE_GETOPT_LONG
28 # define GETOPT_LONGISH(c, v, o, l, i) getopt_long(c, v, o, l, i)
30 # define GETOPT_LONGISH(c, v, o, l, i) getopt(c, v, o)
36 # define _(a) (gettext(a))
38 # define N_(a) gettext_noop(a)
45 # define ngettext(a, b, c) ((c==1) ? (a) : (b))
50 void *do_nofail(void *ptr
, const char *file
, const int line
);
51 char **merge_args(char *args
, char *argv
[], int *argc
);
53 void err_quit(const char *fmt
, ...) NORETURN
;
54 void err_sys(const char *fmt
, ...) NORETURN
;