33 const char *argfmt; |
33 const char *argfmt; |
34 bool (*fn)(Tokenizer *tokz, int n, Token *toks); |
34 bool (*fn)(Tokenizer *tokz, int n, Token *toks); |
35 struct _ConfOpt *opts; |
35 struct _ConfOpt *opts; |
36 } ConfOpt; |
36 } ConfOpt; |
37 |
37 |
|
38 #define END_CONFOPTS {NULL, NULL, NULL, NULL} |
38 |
39 |
39 extern bool parse_config_tokz(Tokenizer *tokz, const ConfOpt *options); |
40 extern bool parse_config_tokz(Tokenizer *tokz, const ConfOpt *options); |
40 extern bool parse_config(const char *fname, const ConfOpt *options, int flags); |
41 extern bool parse_config(const char *fname, const ConfOpt *options, int flags); |
41 extern bool parse_config_file(FILE *file, const ConfOpt *options, int flags); |
42 extern bool parse_config_file(FILE *file, const ConfOpt *options, int flags); |
42 extern bool check_args(const Tokenizer *tokz, Token *tokens, int ntokens, |
43 extern bool check_args(const Tokenizer *tokz, Token *tokens, int ntokens, |