aboutsummaryrefslogtreecommitdiff
path: root/libstore/argp.c
Commit message (Collapse)AuthorAgeFilesLines
* Add braces to silence gcc warnings.Roland McGrath1998-10-201-35/+41
|
* (store_parsed_append_args):Miles Bader1997-07-211-4/+4
| | | | Correctly unparse complex type names.
* (parse_opt):Miles Bader1997-06-261-24/+84
| | | | | | | | | | | | | | 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.
* Update FSF address.Miles Bader1997-06-201-4/+2
|
* (parse_opt):Miles Bader1996-09-231-25/+80
| | | | | | | | | | | | | | | | | | | | | 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.
* (store_parsed_name): New function.Miles Bader1996-09-141-5/+44
| | | | | (store_parsed_append_args, store_parsed_open, struct store_parsed): Use `device' instead of `machdev'.
* (options, parse_opt): Change short option names around.Miles Bader1996-09-081-6/+6
|
* (parse_opt): --layer isn't implemented, so say so.Miles Bader1996-09-041-133/+107
| | | | | | | | | | | | | | | (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.
* (free_hook): Free H->params->args if necessary.Miles Bader1996-08-211-14/+44
| | | | | (parse_opt): Initialize and fill in H->params->args when appropriate. <argz.h>: New include.
* (parse_opt): Use argp_failure.Miles Bader1996-06-171-6/+1
|
* <error.h>: New include.Miles Bader1996-05-231-0/+1
|
* (parse_opt): Honor ARGP_NO_ERRS.Miles Bader1996-05-231-2/+5
|
* (parse_opt):Miles Bader1996-05-221-8/+13
| | | | | Use error instead of ERR for non-parsing errors. Rename ERR to PERR.
* (open_machdev): Function removed.Miles Bader1996-05-221-27/+9
| | | | | (parse_opt): Use store_device_open instead of open_machdev. (open_file, parse_opt): Add FLAGS arg to various function calls.
* Initial revisionMiles Bader1996-05-141-0/+229