diff options
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/config.c b/src/config.c index 16f5701..6b7563b 100644 --- a/src/config.c +++ b/src/config.c @@ -747,8 +747,20 @@ config_help() } void -config_finish(struct grecs_node *tree) -{ +config_init(void) +{ + grecs_include_path_setup(INCLUDE_PATH_ARGS, NULL); +} + +void +config_parse(char const *conffile) +{ + struct grecs_node *tree; + + tree = grecs_parse(conffile); + if (!tree) + exit(1); if (grecs_tree_process(tree, direvent_kw)) exit(1); + } |