Age | Commit message (Collapse) | Author |
|
Add FLAGS argument back.
(parser_init):
Once again pass FLAGS argument to parser_convert.
Initialize PARSER->state after calling parser_convert.
|
|
|
|
|
|
Remove FLAGS argument & use PARSER->state.flags.
(parser_init):
Set PARSER->state.flags.
Don't pass FLAGS argument to parser_convert.
Make check whether PARSER has the prog name in argv[0] at the proper place.
|
|
|
|
|
|
Macros removed.
|
|
Remove __ prefixes from references to getopt functions and variables (OPT*).
(argp_version_parser, parser_finalize):
Use _ instead of gettext.
(gettext):
Macro removed.
|
|
|
|
|
|
New macro.
|
|
Add help_filter field.
(struct argp_state):
Add pstate field.
|
|
Add argp field.
(convert_options):
Set it.
(__argp_input):
New function.
(parser_init):
Set PARSER->state.pstate.
|
|
Add STATE param.
(argp_doc):
Deal with help filters.
Add STATE param.
(struct hol_entry):
Add argp field.
(struct pentry_state):
Add state field.
(hol_add_cluster):
Add ARGP argument.
(print_header):
Filter STR if necesary.
(usage_argful_short_opt):
Use space.
(__argp_state_help):
Call _help instead of __argp_help.
(filter_doc):
New function.
(space):
New function.
(__argp_help):
Now a wrapper that calls _help.
(hol_entry_help):
Add STATE param.
Do user filtering if necessary.
(struct hol_cluster):
Add argp field.
(make_hol):
Make this first parameter ARGP instead of OPT.
Set each entry's argp field.
(argp_hol):
Passin ARGP to make_hol, not ARGP->options.
Pass ARGP to hol_add_cluster.
(_help):
Renamed from __argp_help.
Add STATE argument, which pass on appropiately.
|
|
|
|
|
|
hol_entry_help):
Call gettext in appropriate places.
[!_] (_): New macro.
[!_ && HAVE_LIBINTL_H] <libintl.h>: New include.
|
|
Call gettext in appropriate places.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Include removed.
|
|
[!isblank] (isblank): New macro.
<ctype.h>: New include.
|
|
|
|
Decrement PARSER->state.next if we consumed an arg we didn't end up parsing.
Set ARG_EBADKEY ourselves in all cases.
(parser_parse_arg, parser_parse_opt):
Get rid of ARG_EBADKEY param.
|
|
|
|
|
|
Decls removed.
(__argp_failure, __argp_error, __argp_state_help):
Use PROGRAM_INVOCATION_NAME instead of __PROGNAME_FULL.
(__argp_error):
Use STATE->name if it's available.
|
|
Decls removed.
(argp_default_parser):
Use PROGRAM_INVOCATION_NAME & PROGRAM_INVOCATION_SHORT_NAME instead of
__PROGNAME_FULL & __PROGNAME.
|
|
Macro removed.
|
|
(doc): Add some more gratuitous text.
|
|
|
|
ARGP_KEY_ERROR): Change values.
|
|
|
|
|
|
(argp_args_usage, __argp_state_help): Make multiple-level args-docs work.
|
|
|
|
|
|
(parse_opt): Enforce it.
|
|
Add LEVELS & ADVANCE arguments, and implement multi-pattern output.
(__argp_help):
Print multiple argument patterns if there are any.
(argp_args_levels):
New function.
|
|
|
|
|
|
|
|
[weak_alias] (argp_parse): New weak alias.
(argp_default_parser, parser_finalize):
Use __argp_state_help, not argp_state_help.
(argp_version_parser): Use __argp_error, not argp_error.
(convert_options, calc_sizes): Use __option_is_end, not _option_is_end.
(convert_options): Use __option_is_short, not _option_is_short.
|
|
|
|
Add argp-fmtstream.c, argp-fs-xinl.c, and argp-xinl.c.
Remove argp.c.
(installhdrs): Define explicitly.
(LCLHDRS): Define in terms of $(installhdrs) + others.
(CFLAGs): Add -DHAVE_LINEWRAP_H & -DHAVE_CTHREADS_H.
|
|
|