diff options
author | Mattias Andrée <maandree@kth.se> | 2021-04-03 11:06:36 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-04-03 11:06:36 +0200 |
commit | cfc081f9c4f5f538145cbd93f98f714d0be1dad0 (patch) | |
tree | aa9c213cb875568d11194c10f92849605d2d3c0d /common.h | |
parent | Use strcmpnul (diff) | |
download | contacts-cfc081f9c4f5f538145cbd93f98f714d0be1dad0.tar.gz contacts-cfc081f9c4f5f538145cbd93f98f714d0be1dad0.tar.bz2 contacts-cfc081f9c4f5f538145cbd93f98f714d0be1dad0.tar.xz |
m + Add multicall binary
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 20 |
1 files changed, 17 insertions, 3 deletions
@@ -1,4 +1,18 @@ /* See LICENSE file for copyright and license details. */ -#include "libcontacts.h" -#include "libsimple.h" -#include "libsimple-arg.h" +#include <libcontacts.h> +#include <libsimple.h> +#include <libsimple-arg.h> + + +#ifdef MULTICALL_BINARY +# undef NUSAGE +# define NUSAGE(STATUS, SYNOPSIS)\ + static _LIBSIMPLE_NORETURN void\ + usage(void)\ + {\ + const char *syn = SYNOPSIS ? SYNOPSIS : "";\ + fprintf(stderr, "usage: %s%s%s\n", argv0, *syn ? " " : "", syn);\ + exit(STATUS);\ + }\ + extern char *argv0 +#endif |