summaryrefslogtreecommitdiff
path: root/include/manconfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/manconfig.h')
-rw-r--r--include/manconfig.h25
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 */