include/libtu/parser.h

changeset 34
828f3afd5c76
parent 20
3f11f764772a
child 35
5a71d53d0228
equal deleted inserted replaced
33:3a0064eb9421 34:828f3afd5c76
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,

mercurial