diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2023-12-17 14:20:52 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2023-12-17 14:20:52 +0100 |
commit | 6f600257a5d03bfab2452da05dd62f274065c519 (patch) | |
tree | 18ce4d6e2adcf5303c77cc03c9c468a7afa251f9 /include/libHX/option.h | |
parent | 5400fb6e98435efe682b4a9de7266579b634de3c (diff) | |
parent | 96da31f8cb9ec57313ab496a9ce07b108ec3914f (diff) |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'include/libHX/option.h')
-rw-r--r-- | include/libHX/option.h | 10 |
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 *); |