summaryrefslogtreecommitdiff
path: root/include/libHX/option.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libHX/option.h')
-rw-r--r--include/libHX/option.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/libHX/option.h b/include/libHX/option.h
index 40cc6e7..ef9c626 100644
--- a/include/libHX/option.h
+++ b/include/libHX/option.h
@@ -8,6 +8,7 @@
# include <stddef.h>
# include <stdio.h>
#endif
+#include <libHX/cast.h>
#ifdef __cplusplus
extern "C" {
@@ -228,8 +229,13 @@ struct HXoption {
const char *help, *htyp;
};
-extern int HX_getopt(const struct HXoption *, int *, const char ***,
- unsigned int);
+#ifndef LIBHX_ZVECFREE_DECLARATION
+#define LIBHX_ZVECFREE_DECLARATION
+extern void HX_zvecfree(char **);
+#endif
+extern int HX_getopt(const struct HXoption *, int *, char ***, unsigned int);
+extern int HX_getopt5(const struct HXoption *, char **argv, int *nargc, char ***nargv, unsigned int flags);
+#define HX_getopt(a, b, c, d) HX_getopt((a), (b), const_cast3(char ***, (c)), (d))
extern void HX_getopt_help(const struct HXoptcb *, FILE *);
extern void HX_getopt_help_cb(const struct HXoptcb *);
extern void HX_getopt_usage(const struct HXoptcb *, FILE *);