include/libtu/parser.h

changeset 35
5a71d53d0228
parent 34
828f3afd5c76
child 36
63cd573ffbcf
equal deleted inserted replaced
34:828f3afd5c76 35:5a71d53d0228
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}
39 38
40 extern bool parse_config_tokz(Tokenizer *tokz, const ConfOpt *options); 39 extern bool parse_config_tokz(Tokenizer *tokz, const ConfOpt *options);
41 extern bool parse_config(const char *fname, const ConfOpt *options, int flags); 40 extern bool parse_config(const char *fname, const ConfOpt *options, int flags);
42 extern bool parse_config_file(FILE *file, const ConfOpt *options, int flags); 41 extern bool parse_config_file(FILE *file, const ConfOpt *options, int flags);
43 extern bool check_args(const Tokenizer *tokz, Token *tokens, int ntokens, 42 extern bool check_args(const Tokenizer *tokz, Token *tokens, int ntokens,

mercurial