Simplify mu_cfg_tree_reduce.
This function used to handle include/program statements, which is useless now, as these are expanded by mu_cfg_tree_postprocess. * include/mailutils/cfg.h (mu_cfg_tree_reduce): Change signature. (mu_format_config_tree): Change signature. (mu_config_clone_root_container): New proto. (mu_config_register_section): Rename to mu_config_root_register_section. mu_config_container_register_section. All uses changed. (mu_config_root_register_section): New proto. * libmailutils/cfg/driver.c (prog_parser) (_cb_include): Remove unnecessary code. (mu_build_container): Simplify. All uses updated. (mu_cfg_tree_reduce): Simplify invocation. All uses updated. * libmu_argp/muinit.c (mu_app_init): Re-implement --config-help support. * sieve/sieve.c (sieve_cfg_param): Fix docstring for "debug". * sieve/tests/testsuite.at (MUT_SIEVE_DEFAULT_OPTIONS): New variable. (MUT_SIEVE_CMDLINE): Include MUT_SIEVE_DEFAULT_OPTIONS. (MUT_SIEVE_COMPILE): Pass MUT_SIEVE_DEFAULT_OPTIONS to sieve.
Showing
8 changed files
with
94 additions
and
197 deletions
-
Please register or sign in to post a comment