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

* 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)
#endif
/* Defined here, in case a user is not inlining the definitions in
* argp.h */
void
__argp_usage (__const struct argp_state *__state) __THROW
{
__argp_state_help (__state, stderr, ARGP_HELP_STD_USAGE);
}
int
__option_is_short (__const struct argp_option *__opt) __THROW
{
if (__opt->flags & OPTION_DOC)
return 0;
else
{
int __key = __opt->key;
return __key > 0 && isprint (__key);
}
}
int
__option_is_end (__const struct argp_option *__opt) __THROW
{
return !__opt->key && !__opt->name && !__opt->doc && !__opt->group;
}
Markdown is supported
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