summaryrefslogtreecommitdiff
path: root/libstore/argp.c
AgeCommit message (Collapse)Author
1998-10-20Add braces to silence gcc warnings.Roland McGrath
1997-07-21(store_parsed_append_args):Miles Bader
Correctly unparse complex type names.
1997-06-26(parse_opt):Miles Bader
Use parse_type to parse the -T option. (parse_type): New function. (struct store_parsed): Add NAME_PREFIX field. (store_parsed_free): Free it. (store_parsed_append_args): Emit it. (store_parsed_open): Use it in opens.
1997-06-20Update FSF address.Miles Bader
1996-09-23(parse_opt):Miles Bader
Correctly check for non-default type. (options, parse_opt): Add --store-type/-T & (hidden) --machdev/-m options, remove --device/-d option. (find_class): Change CLASSES to be a vector of class pointers. (struct store_parsed): Change CLASSES field to be a pointer to a vector of class pointers. Make some fields const. Rmove DEVICE field, add TYPE, DEFAULT_TYPE and CLASSES fields. (store_parsed_free): Free PARSED->type if it exists. (store_parsed_append_args): Use --store-type=... instead of --device. (store_parsed_open): Remove CLASSES argument. When --store-type is specified, search CLASSES for that type, and call it's open function.
1996-09-14(store_parsed_name): New function.Miles Bader
(store_parsed_append_args, store_parsed_open, struct store_parsed): Use `device' instead of `machdev'.
1996-09-08(options, parse_opt): Change short option names around.Miles Bader
1996-09-04(parse_opt): --layer isn't implemented, so say so.Miles Bader
(struct store_parsed): New type. (store_parsed_free, store_parsed_append_args, store_parsed_open): New functions. (parse_opt): Use new store_parsed structure instead of the old store_parse_hook, and just fill in the names rather than doing the open here. Don't take a struct store_argp_params as input any more; instead just take the address of a location in which to return a store_parsed structure. (struct store_parse_hook): Type removed. (free_hook, open_file): Functions removed. (options): --machdev/-m renamed to --device/-D. <assert.h>: New include. <stdlib.h>, <fcntl.h>: Includes removed.
1996-08-21(free_hook): Free H->params->args if necessary.Miles Bader
(parse_opt): Initialize and fill in H->params->args when appropriate. <argz.h>: New include.
1996-06-17(parse_opt): Use argp_failure.Miles Bader
1996-05-23<error.h>: New include.Miles Bader
1996-05-23(parse_opt): Honor ARGP_NO_ERRS.Miles Bader
1996-05-22(parse_opt):Miles Bader
Use error instead of ERR for non-parsing errors. Rename ERR to PERR.
1996-05-22(open_machdev): Function removed.Miles Bader
(parse_opt): Use store_device_open instead of open_machdev. (open_file, parse_opt): Add FLAGS arg to various function calls.
1996-05-14Initial revisionMiles Bader