diff options
Diffstat (limited to 'parse-options.h')
-rw-r--r-- | parse-options.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/parse-options.h b/parse-options.h index a650a7d220..14fe32428e 100644 --- a/parse-options.h +++ b/parse-options.h @@ -175,21 +175,18 @@ struct option { * Returns the number of arguments left in argv[]. */ extern int parse_options(int argc, const char **argv, const char *prefix, - const struct option *options, - const char * const usagestr[], int flags); + const struct option *options, + const char * const usagestr[], int flags); extern NORETURN void usage_with_options(const char * const *usagestr, - const struct option *options); + const struct option *options); extern NORETURN void usage_msg_opt(const char *msg, const char * const *usagestr, const struct option *options); extern int optbug(const struct option *opt, const char *reason); -extern int opterror(const struct option *opt, const char *reason, int flags); -#if defined(__GNUC__) -#define opterror(o,r,f) (opterror((o),(r),(f)), const_error()) -#endif +const char *optname(const struct option *opt, int flags); /* * Use these assertions for callbacks that expect to be called with NONEG and |