# HG changeset patch # User tuomov # Date 1047135301 -3600 # Node ID c6deeee169aae3b7ba017a82aa8ca08d605a5ef4 # Parent 73f7a32eb601ab5be60194c8f6672244816ecdfe trunk: changeset 50 Added CONFOPTS_NOT_SET and parse_config_tokz_skip_section. diff -r 73f7a32eb601 -r c6deeee169aa include/libtu/parser.h --- a/include/libtu/parser.h Tue Feb 25 20:13:43 2003 +0100 +++ b/include/libtu/parser.h Sat Mar 08 15:55:01 2003 +0100 @@ -37,8 +37,11 @@ struct _ConfOpt *opts; } ConfOpt; +#define CONFOPTS_NOT_SET libtu_dummy_confopts +extern ConfOpt libtu_dummy_confopts[]; extern bool parse_config_tokz(Tokenizer *tokz, const ConfOpt *options); +extern bool parse_config_tokz_skip_section(Tokenizer *tokz); extern bool parse_config(const char *fname, const ConfOpt *options, int flags); extern bool parse_config_file(FILE *file, const ConfOpt *options, int flags); extern bool check_args(const Tokenizer *tokz, Token *tokens, int ntokens, diff -r 73f7a32eb601 -r c6deeee169aa parser.c --- a/parser.c Tue Feb 25 20:13:43 2003 +0100 +++ b/parser.c Sat Mar 08 15:55:01 2003 +0100 @@ -701,3 +701,15 @@ tokz->includepaths=paths; } + + +ConfOpt libtu_dummy_confopts[]={ + END_CONFOPTS +}; + + + +bool parse_config_tokz_skip_section(Tokenizer *tokz) +{ + return parse_config_tokz(tokz, libtu_dummy_confopts); +}