… | |
… | |
32 | |
32 | |
33 | #ifndef CONFIGURATION_SEARCH_PATH |
33 | #ifndef CONFIGURATION_SEARCH_PATH |
34 | #define CONFIGURATION_SEARCH_PATH "/etc/psiconv.conf:~/.psiconv.conf" |
34 | #define CONFIGURATION_SEARCH_PATH "/etc/psiconv.conf:~/.psiconv.conf" |
35 | #endif |
35 | #endif |
36 | struct psiconv_config_s default_config = |
36 | struct psiconv_config_s default_config = |
37 | { PSICONV_VERB_WARN, 2, psiconv_bool_true }; |
37 | { PSICONV_VERB_WARN, 2, psiconv_bool_false }; |
38 | |
38 | |
39 | psiconv_config psiconv_config_read(const char *extra_config_file) |
39 | psiconv_config psiconv_config_read(const char *extra_config_file) |
40 | { |
40 | { |
41 | psiconv_config config; |
41 | psiconv_config config; |
42 | if (!(config = malloc(sizeof(*config)))) |
42 | if (!(config = malloc(sizeof(*config)))) |