settings.c

changeset 30
d642fdb6745e
parent 27
95a958e3de88
equal deleted inserted replaced
29:fa625066ae52 30:d642fdb6745e
14 settings->fileSeparator = '\\'; 14 settings->fileSeparator = '\\';
15 #else 15 #else
16 settings->fileSeparator = '/'; 16 settings->fileSeparator = '/';
17 #endif /* _WIN32 */ 17 #endif /* _WIN32 */
18 settings->recursive = false; 18 settings->recursive = false;
19 settings->includeSuffixes = false;
20 settings->matchesOnly = false; 19 settings->matchesOnly = false;
21 settings->suffixList = new_string_list_t(); 20 settings->includeSuffixes = new_string_list_t();
21 settings->excludeSuffixes = new_string_list_t();
22 settings->verbose = true; 22 settings->verbose = true;
23 settings->bfileHeuristics = new_bfile_heuristics_t(); 23 settings->bfileHeuristics = new_bfile_heuristics_t();
24 settings->confusing_lnlen = false; 24 settings->confusing_lnlen = false;
25 settings->regex = new_regex_parser_t(); 25 settings->regex = new_regex_parser_t();
26 } 26 }
28 return settings; 28 return settings;
29 } 29 }
30 30
31 void destroy_settings_t(settings_t* settings) { 31 void destroy_settings_t(settings_t* settings) {
32 destroy_regex_parser_t(settings->regex); 32 destroy_regex_parser_t(settings->regex);
33 destroy_string_list_t(settings->suffixList); 33 destroy_string_list_t(settings->includeSuffixes);
34 destroy_string_list_t(settings->excludeSuffixes);
34 destroy_bfile_heuristics_t(settings->bfileHeuristics); 35 destroy_bfile_heuristics_t(settings->bfileHeuristics);
35 free(settings); 36 free(settings);
36 } 37 }

mercurial