#define fallthrough do {} while (0)
#endif
-static argconfig_help_func *help_funcs[MAX_HELP_FUNC] = { NULL };
-
static char END_DEFAULT[] = "__end_default__";
static const char *append_usage_str = "";
}
}
-void argconfig_register_help_func(argconfig_help_func * f)
-{
- int i;
- for (i = 0; i < MAX_HELP_FUNC; i++) {
- if (help_funcs[i] == NULL) {
- help_funcs[i] = f;
- if (i < MAX_HELP_FUNC - 1)
- help_funcs[i + 1] = NULL;
- break;
- }
- }
-}
-
bool argconfig_parse_seen(struct argconfig_commandline_options *s,
const char *option)
{
};
#define CFG_MAX_SUBOPTS 500
-#define MAX_HELP_FUNC 20
-typedef void argconfig_help_func();
void argconfig_append_usage(const char *str);
void argconfig_print_help(const char *program_desc,
struct argconfig_commandline_options *options);
unsigned long long *ret,
unsigned max_length);
int argconfig_parse_byte(const char *opt, const char *str, unsigned char *val);
-void argconfig_register_help_func(argconfig_help_func * f);
void print_word_wrapped(const char *s, int indent, int start, FILE *stream);
bool argconfig_parse_seen(struct argconfig_commandline_options *options,