diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2023-12-17 14:18:48 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2023-12-17 14:18:48 +0100 |
commit | eece9692d707ccb20356ec06955f8308c4e59ca7 (patch) | |
tree | 55186434884960d25d11736c8f846876d568fa08 /include/libHX/option.h | |
parent | 987942a206ef0f2342bf81d5de6432c6af42b7e7 (diff) |
New upstream version 4.19upstream/4.19
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 *); |