summaryrefslogtreecommitdiff
path: root/libshouldbeinlibc
AgeCommit message (Collapse)Author
1997-02-12(argp_args_usage): Don't trash memory.Miles Bader
1997-02-12(make_hol): Initialize clusters field.Miles Bader
(argp_args_usage, __argp_state_help): Make multiple-level args-docs work.
1997-02-12.Miles Bader
1997-02-12.Miles Bader
1997-02-12(args_doc): Add an alternative args pattern.Miles Bader
(parse_opt): Enforce it.
1997-02-12(argp_args_usage):Miles Bader
Add LEVELS & ADVANCE arguments, and implement multi-pattern output. (__argp_help): Print multiple argument patterns if there are any. (argp_args_levels): New function.
1997-02-12Doc fix.Miles Bader
1997-02-12(__argp_state_help): Use __argp_help, not argp_help.Miles Bader
1997-02-12(__argp_fmtstream_printf): Remove weak alias.Miles Bader
1997-02-12(__argp_parse): Renamed from argp_parse.Miles Bader
[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.
1997-02-12.Miles Bader
1997-02-12(SRCS):Miles Bader
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.
1997-02-12Supplanted by argp-xinl.cMiles Bader
1997-02-12Initial checkin.Miles Bader
1997-02-12(__argp_parse, __argp_help, __argp_state_help, __argp_error, __argp_usage,Miles Bader
__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.
1997-02-12Largely rewritten to clean up the code, avoid using nested functions, andMiles Bader
adapt namespace and locking in preparation for moving into libc.
1997-02-12(argp_doc):Miles Bader
Use strchr instead of index. (__argp_error): Renamed from argp_error. (__argp_state_help, __argp_error, __argp_failure): Use __PROGNAME_FULL instead of PROGRAM_INVOCATION_NAME. (until_short): Return correct key. (__progname, __progname_full): New declarations. (__argp_failure): Renamed from argp_failure. [weak_alias] (argp_help, argp_state_help, argp_error, argp_failure): New weak aliases. (__argp_state_help): Renamed from argp_state_help. (hol_entry_cmp): Use __strcasecmp instead of strcasecmp. (hol_append): Use memcpy instead of bcopy. (__argp_help): Renamed from argp_help. (hol_entry_cmp, usage_argful_short_opt, usage_long_opt): Don't use ?: operator. (make_hol): Increment default group for option headers. Make static. (group_cmp): Put group 0 before other groups, not in the middle. (indent_to, arg, struct pentry_state, print_header, comma, hol_entry_help, hol_help, usage_argful_short_opt, usage_long_opt, hol_usage, argp_args_usage, argp_doc, argp_help): Use argp_fmtstream_t & associated functions instead of stdio streams. "argp-namefrob.h": New include. "argp-fmtstream.h": New include. <linewrap.h>: Include removd.
1997-02-11(argp_default_parser):Miles Bader
Use strrchr instead of rindex. (argp_parse): Use strchr instead of index, memset instead of bzero.
1997-02-09.Miles Bader
1997-02-09(argp_parse):Miles Bader
Support ARGP_LONG_ONLY. Don't parse OPTION_DOC options.
1997-02-09(hol_entry_short_iterate, hol_entry_long_iterate):Miles Bader
Add COOKIE argument, also to signature of FUNC. (oshort): Exclude options for which odoc is true. (struct pentry_state): New type. (until_short): New function, from old nested function func1 in hol_entry_first_short. Only return short key when oshort is true. (hol_entry_first_short): Remove func1 and use until_short instead. (add_argless_short_opt, usage_argful_short_opt, usage_long_opt): New functions (were nested in hol_usage). (hol_usage): Use un-nested functions. (hol_entry_qcmp): New function. (hol_sort): Remove cmp and use hol_entry_qcmp instead. (hol_entry_cmp): Correctly place odoc options. (canon_doc_option): New function. (odoc): New macro. (arg, print_header, comma): New functions (were nested in hol_entry_help) (hol_entry_help): Correctly output odoc options. Use un-nested helper functions, with state block. (argp_state_help): Add ARGP_HELP_LONG_ONLY to FLAGS if STATE has ARGP_LONG_ONLY set.
1997-02-09(OPTION_DOC):Miles Bader
New macro. (ARGP_LONG_ONLY, ARGP_HELP_LONG_ONLY): New macros.
1996-11-18Make new functions use bcopy correctly.Thomas Bushnell
1996-11-13Tue Nov 12 19:22:58 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell
* idvec.h (idvec_set, idvec_set_ids): New functions. * idvec.c (idvec_set, idvec_set_ids): Ditto. Tue Nov 5 21:16:10 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu> * idvec.h (idvec_setid): Doc fix.
1996-10-24.Miles Bader
1996-10-24(argp_parse):Miles Bader
Convert to use the new type of argp children vectors.
1996-10-24(hol_free):Miles Bader
Free clusters. (argp_args_usage, argp_doc): Use the new type of argp child vector. (hol_entry_cmp, group_cmp, hol_cluster_cmp, hol_cluster_base, hol_add_cluster): New functions. (hol_entry_help): Add gunk to print cluster headers. (argp_hol): Add, and use the new CLUSTER argument. Use the new type of argp child vector, and make clusters. (hol_append): Deal with clusters. Always use hol_free to free MORE, and just mark it's entries as invalid if we steal them. (make_hol): Accept new CLUSTER argument, and fill in the corresponding entry fields with it. (hol_sort): Use hol_entry_cmp. (hol_entry_help: comma): Only print cluster headers for real clusters. Emit a newline after cluster headers. (argp_help): Pass new CLUSTER argument to argp_hol.
1996-10-24(struct argp):Miles Bader
Change type of CHILDREN field to `struct argp_child *'. (struct argp_child): New type.
1996-10-24Mon Oct 21 22:00:44 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell
* 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.
1996-10-15.Miles Bader
1996-10-15(argp_parse):Miles Bader
Don't consume non-option arguments that aren't recognized by any parser. Allocate enough space for TOP_ARGP's parent list to include the version parser.
1996-09-23(fsys_update):Miles Bader
Renamed from fsys_remount. Use --update, not --remount.
1996-09-23.Miles Bader
1996-09-02.Miles Bader
1996-09-02.Miles Bader
1996-09-02(SRCS): Add argp-ba.c.Miles Bader
1996-09-02(ARGP_HELP_PRE_DOC, ARGP_HELP_POST_DOC, ARGP_HELP_DOC, ARGP_HELP_BUG_ADDR):Miles Bader
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.
1996-09-02(argp_help):Miles Bader
Print documentation only according to the ARGP_HELP_*_DOC bits in FLAGS. Possibly print bug report address if ARGP_HELP_BUG_ADDR is set. Replace FIRST by ANYTHING (sense inverted).
1996-08-27.Miles Bader
1996-08-27(argp_doc): Add the POST, FIRST_ONLY, and PRE_BLANK arguments, & return val.Miles Bader
(argp_help): Supply new args to argp_doc, and additional call before arg help. Add note about --usage to `Try...' msg.
1996-07-31*** empty log message ***Thomas Bushnell
1996-07-27.Miles Bader
1996-07-27(fmt_past_time): Always use WIDTH+1 as strftime's limit.Miles Bader
1996-07-26.Miles Bader
1996-07-26(fmt_past_time): Terminate SEPS.Miles Bader
1996-07-26.Miles Bader
1996-07-26(hol_entry_help): Never return without restoring margins.Miles Bader
1996-07-23(fmt_past_time): Try several separators when concatenating dates & times.Miles Bader
1996-07-19.Miles Bader
1996-07-19(hol_usage):Miles Bader
Allocate enough space in SHORT_NO_ARG_OPTS for the '\0' terminator.