trunk: changeset 50

Sat, 08 Mar 2003 15:55:01 +0100

author
tuomov
date
Sat, 08 Mar 2003 15:55:01 +0100
changeset 46
c6deeee169aa
parent 45
73f7a32eb601
child 47
672e29bfda3c

trunk: changeset 50
Added CONFOPTS_NOT_SET and parse_config_tokz_skip_section.

include/libtu/parser.h file | annotate | diff | comparison | revisions
parser.c file | annotate | diff | comparison | revisions
--- 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,
--- 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);
+}

mercurial