aboutsummaryrefslogtreecommitdiff
path: root/libshouldbeinlibc
Commit message (Collapse)AuthorAgeFilesLines
...
* Frob a bunch to exercise new help filtering fature.Miles Bader1997-02-161-17/+79
|
* .Miles Bader1997-02-141-0/+11
|
* (hol_entry_help, __argp_help, argp_args_usage, argp_doc, usage_long_opt, arg,Miles Bader1997-02-141-22/+44
| | | | | | | hol_entry_help): Call gettext in appropriate places. [!_] (_): New macro. [!_ && HAVE_LIBINTL_H] <libintl.h>: New include.
* (parser_finalize, argp_version_parser):Miles Bader1997-02-141-2/+14
| | | | Call gettext in appropriate places.
* Update to libc-970214 version.Miles Bader1997-02-141-7/+9
|
* .Miles Bader1997-02-131-0/+6
|
* [HAVE_CONFIG_H] <config.h>: New include.Miles Bader1997-02-137-6/+34
|
* Doc fix.Miles Bader1997-02-131-1/+1
|
* Update to libc-970212 versions.Miles Bader1997-02-1312-174/+183
|
* .Miles Bader1997-02-131-0/+5
|
* <ctype.h>:Miles Bader1997-02-131-1/+0
| | | | Include removed.
* (_GNU_SOURCE): New macro.Miles Bader1997-02-131-0/+9
| | | | | [!isblank] (isblank): New macro. <ctype.h>: New include.
* .Miles Bader1997-02-121-0/+6
|
* (parser_parse_next):Miles Bader1997-02-121-37/+34
| | | | | | | 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.
* .Miles Bader1997-02-121-1/+1
|
* .Miles Bader1997-02-121-0/+9
|
* (__progname, __progname_full):Miles Bader1997-02-121-5/+3
| | | | | | | | 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.
* (__progname, __progname_full):Miles Bader1997-02-121-10/+8
| | | | | | | Decls removed. (argp_default_parser): Use PROGRAM_INVOCATION_NAME & PROGRAM_INVOCATION_SHORT_NAME instead of __PROGNAME_FULL & __PROGNAME.
* (__progname_full):Miles Bader1997-02-121-2/+0
| | | | Macro removed.
* (options): Reformat.Miles Bader1997-02-121-19/+21
| | | | (doc): Add some more gratuitous text.
* .Miles Bader1997-02-121-0/+3
|
* (ARGP_KEY_END, ARGP_KEY_NO_ARGS, ARGP_KEY_INIT, ARGP_KEY_SUCCESS,Miles Bader1997-02-121-5/+5
| | | | ARGP_KEY_ERROR): Change values.
* .Miles Bader1997-02-121-0/+5
|
* (argp_args_usage): Don't trash memory.Miles Bader1997-02-121-2/+4
|
* (make_hol): Initialize clusters field.Miles Bader1997-02-121-9/+12
| | | | (argp_args_usage, __argp_state_help): Make multiple-level args-docs work.
* .Miles Bader1997-02-121-6/+47
|
* .Miles Bader1997-02-121-0/+7
|
* (args_doc): Add an alternative args pattern.Miles Bader1997-02-121-4/+11
| | | | (parse_opt): Enforce it.
* (argp_args_usage):Miles Bader1997-02-121-28/+97
| | | | | | | | Add LEVELS & ADVANCE arguments, and implement multi-pattern output. (__argp_help): Print multiple argument patterns if there are any. (argp_args_levels): New function.
* Doc fix.Miles Bader1997-02-121-2/+5
|
* (__argp_state_help): Use __argp_help, not argp_help.Miles Bader1997-02-121-2/+2
|
* (__argp_fmtstream_printf): Remove weak alias.Miles Bader1997-02-121-1/+0
|
* (__argp_parse): Renamed from argp_parse.Miles Bader1997-02-121-10/+13
| | | | | | | | | [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.
* .Miles Bader1997-02-121-0/+70
|
* (SRCS):Miles Bader1997-02-121-4/+8
| | | | | | | | 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.
* Supplanted by argp-xinl.cMiles Bader1997-02-121-2/+0
|
* Initial checkin.Miles Bader1997-02-126-0/+916
|
* (__argp_parse, __argp_help, __argp_state_help, __argp_error, __argp_usage,Miles Bader1997-02-121-44/+101
| | | | | | | | | | | | | | | | | | | | __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.
* Largely rewritten to clean up the code, avoid using nested functions, andMiles Bader1997-02-121-375/+536
| | | | adapt namespace and locking in preparation for moving into libc.
* (argp_doc):Miles Bader1997-02-121-140/+186
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* (argp_default_parser):Miles Bader1997-02-111-5/+5
| | | | | | Use strrchr instead of rindex. (argp_parse): Use strchr instead of index, memset instead of bzero.
* .Miles Bader1997-02-091-0/+36
|
* (argp_parse):Miles Bader1997-02-091-34/+44
| | | | | Support ARGP_LONG_ONLY. Don't parse OPTION_DOC options.
* (hol_entry_short_iterate, hol_entry_long_iterate):Miles Bader1997-02-091-143/+244
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* (OPTION_DOC):Miles Bader1997-02-091-7/+26
| | | | | | New macro. (ARGP_LONG_ONLY, ARGP_HELP_LONG_ONLY): New macros.
* Make new functions use bcopy correctly.Thomas Bushnell1996-11-182-3/+3
|
* Tue Nov 12 19:22:58 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell1996-11-133-1/+40
| | | | | | | | | * 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.
* .Miles Bader1996-10-241-0/+31
|
* (argp_parse):Miles Bader1996-10-241-13/+15
| | | | Convert to use the new type of argp children vectors.
* (hol_free):Miles Bader1996-10-241-143/+328
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.