diff options
author | Colin Watson <cjwatson@debian.org> | 2022-10-15 15:01:16 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2022-10-15 15:01:16 +0100 |
commit | 175b15a789c92ea810f2d60f51725c44abf31efd (patch) | |
tree | 0ee982dbba89377fba8a27aed49df522f64c9c4a /include/manconfig.h | |
parent | 8a20bb7f39d2e3d90f2368a2a6b2a1ff8bc5968d (diff) | |
parent | fba1f23672e534ca4bb4d61baf5fb28e9ee5a9da (diff) |
Import man-db_2.11.0.orig.tar.xz
Diffstat (limited to 'include/manconfig.h')
-rw-r--r-- | include/manconfig.h | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/include/manconfig.h b/include/manconfig.h index 056d4df6..0baa4412 100644 --- a/include/manconfig.h +++ b/include/manconfig.h @@ -148,21 +148,6 @@ extern int _nl_msg_cat_cntr; # define locale_changed() #endif /* ENABLE_NLS */ -struct compression { - /* The following are const because they should be pointers to parts - * of strings allocated elsewhere and should not be written through - * or freed themselves. - */ - const char *prog; - const char *ext; - /* The following should be freed when discarding an instance of this - * structure. - */ - char *stem; -}; - -extern struct compression comp_list[]; - extern int quiet; /* be quiet(er) if 1 */ /*--------------------------*/ @@ -203,4 +188,14 @@ extern int quiet; /* be quiet(er) if 1 */ #define VER_KEY "$version$" /* version key */ #define VER_ID "2.5.0" /* version content */ +/* Macros for argp option handling. */ + +#define OPT(name, key, arg, ...) {name, key, arg, 0, __VA_ARGS__} +#define OPT_FULL(name, key, arg, flags, ...) {name, key, arg, flags, __VA_ARGS__} +#define OPT_ALIAS(name, key) {name, key, 0, OPTION_ALIAS} +#define OPT_HIDDEN(name, key) {name, key, 0, OPTION_HIDDEN} +#define OPT_GROUP_HEADER(doc, group) {0, 0, 0, 0, doc, group} +/* compatibility for --help */ +#define OPT_HELP_COMPAT OPT_HIDDEN(0, 'h') + #endif /* MANCONFIG_H */ |