Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | (argp_doc, argp_args_usage, argp_hol): Rename PARENTS field to CHILDREN. | Miles Bader | 1996-03-19 | 1 | -32/+47 |
| | | | | | | | (argp_error): Take an argp_state instead of an argp, and only doing anything if ARGP_NO_ERRS isn't set in it. (argp_state_help): New function. (argp_help): Don't interpret exiting options anymore. | ||||
* | (struct group): Add PARENT, PARENT_INDEX, HOOK, and CHILD_HOOKS fields. | Miles Bader | 1996-03-19 | 1 | -36/+125 |
| | | | | | | | | | | | | (argp_parse): Add HOOK argument. Implement passing hook values to parsers, and propagating them between parents and children. When printing `too many arguments', test ARGP_NO_ERRS, not ARGP_NO_HELP. (argp_default_options): Add --usage option. (argp_default_parser): Use argp_state_help, so we don't need to screw with exit options anymore. Add usage option. | ||||
* | (struct argp_state): | Miles Bader | 1996-03-19 | 1 | -31/+64 |
| | | | | | | | | | 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. | ||||
* | (hol_entry_help): Don't print extraneous blank lines. | Miles Bader | 1996-03-02 | 1 | -1/+2 |
| | |||||
* | (argp_parse): Print an error message if appropiate when we know there are too | Miles Bader | 1996-02-29 | 1 | -1/+6 |
| | | | | many arguments. | ||||
* | (hol_entry_help): Handle null group headers nicely. | Miles Bader | 1996-02-28 | 1 | -3/+3 |
| | |||||
* | Initial revision | Miles Bader | 1996-02-28 | 3 | -0/+193 |
| | |||||
* | (SRCS): Add shared-dom.c, localhost.c, maptime.c, & canon-host.c. | Miles Bader | 1996-02-18 | 1 | -3/+4 |
| | | | | (LCLHDRS): Add maptime.h. | ||||
* | Initial revision | Miles Bader | 1996-02-18 | 2 | -0/+123 |
| | |||||
* | (argp_parse): Correctly deal with errors from getopt, and allow the user to | Miles Bader | 1996-02-15 | 1 | -29/+40 |
| | | | | | | | use '?' as a short option. (KEY_ERR): New macro. (argp_default_options, argp_default_parser): Use -? as the short option for --help. | ||||
* | (SRCS): Add exec-reauth.c, idvec-auth.c, timefmt.c, and path-lookup.c. | Miles Bader | 1996-02-14 | 1 | -2/+3 |
| | | | | (LCLHDRS): Add timefmt.h. | ||||
* | (struct argp_state): Add `quoted' field. | Miles Bader | 1996-02-14 | 1 | -0/+5 |
| | |||||
* | (argp_parse): | Miles Bader | 1996-02-14 | 1 | -55/+100 |
| | | | | | | | | | | Don't parse args in order by default. Deal correctly when the user turns a non-option arg into an option in re-ordering mode. Honor ARGP_NO_ARGS. Use KEY_END, KEY_ARG, and QUOTE. (KEY_END): New macro, in place of EOF. (KEY_ARG, QUOTE): New macros. | ||||
* | (argp_parse): | Miles Bader | 1996-02-09 | 1 | -30/+49 |
| | | | | | | | | | | When a non-option arg fails to be parsed with EINVAL, set ARG_EINVAL true, and leave ERR as is until just before we return. Put process_arg() in the right scope. Deal with getopt returning EOF early because of `--'. Make STATE.arg_num per-group. (struct group): Renamed process_arg field to args_processed (a count). | ||||
* | (argp_parse): Implement the ARG_NUM field. | Miles Bader | 1996-02-05 | 1 | -2/+5 |
| | |||||
* | (struct argp_state): Add ARG_NUM field. | Miles Bader | 1996-02-05 | 1 | -0/+6 |
| | |||||
* | (line_write, line_fill): Add `const' where appropriate. | Miles Bader | 1996-02-05 | 1 | -6/+6 |
| | |||||
* | (line_write, line_fill, line_puts): Add `const' where appropriate. | Miles Bader | 1996-02-05 | 1 | -4/+4 |
| | |||||
* | (struct hol_entry, make_hol, hol_entry_short_iterate, hol_entry_long_iterate, | Miles Bader | 1996-02-05 | 1 | -33/+38 |
| | | | | | | hol_entry_first_short, hol_entry_first_long, hol_find_entry, hol_sort, hol_entry_help, argp_hol, argp_args_usage, argp_doc, argp_help, argp_error): Add `const' where appropriate. | ||||
* | (argp_default_options, argp_default_argp, argp_parse, find_long_option): | Miles Bader | 1996-02-05 | 1 | -12/+13 |
| | | | | Add `const' where appropriate. | ||||
* | (struct argp, struct argp_state, argp_parse, argp_help, argp_usage, | Miles Bader | 1996-02-05 | 1 | -16/+17 |
| | | | | argp_error, _option_is_short, _option_is_end): Add `const' where appropriate. | ||||
* | (idvec_merge_ids): Correctly add all IDS, even if some duplicates are avoided. | Miles Bader | 1996-02-03 | 1 | -2/+3 |
| | |||||
* | Initial revision | Miles Bader | 1996-01-23 | 1 | -0/+120 |
| | |||||
* | (hol_entry_help): | Miles Bader | 1996-01-23 | 1 | -25/+49 |
| | | | | | | | | | | | Correctly print group headers, and precede them with a blank line. (struct hol_entry, make_hol, hol_sort, hol_set_group): Rename the `set_class' field to be `group'. (hol_help, hol_entry_help): After a group header has been printed, separate subsequent groups with a blank line. (hol_set_group): Renamed from hol_set_sort_class. (argp_help): Use hol_set_group instead of hol_set_sort_class. | ||||
* | (argp_default_options, argp_default_parser): | Miles Bader | 1996-01-19 | 1 | -2/+20 |
| | | | | | Add --program-name (hidden) option. (OPT_PROGNAME): New macro. | ||||
* | (idvec_merge, idvec_delete): New declarations. | Miles Bader | 1996-01-19 | 1 | -0/+6 |
| | |||||
* | (argz_delete): Renamed from argz_remove. | Miles Bader | 1996-01-19 | 1 | -2/+2 |
| | |||||
* | Initial revision | Miles Bader | 1996-01-03 | 2 | -0/+226 |
| | |||||
* | (_argp_unlock_xxx): New function. | Miles Bader | 1996-01-03 | 1 | -0/+9 |
| | |||||
* | (exec_reauth): Doc fix. | Miles Bader | 1996-01-02 | 1 | -4/+7 |
| | |||||
* | (argz_delete): If the result is empty, free it. | Miles Bader | 1996-01-02 | 1 | -3/+8 |
| | |||||
* | (idvec_merge_auth): Fix various small typos. | Miles Bader | 1996-01-02 | 1 | -5/+5 |
| | |||||
* | (idvec_merge_ids): Preserve duplicates internal to IDS. | Miles Bader | 1996-01-02 | 1 | -5/+34 |
| | | | | | (idvec_ensure): Alloc NUM ids, not NUM chars! (idvec_remove): Correctly copy ids when deleting. | ||||
* | (idvec_remove, idvec_insert_only): New declarations. | Miles Bader | 1996-01-02 | 1 | -0/+9 |
| | |||||
* | (idvec_remove, idvec_insert_only): New functions. | Miles Bader | 1996-01-02 | 1 | -3/+41 |
| | | | | (idvec_setid): Use idvec_insert_only() instead of idvec_insert_new(). | ||||
* | Initial revision | Miles Bader | 1996-01-02 | 1 | -0/+101 |
| | |||||
* | Initial revision | Miles Bader | 1996-01-01 | 1 | -0/+80 |
| | |||||
* | (idvec_free_wrapper, idvec_free, idvec_ensure, idvec_grow, | Miles Bader | 1996-01-01 | 1 | -4/+59 |
| | | | | | idvec_tail_contains, idvec_add_new, idvec_insert_new, idvec_merge_ids, idvec_setid, idvec_merge_auth): New declarations. | ||||
* | (idvec_free_wrapper, idvec_free, idvec_ensure, idvec_grow, | Miles Bader | 1996-01-01 | 1 | -26/+152 |
| | | | | | | idvec_tail_contains, idvec_add_new, idvec_insert_new, idvec_merge_ids, idvec_setid): New functions. (idvec_insert): Rewritten to use idvec_grow(). | ||||
* | (argp_default_options): Put --help in group -1. | Miles Bader | 1995-12-21 | 1 | -1/+1 |
| | |||||
* | (make_hol): | Miles Bader | 1995-12-21 | 1 | -7/+17 |
| | | | | | | Use the new GROUP field in struct argp_option to initialize sort_classes. (HEADER_COL): New macro. (hol_entry_help): Deal with group headers. | ||||
* | (struct argp_option): Add the GROUP field. Twiddle doc. | Miles Bader | 1995-12-21 | 1 | -3/+14 |
| | | | | (_option_is_end): Be more pessimistic about what constitutes `the end'. | ||||
* | (SRCS): Remove options.c. Rename ivec.c to idvec.c. | Miles Bader | 1995-12-21 | 1 | -2/+2 |
| | | | | (LCLHDRS): Remove options.h. Rename ivec.h to idvec.h. | ||||
* | (struct idvec): Renamed from struct ivec. `ints' field renamed to `ids'. | Miles Bader | 1995-12-21 | 1 | -14/+15 |
| | | | | | | (make_idvec, idvec_insert, idvec_add, idvec_contains): All renamed from the corresponding `ivec' declaration, and types, variable names, etc, changed accordingly. | ||||
* | (make_idvec, idvec_insert, idvec_add, idvec_contains): | Miles Bader | 1995-12-21 | 1 | -30/+30 |
| | | | | | All renamed from the corresponding `ivec' routine, and types, variable names, etc, changed accordingly. | ||||
* | (argz_insert): Instead of an integer position N, take a pointer BEFORE into | Miles Bader | 1995-12-21 | 1 | -2/+37 |
| | | | | | ARGZ to insert before. (argz_next): New inline function. | ||||
* | (argz_insert): | Miles Bader | 1995-12-21 | 1 | -29/+35 |
| | | | | Instead of an integer position N, take a pointer into ARGZ to insert before. | ||||
* | Initial revision | Miles Bader | 1995-12-21 | 2 | -0/+275 |
| | |||||
* | Initial revision | Miles Bader | 1995-12-17 | 3 | -0/+181 |
| | |||||
* | (SRCS): Add termsize.c & ivec.c. | Miles Bader | 1995-12-17 | 1 | -2/+2 |
| | | | | (LCLHDRS): Add ivec.h. |