25 |
{ |
{ |
26 |
char *opt; |
char *opt; |
27 |
int match_len; |
int match_len; |
28 |
int key; |
char *longopt; |
29 |
int flags; |
int flags; |
30 |
char *arg; |
char *arg; |
31 |
}; |
}; |
32 |
|
|
33 |
extern int mh_optind; |
struct mh_argp_data |
34 |
extern char *mh_optarg; |
{ |
35 |
|
struct mh_option *mh_option; |
36 |
|
int (*handler)(); |
37 |
|
void *closure; |
38 |
|
char *doc; |
39 |
|
}; |
40 |
|
|
41 |
|
void mh_argv_preproc __P((int argc, char **argv, struct mh_argp_data *data)); |
42 |
int mh_getopt __P((int argc, char **argv, struct mh_option *mh_opt, |
int mh_getopt __P((int argc, char **argv, struct mh_option *mh_opt, |
43 |
const char *doc)); |
const char *doc)); |
44 |
int mh_argp_parse __P((int argc, char **argv, |
int mh_argp_parse __P((int argc, char **argv, |