aboutsummaryrefslogtreecommitdiff
path: root/libshouldbeinlibc
Commit message (Collapse)AuthorAgeFilesLines
* (argp_doc, argp_args_usage, argp_hol): Rename PARENTS field to CHILDREN.Miles Bader1996-03-191-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 Bader1996-03-191-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 Bader1996-03-191-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 Bader1996-03-021-1/+2
|
* (argp_parse): Print an error message if appropiate when we know there are tooMiles Bader1996-02-291-1/+6
| | | | many arguments.
* (hol_entry_help): Handle null group headers nicely.Miles Bader1996-02-281-3/+3
|
* Initial revisionMiles Bader1996-02-283-0/+193
|
* (SRCS): Add shared-dom.c, localhost.c, maptime.c, & canon-host.c.Miles Bader1996-02-181-3/+4
| | | | (LCLHDRS): Add maptime.h.
* Initial revisionMiles Bader1996-02-182-0/+123
|
* (argp_parse): Correctly deal with errors from getopt, and allow the user toMiles Bader1996-02-151-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 Bader1996-02-141-2/+3
| | | | (LCLHDRS): Add timefmt.h.
* (struct argp_state): Add `quoted' field.Miles Bader1996-02-141-0/+5
|
* (argp_parse):Miles Bader1996-02-141-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 Bader1996-02-091-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 Bader1996-02-051-2/+5
|
* (struct argp_state): Add ARG_NUM field.Miles Bader1996-02-051-0/+6
|
* (line_write, line_fill): Add `const' where appropriate.Miles Bader1996-02-051-6/+6
|
* (line_write, line_fill, line_puts): Add `const' where appropriate.Miles Bader1996-02-051-4/+4
|
* (struct hol_entry, make_hol, hol_entry_short_iterate, hol_entry_long_iterate,Miles Bader1996-02-051-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 Bader1996-02-051-12/+13
| | | | Add `const' where appropriate.
* (struct argp, struct argp_state, argp_parse, argp_help, argp_usage,Miles Bader1996-02-051-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 Bader1996-02-031-2/+3
|
* Initial revisionMiles Bader1996-01-231-0/+120
|
* (hol_entry_help):Miles Bader1996-01-231-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 Bader1996-01-191-2/+20
| | | | | Add --program-name (hidden) option. (OPT_PROGNAME): New macro.
* (idvec_merge, idvec_delete): New declarations.Miles Bader1996-01-191-0/+6
|
* (argz_delete): Renamed from argz_remove.Miles Bader1996-01-191-2/+2
|
* Initial revisionMiles Bader1996-01-032-0/+226
|
* (_argp_unlock_xxx): New function.Miles Bader1996-01-031-0/+9
|
* (exec_reauth): Doc fix.Miles Bader1996-01-021-4/+7
|
* (argz_delete): If the result is empty, free it.Miles Bader1996-01-021-3/+8
|
* (idvec_merge_auth): Fix various small typos.Miles Bader1996-01-021-5/+5
|
* (idvec_merge_ids): Preserve duplicates internal to IDS.Miles Bader1996-01-021-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 Bader1996-01-021-0/+9
|
* (idvec_remove, idvec_insert_only): New functions.Miles Bader1996-01-021-3/+41
| | | | (idvec_setid): Use idvec_insert_only() instead of idvec_insert_new().
* Initial revisionMiles Bader1996-01-021-0/+101
|
* Initial revisionMiles Bader1996-01-011-0/+80
|
* (idvec_free_wrapper, idvec_free, idvec_ensure, idvec_grow,Miles Bader1996-01-011-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 Bader1996-01-011-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 Bader1995-12-211-1/+1
|
* (make_hol):Miles Bader1995-12-211-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 Bader1995-12-211-3/+14
| | | | (_option_is_end): Be more pessimistic about what constitutes `the end'.
* (SRCS): Remove options.c. Rename ivec.c to idvec.c.Miles Bader1995-12-211-2/+2
| | | | (LCLHDRS): Remove options.h. Rename ivec.h to idvec.h.
* (struct idvec): Renamed from struct ivec. `ints' field renamed to `ids'.Miles Bader1995-12-211-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 Bader1995-12-211-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 intoMiles Bader1995-12-211-2/+37
| | | | | ARGZ to insert before. (argz_next): New inline function.
* (argz_insert):Miles Bader1995-12-211-29/+35
| | | | Instead of an integer position N, take a pointer into ARGZ to insert before.
* Initial revisionMiles Bader1995-12-212-0/+275
|
* Initial revisionMiles Bader1995-12-173-0/+181
|
* (SRCS): Add termsize.c & ivec.c.Miles Bader1995-12-171-2/+2
| | | | (LCLHDRS): Add ivec.h.