Age | Commit message (Collapse) | Author |
|
|
|
New variable.
|
|
New macro.
|
|
Make const.
(argp_state_help, __argp_state_help, argp_usage, __argp_usage, argp_error,
__argp_error, argp_failure, __argp_failure):
Make STATE parameter const.
(ARGP_KEY_HELP_DUP_ARGS_NOTE):
New macro.
|
|
|
|
|
|
Add help_filter field.
(struct argp_state):
Add pstate field.
|
|
|
|
ARGP_KEY_ERROR): Change values.
|
|
|
|
__argp_failure, __option_is_short, __option_is_end):
New declarations.
(argp_usage, _option_is_end, _option_is_short):
Inline definitions replaced by __-prefixed versions, and protected by
__OPTIMIZE__.
[__OPTIMIZE__ && !_LIBC]
(__argp_usage, __argp_state_help, __option_is_short, __option_is_end):
Add redefs (& later undefs) of __ versions of inline definitions so they
define the correct name for the environment (libc vs. non-libc),
(struct argp_option, struct argp, struct argp_child, struct argp_state):
Use __const instead of const.
(argp_parse, argp_help, argp_state_help, argp_error, argp_usage, argp_failure,
_option_is_short, _option_is_end):
Use __P macro for function declarations.
[HAVE_CONFIG_H] <config.h>: New include.
[__GNU_LIBRARY__] <sys/cdefs.h>: New include.
[!__const] (__const): New macro.
|
|
New macro.
(ARGP_LONG_ONLY, ARGP_HELP_LONG_ONLY):
New macros.
|
|
Change type of CHILDREN field to `struct argp_child *'.
(struct argp_child):
New type.
|
|
* argp.h: Add extern inline protection.
* idvec.h: Likewise.
* maptime.h: Likewise.
* argp.c, idvec-funcs.c, maptime-funcs.c: New files.
* Makefile (SRCS): Add argp.c, idvec-funcs.c, and
maptime-funcs.c.
|
|
New macros.
(ARGP_HELP_STD_HELP): Include ARGP_HELP_DOC & ARGP_HELP_BUG_ADDR.
(argp_program_bug_address): New declaration.
(ARGP_HELP_EXIT_ERR, ARGP_HELP_EXIT_OK): Values changed.
|
|
|
|
(argp_failure): New declaration.
(ARGP_NO_HELP, ARGP_NO_EXIT): Fix values (were hex, but with decimal value!).
(argp_help): Add NAME argument.
|
|
|
|
|
|
|
|
(struct argp_state):
Rename HOOK & CHILD_HOOKS to INPUT & CHILD_INPUTS; add HOOK field again.
|
|
Add HOOK and CHILD_HOOKS fields.
Rename the PARENTS field to be CHILDREN (the most common use is
initialization, so this change shouldn't have much effect).
(ARGP_KEY_BEGIN, ARGP_KEY_ERROR): New macros.
(argp_state_help): New function.
(argp_usage, argp_error): Change arguments.
|
|
|
|
|
|
argp_error, _option_is_short, _option_is_end): Add `const' where appropriate.
|
|
(_option_is_end): Be more pessimistic about what constitutes `the end'.
|
|
|
|
(argp_usage): New inline function.
|
|
(ARGP_HELP_STD_USAGE): ... whereas this does.
|
|
(ARGP_HELP_STD_HELP): Use ARGP_HELP_SHORT_USAGE instead of ARGP_HELP_USAGE.
|
|
|
|
|
|
(ARGP_KEY_NO_ARGS): New macro.
|
|
|