Commit 23c4f27e authored by Niels Möller's avatar Niels Möller
Browse files

* src/argp/argp-parse.c (__argp_usage, __option_is_short,

__option_is_end): Define these function, in case the user isn't
inlining them.

Rev: src/argp/argp-parse.c:1.7
parent 526f90d9
......@@ -995,3 +995,29 @@ __argp_input (const struct argp *argp, const struct argp_state *state)
#ifdef weak_alias
weak_alias (__argp_input, _argp_input)
/* Defined here, in case a user is not inlining the definitions in
* argp.h */
__argp_usage (__const struct argp_state *__state) __THROW
__argp_state_help (__state, stderr, ARGP_HELP_STD_USAGE);
__option_is_short (__const struct argp_option *__opt) __THROW
if (__opt->flags & OPTION_DOC)
return 0;
int __key = __opt->key;
return __key > 0 && isprint (__key);
__option_is_end (__const struct argp_option *__opt) __THROW
return !__opt->key && !__opt->name && !__opt->doc && !__opt->group;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment