summaryrefslogtreecommitdiff
path: root/include/libHX/option.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2024-06-30 15:25:45 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2024-06-30 15:25:45 +0200
commitdcf1541c4bf2732f0e31c24c4b368da930f6eac2 (patch)
tree8548c73cc376d31e5d89df9b4121638204c8868b /include/libHX/option.h
parent2543e1e9838e03adb7f4a811815d34ccf65a3026 (diff)
parent5c5ce3e94f43e46a1e0420f1356abca7d3672c34 (diff)
Merge branch 'release/debian/4.23-1'debian/4.23-1
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 *);